apply plugin: 'com.android.application'
//+ enable annotation processing
apply plugin: 'android-apt'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
// [..]
}
//+ pass arguments to the annotation processor
apt {
arguments {
// configure the destination dir for android studio, will merge exiting code
'seife.dest.dir' android.sourceSets.main.java.srcDirs.iterator().next()
resourcePackageName android.defaultConfig.applicationId
androidManifestFile variant.outputs[0]?.processResources?.manifestFile
}
}
}
dependencies {
// [..]
//+ include the source level annotations
provided 'de.weebmeister.seife:SeifeAnnotationSrc:0.7'
//+ perform source processing
apt 'de.weebmeister.seife:SeifeAnnotation:0.8.3.1-SNAPSHOT'
}