Last active
April 22, 2019 15:22
-
-
Save shekibobo/cb10f2d2c00fd8759032433894496a3f to your computer and use it in GitHub Desktop.
Load signing configs from secret keystore file for gradle build.
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 { | |
debug { | |
storeFile rootProject.file("signing/debug.keystore") | |
storePassword "android" | |
keyAlias "androiddebugkey" | |
keyPassword "android" | |
} | |
release { | |
def keystoreProperties = propertiesFrom("signing/keystore.properties") | |
if (!keystoreProperties.isEmpty()) { | |
storeFile file(keystoreProperties['storeFile']) | |
storePassword keystoreProperties['storePassword'] | |
keyAlias keystoreProperties['keyAlias'] | |
keyPassword keystoreProperties['keyPassword'] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment