Created
July 25, 2017 03:36
-
-
Save twaddington/9da640a3e54273bbc7da10fe5d2e2c89 to your computer and use it in GitHub Desktop.
Android - Load signing info from keystore.properties
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
// Load release signing info from keystore.properties | |
def keystoreProps = new Properties() | |
keystoreProps.load(new FileInputStream( | |
rootProject.file('keystore.properties'))) | |
keystoreProps.each { prop -> | |
if (!project.hasProperty(prop.key)) { | |
project.ext.set(prop.key, prop.value) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment