Skip to content

Instantly share code, notes, and snippets.

@Hikari9
Created February 21, 2017 14:11
Show Gist options
  • Save Hikari9/b1d65e7f11f279e0300d44e2ac5eb1ee to your computer and use it in GitHub Desktop.
Save Hikari9/b1d65e7f11f279e0300d44e2ac5eb1ee to your computer and use it in GitHub Desktop.
Android Gradle dependency template
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId APPLICATION_ID // change this
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
// for support tools and extra views
def supportToolsVersion = '25.1.1'
compile 'com.android.support:appcompat-v7:' + supportToolsVersion
compile 'com.android.support:design:' + supportToolsVersion
compile 'com.android.support:support-annotations:' + supportToolsVersion
compile 'com.android.support:recyclerview-v7:' + supportToolsVersion
// for view injection using annotations
def butterKnifeVersion = '8.5.1'
compile 'com.jakewharton:butterknife:' + butterKnifeVersion
annotationProcessor 'com.jakewharton:butterknife-compiler:' + butterKnifeVersion
// for state saving
def icepickVersion = '3.2.0'
compile 'frankiesardo:icepick:' + icepickVersion
provided 'frankiesardo:icepick-processor:' + icepickVersion
// library for MVP framework
def mosbyVersion = '2.0.1'
compile 'com.hannesdorfmann.mosby:mvp:' + mosbyVersion
compile 'com.hannesdorfmann.mosby:viewstate:' + mosbyVersion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment