Created
July 13, 2014 11:13
-
-
Save syllogismos/9e513b068e1a5feebfea to your computer and use it in GitHub Desktop.
working gradle build file for android studio, with android annotations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // change com.appname with your proper path and appname | |
| // build wtth Ctlr + F9 on Android Studio to generate the java classes from android annotated files | |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath 'com.neenbedankt.gradle.plugins:android-apt:1.2+' | |
| } | |
| } | |
| apply plugin: 'android' | |
| apply plugin: 'android-apt' | |
| android { | |
| compileSdkVersion 19 | |
| buildToolsVersion "19.1.0" | |
| defaultConfig { | |
| applicationId "com.appname" | |
| minSdkVersion 15 | |
| targetSdkVersion 19 | |
| versionCode 1 | |
| versionName "1.0" | |
| } | |
| buildTypes { | |
| release { | |
| runProguard false | |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
| } | |
| } | |
| } | |
| apt { | |
| arguments { | |
| androidManifestFile variant.processResources.manifestFile | |
| resourcePackageName 'com.appname' | |
| // If you're using Android NBS flavors you should use the following line instead of hard-coded packageName | |
| // resourcePackageName android.defaultConfig.packageName | |
| // You can set optional annotation processing options here, like these commented options: | |
| // logLevel 'INFO' | |
| // logFile '/var/log/aa.log' | |
| } | |
| } | |
| def AAVersion = '3.0.1' | |
| dependencies { | |
| apt "org.androidannotations:androidannotations:$AAVersion" | |
| compile "org.androidannotations:androidannotations-api:$AAVersion" | |
| compile 'com.android.support:appcompat-v7:+' | |
| compile fileTree(dir: 'libs', include: ['*.jar']) | |
| compile 'org.apache.commons:commons-lang3:3.0+@jar' | |
| compile 'com.google.android.gms:play-services:4.0.30' | |
| compile 'com.nineoldandroids:library:2.4.0@jar' | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just another reminder, you have tho build with Ctrl+F9 to generate the needed java classes from the android annotated classes.