Skip to content

Commit

Permalink
chore: add debug signing config
Browse files Browse the repository at this point in the history
  • Loading branch information
Heonbyeong committed Aug 29, 2024
1 parent e6e1faf commit 082da67
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ jobs:
run: |
echo "${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}" | base64 --decode > ./app/firebase_credentials.json
- name: Decode Keystore File
run: |
echo "${{ secrets.DEBUG_KEYSTORE_FILE }}" | base64 --decode > ./app/debug_keystore.jks
- name: Install Dependencies
run: |
gem install bundler
Expand All @@ -103,6 +107,10 @@ jobs:
- name: Build & Deploy Distribute
env:
FIREBASE_CREDENTIALS: ${{ github.workspace }}/app/firebase_credentials.json
DEBUG_KEYSTORE_FILE: ${{ github.workspace }}/app/debug_keystore.jks
DEBUG_KEYSTORE_PASSWORD: ${{ secrets.DEBUG_KEYSTORE_PASSWORD }}
DEBUG_KEYSTORE_KEY_ALIAS: ${{ secrets.DEBUG_KEYSTORE_KEY_ALIAS }}
DEBUG_KEYSTORE_KEY_PASSWORD: ${{ secrets.DEBUG_KEYSTORE_KEY_PASSWORD }}
APP_ID: ${{ secrets.FIREBASE_TB_APP_ID }}
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
CWD: ${{ github.workspace }}
Expand All @@ -111,4 +119,5 @@ jobs:
- name: Remove Credential
run: |
rm ./local.properties
rm ./app/firebase_credentials.json
rm ./app/firebase_credentials.json
rm ./app/debug_keystore.jks
3 changes: 0 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ android {
"proguard-rules.pro"
)
}
debug {
signingConfig = signingConfigs.getByName("debug")
}
}
packaging {
resources {
Expand Down
10 changes: 8 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,15 @@ platform :android do
)

gradle(
task: 'clean assemble',
task: 'assembleDebug',
flavor: "tb",
build_type: 'Debug'
build_type: 'Debug',
properties: {
"android.injected.signing.store.file" => "#{ENV["DEBUG_KEYSTORE_FILE"]}",
"android.injected.signing.store.password" => "#{ENV["DEBUG_KEYSTORE_PASSWORD"]}",
"android.injected.signing.key.alias" => "#{ENV["DEBUG_KEYSTORE_KEY_ALIAS"]}",
"android.injected.signing.key.password" => "#{ENV["DEBUG_KEYSTORE_KEY_PASSWORD"]}",
}
)
firebase_app_distribution(
service_credentials_file: "#{ENV["FIREBASE_CREDENTIALS"]}",
Expand Down

0 comments on commit 082da67

Please sign in to comment.