Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thejibz/d44312eb90c71df632f6 to your computer and use it in GitHub Desktop.
Save thejibz/d44312eb90c71df632f6 to your computer and use it in GitHub Desktop.
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