aboutsummaryrefslogtreecommitdiff
path: root/sample/build.gradle
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-02-23 20:53:16 -0500
committerGitHub <noreply@github.com>2018-02-23 20:53:16 -0500
commita7e24f0c6bb1c598735eb902cf8cdff8de5dd1da (patch)
tree98671b65142ea84aac26d455cae1ec1ce99a5cf8 /sample/build.gradle
parent3d7c85bd97261116a090a7202b0e0ed2625b5d73 (diff)
downloadkau-a7e24f0c6bb1c598735eb902cf8cdff8de5dd1da.tar.gz
kau-a7e24f0c6bb1c598735eb902cf8cdff8de5dd1da.tar.bz2
kau-a7e24f0c6bb1c598735eb902cf8cdff8de5dd1da.zip
Update/fast adapter (#138)
* Update version and add debug key * Update fast adapter * Add debug separation * Inline functions and remove unused
Diffstat (limited to 'sample/build.gradle')
-rw-r--r--sample/build.gradle21
1 files changed, 19 insertions, 2 deletions
diff --git a/sample/build.gradle b/sample/build.gradle
index fb55b94..d2572c3 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -32,9 +32,9 @@ android {
def releaseSigning = file("../files/kau.properties")
def hasSigning = releaseSigning.exists()
- if (hasSigning) {
- signingConfigs {
+ signingConfigs {
+ if (hasSigning) {
def releaseProps = new Properties()
releaseSigning.withInputStream { releaseProps.load(it) }
@@ -45,12 +45,29 @@ android {
keyPassword releaseProps.getProperty('keyPassword')
}
}
+
+ debug {
+ storeFile file("../files/debug.keystore")
+ storePassword "debugKey"
+ keyAlias "debugKey"
+ keyPassword "debugKey"
+ }
}
buildTypes {
+ debug {
+ minifyEnabled false
+ shrinkResources false
+ applicationIdSuffix ".debug"
+ versionNameSuffix "-debug"
+ signingConfig signingConfigs.debug
+ resValue "string", "app_name", "KAU Debug"
+ }
+
release {
minifyEnabled true
if (hasSigning) signingConfig signingConfigs.release
+ resValue "string", "app_name", "KAU"
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}