Last active
August 29, 2015 14:08
-
-
Save thejibz/d44312eb90c71df632f6 to your computer and use it in GitHub Desktop.
This file contains 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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.12.1' | |
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' | |
} | |
} | |
apply plugin: 'com.android.application' | |
apply plugin: 'com.neenbedankt.android-apt' | |
repositories { | |
mavenCentral() | |
} | |
ext.androidAnnotationsVersion = '3.0.1'; | |
configurations { | |
apt | |
} | |
android { | |
compileSdkVersion 20 | |
buildToolsVersion "20.0.0" | |
useOldManifestMerger true | |
defaultConfig { | |
applicationId "com.yourpackage.www" | |
minSdkVersion 19 | |
targetSdkVersion 20 | |
versionCode 1 | |
versionName "1.0" | |
} | |
buildTypes { | |
release { | |
runProguard false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
packagingOptions { | |
exclude 'META-INF/DEPENDENCIES' | |
exclude 'META-INF/NOTICE' | |
exclude 'META-INF/LICENSE' | |
exclude 'META-INF/license.txt' | |
exclude 'META-INF/notice.txt' | |
} | |
} | |
dependencies { | |
compile 'com.android.support:support-v4:20.0.+' | |
compile 'com.android.support:appcompat-v7:20.0.+' | |
apt "org.androidannotations:androidannotations:${androidAnnotationsVersion}" | |
compile "org.androidannotations:androidannotations-api:${androidAnnotationsVersion}" | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
} | |
apt { | |
arguments { | |
resourcePackageName 'com.yourpackage.www' | |
androidManifestFile variant.processResources.manifestFile | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment