Created
October 23, 2018 17:33
-
-
Save umarhussain15/1d36c7bee08088e02727adf30f259611 to your computer and use it in GitHub Desktop.
gradle configuration using a local properties files to load credentials
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
//... | |
def keystorePropertiesFile = file("../keystore.properties"); | |
def keystoreProperties = new Properties() | |
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) | |
android { | |
signingConfigs { | |
release { | |
storeFile = file(keystoreProperties['storeFile']) | |
storePassword = keystoreProperties['storePassword'] | |
keyAlias = keystoreProperties['keyAlias'] | |
keyPassword = keystoreProperties['keyPassword'] | |
} | |
debug { | |
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