From acd46d874a627d75bae5acdeb0881925d588594b Mon Sep 17 00:00:00 2001 From: Dmytro Turskyi Date: Sat, 9 Dec 2023 13:28:36 -0500 Subject: [PATCH] Add write codemagic.keystore file. --- composeApp/build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index bb612bb..1e12658 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -125,7 +125,10 @@ android { } register("production") { storeFile = file( - path = "../composeApp/src/androidMain/keystore/politerai_release.keystore", + path = keystoreProperties["SIGNING_KEY_RELEASE_PATH"] as? String + ?: throw IllegalStateException( + "SIGNING_KEY_RELEASE_PATH for storeFile is missing or invalid", + ), ) storePassword = keystoreProperties["SIGNING_KEY_RELEASE_PASSWORD"] as? String ?: throw IllegalStateException("storePassword is missing or invalid")