Skip to content

Instantly share code, notes, and snippets.

@kohendrix
Created February 7, 2019 06:54
Show Gist options
  • Select an option

  • Save kohendrix/f1f8852df523130525239e1b6da5d1e4 to your computer and use it in GitHub Desktop.

Select an option

Save kohendrix/f1f8852df523130525239e1b6da5d1e4 to your computer and use it in GitHub Desktop.
ext sample. app level
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "com.example.koheiando.twittervolleysample"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "com.android.support:appcompat-v7:$appcompatV7Version"
implementation "com.android.support.constraint:constraint-layout:$constraintVersion"
implementation "com.android.support:design:$designVersion"
implementation "android.arch.lifecycle:extensions:$lifecycleVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
implementation "com.android.volley:volley:$volleyVersion"
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "com.android.support.test:runner:$runnerVersion"
androidTestImplementation "com.android.support.test.espresso:espresso-core:$espressoVersion"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment