-
Notifications
You must be signed in to change notification settings - Fork 22
Home
FrantisekGazo edited this page Dec 24, 2016
·
20 revisions
Android library for boilerplate destruction - "Just code what is worth coding"
- Generates boilerplate code based on used annotations and lets you focus on what matters.
- Generated code is fully traceable.
- Everything is generated during compile time.
- No reflection used!
- Consists of modules.
This library is divided into several modules. Each module provides different annotation and support classes:
Special annotation:
Create blade.json
file in application directory with Blade modules you need: (or download from sample app)
{
"modules": [
"arg",
"extra",
"mvp",
"parcel",
"state"
]
}
If you do not provide blade.json
file, all Blade modules will be used.
Apply Gradle plugin:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// Add Blade plugin
classpath 'eu.f3rog.blade:plugin:2.5.0'
}
}
apply plugin: 'com.android.application'
// Apply Blade plugin
apply plugin: 'blade'
This library uses com.neenbedankt.android-apt
plugin. You don't need to apply it explicitly.
If you change used annotations - e.g. some field had some annotation and you add another or you remove some - please run a clean build after such changes.