diff options
author | Allan Wang <me@allanwang.ca> | 2017-08-20 00:16:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-20 00:16:41 -0700 |
commit | 55cda1842fa1d302e0a282830255c684a6be3474 (patch) | |
tree | 10b76c3fee0a8a9c25b5dd62ef40e996f152f8cb | |
parent | 1d56e35c8af3d91e7dadfe80cc0458fad41a4f19 (diff) | |
download | frost-55cda1842fa1d302e0a282830255c684a6be3474.tar.gz frost-55cda1842fa1d302e0a282830255c684a6be3474.tar.bz2 frost-55cda1842fa1d302e0a282830255c684a6be3474.zip |
Fix/travis (#203)
* Add check to see if signing is valid
* Add test keystore
-rw-r--r-- | app/build.gradle | 40 | ||||
-rw-r--r-- | docs/Changelog.md | 1 | ||||
-rw-r--r-- | files/.gitignore | 1 |
3 files changed, 25 insertions, 17 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" } diff --git a/docs/Changelog.md b/docs/Changelog.md index 131ed286..d2edbc4a 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -3,6 +3,7 @@ ## Beta Updates * Fix url loading bug and add option to launch urls in default browser (behaviour setting) * Allow for bottom bar tabs (appearance setting) +* Allow custom ringtones for notifications and messages (notification setting) ## v1.4.7 * Update secondary background for transparent themes to be more visible. diff --git a/files/.gitignore b/files/.gitignore index 82c07033..50650209 100644 --- a/files/.gitignore +++ b/files/.gitignore @@ -1,5 +1,4 @@ gplay-keys.json play.keystore play.properties -test.keystore update-dev.sh |