Created
March 6, 2017 13:03
-
-
Save ShurikuS57/bcd9f9d81c144834383d88360e0c8678 to your computer and use it in GitHub Desktop.
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
defaultConfig { | |
..... | |
Properties properties = new Properties() | |
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | |
def apiKey = properties.getProperty('api.key') | |
resValue "string", "API_KEY", apiKey | |
} |
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
api.key = "04e0f542ya38a58461a44fbd11a89530" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment