From f9834ba66bb34d4d36e25c656030514d1d6f3920 Mon Sep 17 00:00:00 2001 From: Sangho Kim Date: Sat, 30 Nov 2024 22:13:48 +0900 Subject: [PATCH] =?UTF-8?q?[FIX/#178]=20keystore.jks=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=20=EB=A1=A4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/firebase_distribution_builder.yml | 4 ++-- app/build.gradle.kts | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/firebase_distribution_builder.yml b/.github/workflows/firebase_distribution_builder.yml index 83332fb..f73edfa 100644 --- a/.github/workflows/firebase_distribution_builder.yml +++ b/.github/workflows/firebase_distribution_builder.yml @@ -55,8 +55,7 @@ jobs: - name: Set up keystore run: | - echo "$keystore_file" | base64 -d > keystore.jks - echo "Keystore file created at app/keystore.jks" + echo "$keystore_file" | base64 -d > app/gentiKeystore.jks - name: Access Keystore Properties env: @@ -65,6 +64,7 @@ jobs: key_password: ${{ secrets.KEY_PASSWORD }} key_alias: ${{ secrets.KEY_ALIAS }} run: | + echo "storeFile=gentiKeystore.jks" > keystore.properties echo "storePassword=\"$store_password\"" >> keystore.properties echo "keyAlias=\"$key_alias\"" >> keystore.properties echo "keyPassword=\"$key_password\"" >> keystore.properties diff --git a/app/build.gradle.kts b/app/build.gradle.kts index d085693..82e7b39 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -18,15 +18,12 @@ android { manifestPlaceholders["NATIVE_APP_KEY"] = gradleLocalProperties(rootDir).getProperty("nativeAppKey") - val keystoreProperties = Properties() val keystorePropertiesFile = rootProject.file("keystore.properties") - if (keystorePropertiesFile.exists()) { - keystoreProperties.load(keystorePropertiesFile.inputStream()) - } - + val keystoreProperties = Properties() + keystoreProperties.load(keystorePropertiesFile.inputStream()) signingConfigs { create("release") { - storeFile = file("app/keystore.jks") + storeFile = file(keystoreProperties["storeFile"] as String) storePassword = keystoreProperties["storePassword"] as String keyAlias = keystoreProperties["keyAlias"] as String keyPassword = keystoreProperties["keyPassword"] as String