Last active
October 16, 2017 20:03
-
-
Save mateoKaradza/e228e42420fd00c8295ac9d7b38c9355 to your computer and use it in GitHub Desktop.
Example of signingConfigs within build.gradle file
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 { | |
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