Skip to content

Commit

Permalink
Play store signing fixes (#120)
Browse files Browse the repository at this point in the history
* Fix bug where the login fails when the google avatar takes a while to resolve from the backend

* Update version

* Update version

* Update Firebase signing

* Update iOS build stuff

* Add logs

* Format manifest file

* Update Kotlin version to 2.0.20

* Add logs

* Update Firebase configuration

* Remove unnecessary logs

* Update Workflow
  • Loading branch information
MillerAdulu authored Aug 28, 2024
1 parent 8c363b3 commit 4664667
Show file tree
Hide file tree
Showing 10 changed files with 128 additions and 273 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/release-apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Generate Production APK

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'

- name: πŸ“š Git Checkout
uses: actions/checkout@v4

- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3"

- name: πŸ“¦ Install Dependencies
run: flutter packages get

- name: ✨ Check Formatting
run: dart format --set-exit-if-changed lib test

- name: βš™οΈ Code Generation
run: dart run build_runner build --delete-conflicting-outputs

- name: πŸ•΅οΈ Analyze
run: flutter analyze lib

- name: βš™οΈ Download Android keystore
id: android_keystore
uses: timheuer/[email protected]
with:
fileName: key.jks
encodedString: ${{ secrets.PROD_KEYSTORE }}

- name: πŸ” Create key.properties
run: |
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties
echo "storePassword=${{ secrets.PROD_KEYSTORE_PASSPHRASE }}" >> android/key.properties
echo "keyPassword=${{ secrets.PROD_KEYSTORE_PASSWORD }}" >> android/key.properties
echo "keyAlias=${{ secrets.PROD_KEYSTORE_ALIAS }}" >> android/key.properties
- name: βš™οΈ Build APK
run: flutter build apk --flavor production --target lib/main_production.dart -v

- name: πŸ“¦ Upload APK
uses: actions/upload-artifact@v4
with:
name: production-apk
path: build/app/outputs/apk/production/release/app-production-release.apk
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ jobs:
- name: πŸ“¦ Upload AAB
uses: actions/upload-artifact@v4
with:
name: my-artifact
name: production-aab
path: build/app/outputs/bundle/productionRelease/app-production-release.aab
Loading

0 comments on commit 4664667

Please sign in to comment.