|
@@ -1,14 +1,15 @@
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'com.android.application'
|
|
|
|
+apply plugin: 'kotlin-android'
|
|
|
|
|
|
android {
|
|
android {
|
|
- compileSdkVersion 26
|
|
|
|
- buildToolsVersion "26.0.1"
|
|
|
|
|
|
+ compileSdkVersion getProject().compileSdkVersion
|
|
|
|
+ buildToolsVersion getProject().buildToolsVersion
|
|
defaultConfig {
|
|
defaultConfig {
|
|
applicationId "com.tedxiong.kotlin"
|
|
applicationId "com.tedxiong.kotlin"
|
|
- minSdkVersion 16
|
|
|
|
- targetSdkVersion 26
|
|
|
|
- versionCode 1
|
|
|
|
- versionName "1.0"
|
|
|
|
|
|
+ minSdkVersion getProject().minSdkVersion
|
|
|
|
+ targetSdkVersion getProject().targetSdkVersion
|
|
|
|
+ versionCode getProject().versionCode
|
|
|
|
+ versionName getProject().versionName
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
}
|
|
buildTypes {
|
|
buildTypes {
|
|
@@ -24,7 +25,14 @@ dependencies {
|
|
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
|
|
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
})
|
|
})
|
|
- compile 'com.android.support:appcompat-v7:26.+'
|
|
|
|
- compile 'com.android.support.constraint:constraint-layout:1.0.2'
|
|
|
|
testCompile 'junit:junit:4.12'
|
|
testCompile 'junit:junit:4.12'
|
|
|
|
+ compile getProject().appcompatV7
|
|
|
|
+ compile getProject().constraintLayout
|
|
|
|
+ compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
+ compile "org.jetbrains.anko:anko-commons:$anko_version"
|
|
|
|
+ compile "org.jetbrains.anko:anko-sqlite:$anko_version"
|
|
|
|
+ compile "org.jetbrains.anko:anko-coroutines:$anko_version"
|
|
|
|
+}
|
|
|
|
+repositories {
|
|
|
|
+ mavenCentral()
|
|
}
|
|
}
|