Created
November 2, 2018 12:19
-
-
Save AdiD253/dedbbc039fd65409f6a715fc48cc35e9 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
android { | |
(...) | |
def keystorePropertiesFile = rootProject.file("keystore.properties") | |
def keyStoreProperties = new Properties() | |
keyStoreProperties.load(new FileInputStream(keystorePropertiesFile)) | |
defaultConfig { | |
(...) | |
buildConfigField("String", "SECRET_TOKEN", keyStoreProperties["SECRET_TOKEN"]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment