diff --git a/{{cookiecutter.out_dir}}/android/app/build.gradle b/{{cookiecutter.out_dir}}/android/app/build.gradle index defcdac..584108d 100644 --- a/{{cookiecutter.out_dir}}/android/app/build.gradle +++ b/{{cookiecutter.out_dir}}/android/app/build.gradle @@ -64,9 +64,24 @@ android { // {% 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 { release { +// {% if cookiecutter.options.android_signing %} signingConfig signingConfigs.debug +// {% else %} + signingConfig signingConfigs.release +// {% endif %} } } }