Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save desamtralized/1e43d56ae157304fbf18 to your computer and use it in GitHub Desktop.
Save desamtralized/1e43d56ae157304fbf18 to your computer and use it in GitHub Desktop.
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apt {
arguments {
androidManifestFile variant.outputs[0].processResources.manifestFile
resourcePackageName android.defaultConfig.applicationId
}
}
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.default"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
buildTypes {
debug {
applicationIdSuffix '.debug'
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'LICENSE.txt'
}
}
def supportVersion = '22.2.0'
dependencies {
apt 'org.androidannotations:androidannotations:3.3'
compile 'org.androidannotations:androidannotations-api:3.3'
compile fileTree(dir: 'libs', include: ['*.jar'])
//Compatibility layer
compile 'com.android.support:appcompat-v7:' + supportVersion
compile 'com.android.support:support-v13:' + supportVersion
compile 'com.android.support:design:' + supportVersion
//Additional dependencies
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.squareup.picasso:picasso:2.5.2'
//Testing
testCompile 'junit:junit:4.12'
testCompile('org.robolectric:robolectric:3.0-rc3') {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
//Espresso for Instrumentation Tests
androidTestCompile 'com.android.support:support-annotations:' + supportVersion
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.1'
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.1'
androidTestCompile 'com.android.support.test:runner:0.2'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment