Last active
February 16, 2020 21:30
-
-
Save lordcodes/7b20f8db2bcd1a8436a6d6d0085cca82 to your computer and use it in GitHub Desktop.
Code for the article: "Protecting secrets in an Android project"
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
| signingConfigs { | |
| create("upload") { | |
| storePassword = propertyOrEmpty( | |
| "GameCatalogueApp_UploadKeystore_KeyPassword" | |
| ) | |
| } | |
| } | |
| fun Project.propertyOrEmpty(name: String): String { | |
| val property = findProperty(name) as String? | |
| return property ?: "" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment