Add Gradle (simple and for android) Project Configurator
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
buildscript {
|
||||
ext.kotlin_version = '$VERSION$'
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:0.5.+'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$ext.kotlin_version"
|
||||
}
|
||||
}
|
||||
apply plugin: 'android'
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 15
|
||||
buildToolsVersion "17.0"
|
||||
|
||||
buildTypes.debug {
|
||||
zipAlign true
|
||||
}
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
}
|
||||
}
|
||||
|
||||
android.applicationVariants.each { variant ->
|
||||
variant.outputFile = file("$project.buildDir/${variant.name}.apk")
|
||||
}
|
||||
dependencies {
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib:$ext.kotlin_version"
|
||||
}
|
||||
Reference in New Issue
Block a user