46 lines
1.1 KiB
Groovy
46 lines
1.1 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
android {
|
|
compileSdkVersion propCompileSdkVersion
|
|
buildToolsVersion propBuildToolsVersion
|
|
|
|
defaultConfig {
|
|
applicationId "com.simplemobiletools.commons"
|
|
minSdkVersion propMinSdkVersion
|
|
targetSdkVersion propTargetSdkVersion
|
|
versionCode propVersionCode
|
|
versionName propVersionName
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile 'com.android.support:appcompat-v7:25.2.0'
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
compile project(':commons')
|
|
}
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.1.0'
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
|
|
}
|
|
}
|