-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/picker
# Conflicts: # CHANGELOG.md
- Loading branch information
Showing
177 changed files
with
8,122 additions
and
4,952 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"flutterSdkVersion": "3.13.0", | ||
"flutterSdkVersion": "3.16.0", | ||
"flavors": {} | ||
} |
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 |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -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 }} |
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 |
---|---|---|
@@ -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/ | ||
|
||
|
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,6 +9,9 @@ | |
.history | ||
.svn/ | ||
|
||
# no keystores | ||
*.jks | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
|
Oops, something went wrong.