-
-
Save agrcrobles/4769c0cf70c8e44c50deab72068a9971 to your computer and use it in GitHub Desktop.
Example of signingConfigs within build.gradle file
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
signingConfigs { | |
release { | |
if (System.getenv()["CI"]) { // CI is true when running build on CI service, such as Bitrise | |
storeFile file(System.getenv()["BITRISE_SOURCE_DIR"] + "/keystores/my_keystore.jks") | |
storePassword System.getenv()["BITRISEIO_ANDROID_KEYSTORE_PASSWORD"] | |
keyAlias System.getenv()["BITRISEIO_ANDROID_KEYSTORE_ALIAS"] | |
keyPassword System.getenv()["BITRISEIO_ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD"] | |
} else { | |
storeFile file("release.keystore") | |
storePassword "Password123" | |
keyAlias "app_release" | |
keyPassword "Password123" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment