aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-01 18:09:43 -0700
committerAllan Wang <me@allanwang.ca>2017-06-01 18:09:43 -0700
commitbc197ad5769ee792d930ac5b634e1e9000230689 (patch)
tree2c2bb95c0a6c6d79dc5b898ca80f516ea02715d8 /app/build.gradle
parent266569a14f3b1dea9002de58cef40b4149384ef6 (diff)
downloadfrost-bc197ad5769ee792d930ac5b634e1e9000230689.tar.gz
frost-bc197ad5769ee792d930ac5b634e1e9000230689.tar.bz2
frost-bc197ad5769ee792d930ac5b634e1e9000230689.zip
integrate travis
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle25
1 files changed, 24 insertions, 1 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 1e453524..b2929faa 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -18,16 +18,39 @@ android {
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(output.outputFile.parent,
- "${project.APP_ID}-v${variant.versionName}.apk")
+ "${project.APP_ID}-${variant.buildType.name}.apk")
}
}
+
+ signingConfigs {
+ test {
+ storeFile file("../files/test.keystore")
+ storePassword "testkey"
+ keyAlias "testKey"
+ keyPassword "testkey"
+ }
+ }
+
buildTypes {
+ debug {
+ applicationIdSuffix ".debug"
+ versionNameSuffix "-debug"
+ resValue "string", "app_name", "Frost Debug"
+ }
+ releaseTest {
+ applicationIdSuffix ".test"
+ signingConfig signingConfigs.test
+ versionNameSuffix "-test"
+ resValue "string", "app_name", "Frost Test"
+ }
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ resValue "string", "app_name", "Frost"
}
}
+
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'