diff options
Diffstat (limited to 'app/build.gradle')
-rw-r--r-- | app/build.gradle | 17 |
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}" |