android tutorial - Define the signing configuration setting environment variables in android - android studio - android app developement
Define the signing configuration setting environment variables in android
You can store the signing information setting environment variables. These values can be accessed with
System.getenv("<VAR-NAME>")
click below button to copy code from our android learning website - android tutorial - team
In your
build.gradle
click below button to copy code from our android learning website - android tutorial - team
you can define:
signingConfigs {
release {
storeFile file(System.getenv("KEYSTORE"))
storePassword System.getenv("KEYSTORE_PASSWORD")
keyAlias System.getenv("KEY_ALIAS")
keyPassword System.getenv("KEY_PASSWORD")
}
}