7aa195b017
Currently "compile" is used when adding kotlin dependencies to build scripts, which is deprecated.
38 lines
921 B
Groovy
Vendored
38 lines
921 B
Groovy
Vendored
buildscript {
|
|
ext.kotlin_version = '$VERSION$'
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:0.5.+'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'android'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
target = 'android-16'
|
|
defaultConfig {
|
|
packageName = 'com.example'
|
|
signingStoreLocation = 'keystore'
|
|
signingStorePassword = 'helloworld'
|
|
signingKeyAlias = 'Key'
|
|
signingKeyPassword = 'helloworld'
|
|
}
|
|
buildTypes {
|
|
release {
|
|
buildConfig "public final static boolean IS_LIVE=true;"
|
|
}
|
|
debug {
|
|
buildConfig "public final static boolean IS_LIVE=false;"
|
|
}
|
|
}
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
} |