Created
October 23, 2018 17:45
-
-
Save umarhussain15/8a727fd33a49dba10889ebe6e2172de5 to your computer and use it in GitHub Desktop.
gradle script using global properties in signing config
This file contains hidden or 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
// ... | |
android { | |
signingConfigs { | |
release { | |
if (project.hasProperty('RELEASE_STORE_FILE')) { | |
storeFile file(RELEASE_STORE_FILE) | |
storePassword RELEASE_STORE_PASSWORD | |
keyAlias RELEASE_KEY_ALIAS | |
keyPassword RELEASE_KEY_PASSWORD | |
} | |
} | |
debug { | |
if (project.hasProperty('DEBUG_STORE_FILE')) { | |
storeFile file(DEBUG_STORE_FILE) | |
storePassword DEBUG_STORE_PASSWORD | |
keyAlias DEBUG_KEY_ALIAS | |
keyPassword DEBUG_KEY_PASSWORD | |
} | |
} | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment