Skip to content

Commit

Permalink
[FIX/#178] keystore.jks 경로 롤백
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Nov 30, 2024
1 parent fe3c212 commit f9834ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/firebase_distribution_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
9 changes: 3 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9834ba

Please sign in to comment.