Add Gradle (simple and for android) Project Configurator
This commit is contained in:
+67
@@ -0,0 +1,67 @@
|
||||
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()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.android.support:support-v4:13.0.0'
|
||||
debugCompile 'com.android.support:support-v13:13.0.0'
|
||||
|
||||
compile 'com.google.android.gms:play-services:3.1.36'
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib:$ext.kotlin_version"
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 15
|
||||
buildToolsVersion "17.0"
|
||||
|
||||
testBuildType "debug"
|
||||
|
||||
signingConfigs {
|
||||
myConfig {
|
||||
storeFile file("debug.keystore")
|
||||
storePassword "android"
|
||||
keyAlias "androiddebugkey"
|
||||
keyPassword "android"
|
||||
}
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
versionCode 12
|
||||
versionName "2.0"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 16
|
||||
|
||||
buildConfig "private final static boolean DEFAULT = true;", \
|
||||
"private final static String FOO = \"foo\";"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
packageNameSuffix ".debug"
|
||||
signingConfig signingConfigs.myConfig
|
||||
|
||||
buildConfig "private final static boolean DEBUG2 = false;"
|
||||
}
|
||||
}
|
||||
|
||||
aaptOptions {
|
||||
noCompress 'txt'
|
||||
ignoreAssetsPattern "!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"
|
||||
}
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user