Skip to content
Snippets Groups Projects
Commit 9e6ac76c authored by Lennart Goedhart's avatar Lennart Goedhart
Browse files

- Make signing optional

- Enable smaller builds on release
parent a89be295
Branches
Tags
No related merge requests found
...@@ -74,21 +74,11 @@ android { ...@@ -74,21 +74,11 @@ android {
buildConfigField "String", "BUGFENDER_API_KEY", getBugfenderApiKey() buildConfigField "String", "BUGFENDER_API_KEY", getBugfenderApiKey()
} }
signingConfigs {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
buildTypes { buildTypes {
release { release {
minifyEnabled false minifyEnabled true
zipAlignEnabled true zipAlignEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.release
} }
} }
...@@ -138,4 +128,6 @@ dependencies { ...@@ -138,4 +128,6 @@ dependencies {
transitive = true transitive = true
} }
compile 'com.github.javiersantos:AppUpdater:2.6.1' compile 'com.github.javiersantos:AppUpdater:2.6.1'
} }
\ No newline at end of file
apply from: "signing.gradle"
\ No newline at end of file
-dontobfuscate
-verbose
-dump class_files.txt
-printseeds seeds.txt
-printusage unused.txt
-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
-dontwarn okio.**
-dontwarn org.slf4j.**
-dontwarn retrofit2.Platform$Java8
if (project.hasProperty("RELEASE_KEY_ALIAS") &&
project.hasProperty("RELEASE_KEY_PASSWORD") &&
project.hasProperty("RELEASE_STORE_PASSWORD") &&
file(RELEASE_STORE_FILE).exists()) {
android {
signingConfigs {
releaseSigningConfig {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
buildTypes {
release {
signingConfig signingConfigs.releaseSigningConfig
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment