Created
December 27, 2020 22:59
-
-
Save e200/d8eba97c32ffc865c525dff018b13507 to your computer and use it in GitHub Desktop.
Debug and release keystore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
signingConfigs { | |
release { | |
if (keystorePropertiesFile.exists()) { | |
keyAlias keystoreProperties['keyAlias'] | |
keyPassword keystoreProperties['keyPassword'] | |
storeFile file(keystoreProperties['storeFile']) | |
storePassword keystoreProperties['storePassword'] | |
} | |
} | |
} | |
buildTypes { | |
release { | |
if (keystorePropertiesFile.exists()) { | |
signingConfig signingConfigs.release | |
println "Signing with key.properties" | |
} else { | |
signingConfig signingConfigs.debug | |
println "Signing with debug keys" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment