Skip to content

Instantly share code, notes, and snippets.

@antonkazakov
Last active June 13, 2017 11:54
Show Gist options
  • Save antonkazakov/6a86baa2d829ff6590b1a38fe8b4dbec to your computer and use it in GitHub Desktop.
Save antonkazakov/6a86baa2d829ff6590b1a38fe8b4dbec to your computer and use it in GitHub Desktop.
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.greencode.kotlinsimplemvp"
minSdkVersion 21
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'
}
debug {
debuggable true
}
}
}
dependencies {
def daggerVersion = 2.10
def archComponentsVersion = '1.0.0-alpha1'
def supportVersion = '25.3.1'
def dialogsVersion = '0.9.4.5'
compile fileTree(dir: 'libs', include: ['*.jar'])
//Kotlin
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
//Support
compile "com.android.support:appcompat-v7:$supportVersion"
compile "com.android.support:design:$supportVersion"
compile "com.android.support:support-v4:$supportVersion"
//Lifecycle
compile "android.arch.lifecycle:runtime:$archComponentsVersion"
compile "android.arch.lifecycle:extensions:$archComponentsVersion"
kapt "android.arch.lifecycle:compiler:$archComponentsVersion"
//Room
compile "android.arch.persistence.room:compiler:$archComponentsVersion"
kapt "android.arch.persistence.room:compiler:$archComponentsVersion"
//Dagger
kapt "com.google.dagger:dagger-compiler:$daggerVersion"
compile "com.google.dagger:dagger:$daggerVersion"
//UI stuff
compile "com.afollestad.material-dialogs:core:$dialogsVersion"
//Testing tools
testCompile 'org.mockito:mockito-core:2.7.1'
testCompile 'junit:junit:4.12'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment