From 20bc4e12af1fcf9fac4ae1e88fcf1f735f65e99d Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Sun, 6 Oct 2024 17:49:40 -0700 Subject: [PATCH] Signing Android builds --- {{cookiecutter.out_dir}}/android/app/build.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 %} } } }