-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from droidconKE/feature/auth
Authentication
- Loading branch information
Showing
48 changed files
with
1,191 additions
and
989 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Generate production APK | ||
name: Generate Dev APK | ||
|
||
on: | ||
push: | ||
|
@@ -36,28 +36,30 @@ jobs: | |
- name: 🕵️ Analyze | ||
run: flutter analyze lib | ||
|
||
# - name: ⚙️ Download Android keystore | ||
# id: android_keystore | ||
# uses: timheuer/[email protected] | ||
# with: | ||
# fileName: key.jks | ||
# encodedString: ${{ secrets.RELEASE_KEYSTORE }} | ||
- name: ⚙️ Download Android keystore | ||
id: android_keystore | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: key.jks | ||
encodedString: ${{ secrets.DEV_KEYSTORE }} | ||
|
||
# - name: 🔐 Create key.properties | ||
# run: | | ||
# echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties | ||
# echo "storePassword=${{ secrets.RELEASE_KEYSTORE_PASSPHRASE }}" >> android/key.properties | ||
# echo "keyPassword=${{ secrets.RELEASE_KEYSTORE_PASSWORD }}" >> android/key.properties | ||
# echo "keyAlias=${{ secrets.RELEASE_KEYSTORE_ALIAS }}" >> android/key.properties | ||
- name: 🔐 Create key.properties | ||
run: | | ||
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties | ||
echo "storePassword=${{ secrets.DEV_KEYSTORE_PASSPHRASE }}" >> android/key.properties | ||
echo "keyPassword=${{ secrets.DEV_KEYSTORE_PASSWORD }}" >> android/key.properties | ||
echo "keyAlias=${{ secrets.DEV_KEYSTORE_ALIAS }}" >> android/key.properties | ||
- name: ⚙️ Build AAB | ||
run: flutter build apk --flavor production --target lib/main_production.dart | ||
- name: ⚙️ Build APK | ||
run: flutter build apk --flavor production --target lib/main_production.dart | ||
|
||
- name: 📦 Archive | ||
uses: actions/upload-artifact@v4 | ||
- name: 📦 Upload artifact to Firebase App Distribution | ||
uses: wzieba/Firebase-Distribution-Github-Action@v1 | ||
with: | ||
name: production-apk | ||
path: build/app/outputs/flutter-apk/app-production-release.apk | ||
appId: ${{secrets.FIREBASE_APP_ID}} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }} | ||
groups: internal-testing | ||
file: build/app/outputs/flutter-apk/app-production-release.apk | ||
|
||
# - name: ⚙️ Setup Ruby | ||
# uses: ruby/setup-ruby@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,28 @@ jobs: | |
- name: 🕵️ Analyze | ||
run: flutter analyze lib | ||
|
||
- name: ⚙️ Download Android keystore | ||
id: android_keystore | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: key.jks | ||
encodedString: ${{ secrets.DEV_KEYSTORE }} | ||
|
||
- name: 🔐 Create key.properties | ||
run: | | ||
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties | ||
echo "storePassword=${{ secrets.DEV_KEYSTORE_PASSPHRASE }}" >> android/key.properties | ||
echo "keyPassword=${{ secrets.DEV_KEYSTORE_PASSWORD }}" >> android/key.properties | ||
echo "keyAlias=${{ secrets.DEV_KEYSTORE_ALIAS }}" >> android/key.properties | ||
- name: ⚙️ Build APK | ||
run: flutter build apk --flavor production --target lib/main_production.dart | ||
|
||
- name: Upload artifact to Firebase App Distribution | ||
uses: wzieba/Firebase-Distribution-Github-Action@v1 | ||
with: | ||
appId: ${{secrets.FIREBASE_APP_ID}} | ||
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }} | ||
groups: internal-testing | ||
file: build/app/outputs/flutter-apk/app-production-release.apk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ GeneratedPluginRegistrant.java | |
key.properties | ||
**/*.keystore | ||
**/*.jks | ||
!public-dev-keystore.jks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.