Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/development' into setup-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffrey0606 committed Mar 27, 2023
2 parents 6235ca3 + bfd5fd9 commit 8c70d94
Show file tree
Hide file tree
Showing 54 changed files with 1,686 additions and 496 deletions.
106 changes: 106 additions & 0 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: Android App Release for development branch

on:
push:
branches:
- development

jobs:
version:
name: Create version number # using GitVersion
runs-on: ubuntu-latest #macos-latest
steps:
- uses: actions/checkout@v3
- name: Fetch all history for all tags and branches
run: git fetch --prune --depth=10000
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'
- name: Use GitVersion
id: gitversion
uses: gittools/actions/gitversion/[email protected]
- name: Create android-version.txt with nuGetVersion
run: echo ${{ steps.gitversion.outputs.nuGetVersion }} > android-version.txt
- name: Upload android-version.txt
uses: actions/upload-artifact@v3
with:
name: gitversion
path: android-version.txt
build:
name: Build Appbundle and Apks
needs: [ version ]
runs-on: ubuntu-latest #macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '12.x'
distribution: 'zulu'
cache: 'gradle'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.7'
cache: true
channel: 'stable'
- run: flutter upgrade
- run: flutter --version
- name: Get DEV_GOOGLE_SERVICES_JSON content write it into app/src/development/google-services.json
env:
DEV_GOOGLE_SERVICES_JSON: ${{ secrets.DEV_GOOGLE_SERVICES_JSON }}
run: echo "$DEV_GOOGLE_SERVICES_JSON" > android/app/src/development/google-services.json
- run: flutter pub get
# - run: flutter test
- run: flutter build apk --profile --flavor development --target lib/main_development.dart
# - run: flutter build appbundle
- name: upload app builds files
uses: actions/upload-artifact@v3
with:
name: flutter-app-builds
path: |
build/app/outputs/flutter-apk/app-development-profile.apk
github-deploy:
name: Deploy Build to Github
needs: [ build, version ]
runs-on: ubuntu-latest #macos-latest
steps:
- name: Get android-version.txt
uses: actions/download-artifact@v3
with:
name: gitversion
- name: Read version
id: version
uses: juliangruber/read-file-action@v1
with:
path: android-version.txt
- name: Get app builds
uses: actions/download-artifact@v3
with:
name: flutter-app-builds
- name: Echo android-version.txt
run: echo "${{ steps.version.outputs.content }}"
- name: Display structure of downloaded files
run: ls -R
- name: Create a Release in GitHub
uses: ncipollo/release-action@v1
with:
artifacts: "flutter-apk/app-development-profile.apk"
token: ${{ secrets.GH_TOKEN }}
tag: ${{ steps.version.outputs.content }}
commit: ${{ github.sha }}
firebase-deploy:
name: Deploy Build to Firebase App Distribution
needs: [ build ]
runs-on: ubuntu-latest #macos-latest
steps:
- name: Get app builds
uses: actions/download-artifact@v3
with:
name: flutter-app-builds
- name: upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_ANDROID_APP_ID}}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: testers
file: flutter-apk/app-development-profile.apk
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.6.10'//1.8.10 -> 1.8.10 because of release build failures
repositories {
google()
mavenCentral()
Expand Down
3 changes: 3 additions & 0 deletions assets/fpb-assets/active_checkbox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/fpb-assets/apple_pay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/fpb-assets/bank.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/fpb-assets/bank_account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/fpb-assets/google_pay.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions assets/fpb-assets/paypal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/fpb-assets/uncheck_tick.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/fpb-assets/white_tick_check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 8c70d94

Please sign in to comment.