aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle40
1 files changed, 24 insertions, 16 deletions
diff --git a/app/build.gradle b/app/build.gradle
index c07ed39c..90245f42 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -8,13 +8,20 @@ apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'
apply plugin: 'com.github.triplet.play'
-play {
- jsonFile = file('../files/gplay-keys.json')
- track = 'alpha'
- errorOnSizeLimit = true
- uploadImages = false
- untrackOld = true
-}
+def withPlaySigning = file('../files.gplay-keys.json').exists()
+/*
+ * Feel free to check the gitignore under the files/ folder to see what is required for the signing
+ * It is assumed that if one of those files exist, all remaining ones exist as well
+ */
+
+if (withPlaySigning)
+ play {
+ jsonFile = file('../files/gplay-keys.json')
+ track = 'alpha'
+ errorOnSizeLimit = true
+ uploadImages = false
+ untrackOld = true
+ }
android {
compileSdkVersion Integer.parseInt(project.TARGET_SDK)
@@ -33,7 +40,6 @@ android {
versionCode androidGitVersion.code()
versionName androidGitVersion.name()
multiDexEnabled true
- buildTypeMatching 'release'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
@@ -53,14 +59,16 @@ android {
signingConfigs {
- def releaseProps = new Properties()
- file("../files/play.properties").withInputStream { releaseProps.load(it) }
+ if (withPlaySigning) {
+ def releaseProps = new Properties()
+ file("../files/play.properties").withInputStream { releaseProps.load(it) }
- release {
- storeFile file("../files/play.keystore")
- storePassword releaseProps.getProperty('storePassword')
- keyAlias releaseProps.getProperty('keyAlias')
- keyPassword releaseProps.getProperty('keyPassword')
+ release {
+ storeFile file("../files/play.keystore")
+ storePassword releaseProps.getProperty('storePassword')
+ keyAlias releaseProps.getProperty('keyAlias')
+ keyPassword releaseProps.getProperty('keyPassword')
+ }
}
test {
@@ -95,7 +103,7 @@ android {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- signingConfig signingConfigs.release
+ if (withPlaySigning) signingConfig signingConfigs.release
resValue "string", "frost_name", "Frost"
resValue "string", "frost_web", "Frost Web"
}