-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaa_gradle_config.txt
34 lines (24 loc) · 1.02 KB
/
aa_gradle_config.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#### Set classpath near android plugin in projects root build.gradle
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
#### apply apt plugin in module where you would like to use AA
apply plugin: 'android-apt'
### set parameters for generator in modules build.gradle
apt {
arguments {
//for andriod gradle plugin > 0.14.2
androidManifestFile variant.outputs[0].processResources.manifestFile
//for andriod gradle plugin <= 0.14.2
androidManifestFile variant.processResources.manifestFile
//you can use hard-coded packageName
//resourcePackageName "com.app.hardcode"
resourcePackageName android.defaultConfig.applicationId
// You can set optional annotation processing options here, like these commented options:
// logLevel 'INFO'
// logFile '/var/log/aa.log'
}
}
### set dependencies
dependencies {
apt "org.androidannotations:androidannotations:3.1"
compile "org.androidannotations:androidannotations-api:3.1"
}