Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/picker
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
  • Loading branch information
VanHoangTran committed Dec 15, 2023
2 parents 2b7d1c0 + b997a1c commit 57b0097
Show file tree
Hide file tree
Showing 177 changed files with 8,122 additions and 4,952 deletions.
2 changes: 1 addition & 1 deletion .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutterSdkVersion": "3.13.0",
"flutterSdkVersion": "3.16.0",
"flavors": {}
}
71 changes: 71 additions & 0 deletions .github/workflows/android_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: android_release
on: workflow_dispatch

jobs:
build-and-release:
runs-on: ubuntu-latest

steps:
- name: Set up JDK 11.
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin

- name: Checkout design_system_flutter code.
uses: actions/checkout@v4

- name: Write Keystore from base64 encoded secret.
id: write_keystore
uses: timheuer/[email protected]
with:
fileName: "fdsm_keystore.jks"
fileDir: "./example/android/app/keys"
encodedString: ${{ secrets.KEYSTORE_64 }}

- name: Parse flutter version and channel specified in .fvm into env vars.
uses: kuhnroyal/flutter-fvm-config-action@v1

- name: Clone flutter version specified in .fvm.
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}

- name: Run flutter doctor.
run: flutter doctor -v

- name: Install dependencies.
run: flutter pub get
working-directory: example

- name: Build appbundle.
run: flutter build appbundle --no-pub
working-directory: example
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}

- name: Create Signing Report.
run: ./gradlew signingReport
working-directory: example/android

- name: Upload appbundle as artifact.
uses: actions/upload-artifact@v3
with:
name: app-release.aab
path: example/build/app/outputs/bundle/release/
retention-days: 1

- name: Write Google SA json from base64 encoded secret.
id: write_google_sa
uses: timheuer/[email protected]
with:
fileName: "gp_service_account.json"
fileDir: "./example/android/app/keys"
encodedString: ${{ secrets.GOOGLE_PLAYSTORE_SERVICE_ACCOUNT_64 }}

- name: Release using GPP.
run: ./gradlew publishBundle --artifact-dir ../build/app/outputs/bundle/release/
working-directory: example/android
50 changes: 0 additions & 50 deletions .github/workflows/dart.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/pubdev_score.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Workflow evaluates the score on pub.dev.
# Runs on each push to main.

name: pubdev_score

on:
push:
branches:
- main

jobs:
scoring:
runs-on: ubuntu-latest

steps:
- name: Clone repository.
uses: actions/checkout@v4
with:
ref: main
- name: Evaluate Score
uses: axel-op/dart-package-analyzer@v3
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Runs flutter test on every push.
# Failed goldens are uploaded and can be seen in the artifact summary of the job.

name: test

on:
push:

jobs:
test:
runs-on: macos-latest

steps:
- name: Checkout design_system_flutter code.
uses: actions/checkout@v4

- name: Parse flutter version and channel specified in .fvm into env vars.
uses: kuhnroyal/flutter-fvm-config-action@v1

- name: Clone flutter version specified in .fvm.
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}

- name: Run flutter doctor.
run: flutter doctor -v

- name: Install dependencies.
run: flutter pub get

- name: Run flutter test.
id: test
run: flutter test

- name: Upload goldens if tests fail.
uses: actions/upload-artifact@v3
if: ${{ failure() && steps.test.conclusion == 'failure' }}
with:
name: goldens
path: test/failures/


3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
.history
.svn/

# no keystores
*.jks

# IntelliJ related
*.iml
*.ipr
Expand Down
Loading

0 comments on commit 57b0097

Please sign in to comment.