Add Gradle (simple and for android) Project Configurator

This commit is contained in:
Natalia.Ukhorskaya
2013-09-03 12:59:07 +04:00
parent f5c730514b
commit 641bd1d910
52 changed files with 1891 additions and 2 deletions
@@ -0,0 +1,47 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
android {
compileSdkVersion 15
buildToolsVersion "17.0"
testBuildType = "staging"
defaultConfig {
buildConfig "private final static boolean DEFAULT = true;", \
"private final static String FOO = \"foo\";"
}
productFlavors {
f1 {
packageName = "com.android.tests.flavored.f1"
versionName = "1.0.0-f1"
buildConfig "private final static String FLAVOR = \"f1\";"
}
f2 {
packageName = "com.android.tests.flavored.f2"
versionName = "1.0.0-f2"
buildConfig "private final static String FLAVOR = \"f2\";"
}
}
buildTypes {
debug {
packageNameSuffix = ".debug"
versionNameSuffix = ".D"
buildConfig "private final static boolean DEBUG2 = false;"
}
staging {
packageNameSuffix = ".staging"
versionNameSuffix = ".S"
signingConfig signingConfigs.debug
}
}
}