Signing Android builds

This commit is contained in:
Feodor Fitsner 2024-10-06 17:49:40 -07:00
parent fcfb51b0f3
commit 20bc4e12af
1 changed files with 15 additions and 0 deletions

View File

@ -64,9 +64,24 @@ android {
// {% endif %} // {% endif %}
} }
// {% if cookiecutter.options.android_signing %}
signingConfigs {
release {
keyAlias System.getenv('FLET_ANDROID_SIGNING_KEY_ALIAS')
keyPassword System.getenv('FLET_ANDROID_SIGNING_KEY_PASSWORD')
storeFile System.getenv('FLET_ANDROID_SIGNING_KEY_STORE') ? file(System.getenv('FLET_ANDROID_SIGNING_KEY_STORE')) : null
storePassword System.getenv('FLET_ANDROID_SIGNING_KEY_STORE_PASSWORD')
}
}
// {% endif %}
buildTypes { buildTypes {
release { release {
// {% if cookiecutter.options.android_signing %}
signingConfig signingConfigs.debug signingConfig signingConfigs.debug
// {% else %}
signingConfig signingConfigs.release
// {% endif %}
} }
} }
} }