aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-04-09 01:17:21 -0400
committerGitHub <noreply@github.com>2018-04-09 01:17:21 -0400
commit4c0ba22041ac01a5f0e1cc88a6c292034d697955 (patch)
tree0cba14ad715988b64cbcdc60c85f81671af679fd /app/build.gradle
parenta70ce6a2e2d25aa001a085169f25ba39532b3f11 (diff)
downloadfrost-4c0ba22041ac01a5f0e1cc88a6c292034d697955.tar.gz
frost-4c0ba22041ac01a5f0e1cc88a6c292034d697955.tar.bz2
frost-4c0ba22041ac01a5f0e1cc88a6c292034d697955.zip
Feature/download manager (#855)
* Add initial github release check * Create update service * Clean old manager directory * Update kau * Update updateActivity snippet * Add back gradle keys * Remove update service functionality
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 3b913a82..c34e6a53 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -43,6 +43,8 @@ android {
textOutput 'stdout'
}
+ def withReleaseSigning = file('../files/release.keystore').exists()
+
signingConfigs {
debug {
@@ -59,6 +61,18 @@ android {
keyPassword "testkey"
}
+ if (withReleaseSigning) {
+ def releaseProps = new Properties()
+ file("../files/release.properties").withInputStream { releaseProps.load(it) }
+
+ release {
+ storeFile file("../files/release.keystore")
+ storePassword releaseProps.getProperty('storePassword')
+ keyAlias releaseProps.getProperty('keyAlias')
+ keyPassword releaseProps.getProperty('keyPassword')
+ }
+ }
+
}
buildTypes {
@@ -85,6 +99,7 @@ android {
release {
minifyEnabled true
shrinkResources true
+ if (withReleaseSigning) signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
resValue "string", "frost_name", "Frost"
resValue "string", "frost_web", "Frost Web"
@@ -172,6 +187,8 @@ dependencies {
implementation "org.jsoup:jsoup:${JSOUP}"
+ implementation "joda-time:joda-time:${JODA}"
+
implementation "com.squareup.okhttp3:okhttp:${OKHTTP}"
implementation "com.squareup.okhttp3:logging-interceptor:${OKHTTP}"