7aa195b017
Currently "compile" is used when adding kotlin dependencies to build scripts, which is deprecated.
33 lines
684 B
Groovy
Vendored
33 lines
684 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'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 15
|
|
buildToolsVersion "17.0"
|
|
|
|
buildTypes.debug {
|
|
zipAlign true
|
|
}
|
|
}
|
|
|
|
android.applicationVariants.each { variant ->
|
|
variant.outputFile = file("$project.buildDir/${variant.name}.apk")
|
|
}
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
}
|