Skip to content

Instantly share code, notes, and snippets.

@koral--
Last active September 19, 2017 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koral--/d5242da46712c5332d86de9b448ef634 to your computer and use it in GitHub Desktop.
Save koral--/d5242da46712c5332d86de9b448ef634 to your computer and use it in GitHub Desktop.
app
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion versions.compileSdk
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "pl.droidsonroids.bootcamp.rxbootcamp"
minSdkVersion 21
targetSdkVersion versions.compileSdk
versionCode 1
versionName "1.0"
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$versions.kotlin"
implementation 'io.reactivex.rxjava2:rxkotlin:2.1.0'
implementation 'io.reactivex.rxjava2:rxjava:2.1.3'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation "com.squareup.retrofit2:retrofit:$versions.retrofit"
implementation "com.squareup.retrofit2:adapter-rxjava2:$versions.retrofit"
implementation "com.squareup.retrofit2:converter-moshi:$versions.retrofit"
implementation 'com.jakewharton.rxbinding2:rxbinding-kotlin:2.0.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.assertj:assertj-core:3.8.0'
testImplementation 'org.mockito:mockito-core:2.10.0'
testImplementation 'com.nhaarman:mockito-kotlin-kt1.1:1.5.0'
}
buildscript {
ext {
versions = [
compileSdk: 26,
kotlin: '1.1.4-3',
retrofit: '2.3.0'
]
}
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-beta6'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment