2016-10-10 23:18:53 +02:00
|
|
|
apply plugin: 'com.android.library'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
|
|
|
android {
|
2016-10-11 20:09:31 +02:00
|
|
|
compileSdkVersion 23
|
|
|
|
buildToolsVersion "23.0.3"
|
2016-10-10 23:18:53 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 16
|
2016-10-11 20:09:31 +02:00
|
|
|
targetSdkVersion 23
|
2016-10-10 23:18:53 +02:00
|
|
|
versionCode 1
|
|
|
|
versionName "1.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
|
|
}
|
2016-10-11 20:09:31 +02:00
|
|
|
|
|
|
|
publishNonDefault true
|
2016-10-10 23:18:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2016-10-11 20:09:31 +02:00
|
|
|
compile 'com.android.support:appcompat-v7:23.4.0'
|
2016-10-10 23:18:53 +02:00
|
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
ext.kotlin_version = '1.0.3'
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
|
|
|
|
}
|
|
|
|
}
|