Skip to content

Commit 77c7ea9

Browse files
authored
Merge branch 'main' into feat/supabase
2 parents 522db05 + 0fb45d0 commit 77c7ea9

File tree

141 files changed

+4394
-1478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+4394
-1478
lines changed

.github/actions/flutter-test/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,18 @@ runs:
3636
if: matrix.target == 'linux' || matrix.target == 'windows' || matrix.target == 'macos'
3737
working-directory: ${{ inputs.directory }}
3838
shell: bash
39+
env:
40+
INPUT_DIRECTORY: ${{ inputs.directory }}
3941
run: |
40-
testCmd="flutter test ${{ (inputs.directory == 'isar' && '-j 1') || '' }} --test-randomize-ordering-seed=random"
42+
if [[ "$INPUT_DIRECTORY" == 'isar' ]]; then
43+
testCmd="flutter test -j 1 --test-randomize-ordering-seed=random"
44+
else
45+
testCmd="flutter test --test-randomize-ordering-seed=random"
46+
fi
47+
4148
if ${{ (matrix.target == 'linux' && matrix.sdk == 'stable' && 'true') || 'false' }} ; then
4249
$testCmd --coverage
43-
if [[ '${{ inputs.directory }}' == 'flutter' ]] ; then
50+
if [[ "$INPUT_DIRECTORY" == 'flutter' ]] ; then
4451
dart run remove_from_coverage -f coverage/lcov.info -r 'binding.dart'
4552
fi
4653
else

.github/workflows/analyze.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,19 @@ jobs:
3434
- uses: actions/checkout@v4
3535
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # pin@v1
3636
if: ${{ inputs.sdk == 'dart' }}
37-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
37+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
3838
if: ${{ inputs.sdk == 'flutter' }}
3939

40-
- run: ${{ inputs.sdk }} pub get
41-
- run: ${{ inputs.sdk }} pub get
40+
- run: dart pub get
41+
if: ${{ inputs.sdk == 'dart' }}
42+
43+
- run: flutter pub get
44+
if: ${{ inputs.sdk == 'flutter' }}
45+
46+
- run: flutter pub get
4247
if: ${{ inputs.package == 'flutter' }}
4348
working-directory: flutter/microbenchmarks
49+
4450
- run: dart format --set-exit-if-changed ./
4551

4652
- name: dart analyze
@@ -77,10 +83,11 @@ jobs:
7783
env:
7884
TOTAL: ${{ steps.analysis.outputs.total }}
7985
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
86+
PANA_THRESHOLD: ${{ inputs.panaThreshold }}
8087
run: |
8188
PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
82-
if (( $PERCENTAGE < ${{ inputs.panaThreshold }} ))
89+
if (( $PERCENTAGE < $PANA_THRESHOLD ))
8390
then
84-
echo "Score too low ($PERCENTAGE % is less than the expected ${{ inputs.panaThreshold }} %)!"
91+
echo "Score too low ($PERCENTAGE % is less than the expected $PANA_THRESHOLD %)!"
8592
exit 1
8693
fi

.github/workflows/diagrams.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,6 @@ jobs:
7373
# we need to pass the current branch, otherwise we can't commit the changes.
7474
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
7575
- name: Commit & push
76-
run: ./scripts/commit-code.sh ${{ steps.extract_branch.outputs.branch }} "Update class diagrams"
76+
run: ./scripts/commit-code.sh "$BRANCH_NAME" "Update class diagrams"
77+
env:
78+
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}

.github/workflows/flutter-symbols.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ jobs:
4545
env:
4646
GITHUB_TOKEN: ${{ github.token }}
4747

48-
- run: dart run bin/flutter_symbol_collector.dart --version=${{ inputs.flutter_version || '3.*.*' }}
48+
- run: dart run bin/flutter_symbol_collector.dart --version="$FLUTTER_VERSION"
4949
timeout-minutes: 300
5050
env:
5151
GITHUB_TOKEN: ${{ github.token }}
52+
FLUTTER_VERSION: ${{ inputs.flutter_version || '3.*.*' }}
5253

5354
- name: Upload updated status cache of processed files
5455
uses: actions/upload-artifact@v4

.github/workflows/flutter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
steps:
120120
- uses: actions/checkout@v4
121121

122-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
122+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
123123
with:
124124
channel: main
125125

.github/workflows/flutter_test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
distribution: 'adopt'
5050
java-version: '17'
5151

52-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
52+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
5353
with:
5454
channel: ${{ matrix.sdk }}
5555

@@ -120,7 +120,7 @@ jobs:
120120
- name: checkout
121121
uses: actions/checkout@v4
122122

123-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
123+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
124124
with:
125125
channel: ${{ matrix.sdk }}
126126

@@ -157,7 +157,9 @@ jobs:
157157
# Should be OK because it will likely be removed after switching to FFI (see https://github.com/getsentry/sentry-dart/issues/1444).
158158
if: ${{ matrix.target != 'macos' }}
159159
working-directory: ./flutter/example/${{ matrix.target }}
160-
run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=${{ steps.device.outputs.platform }}" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO
160+
run: xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=$DEVICE_PLATFORM" -allowProvisioningUpdates CODE_SIGNING_ALLOWED=NO
161+
env:
162+
DEVICE_PLATFORM: ${{ steps.device.outputs.platform }}
161163

162164
test-web:
163165
runs-on: ubuntu-latest
@@ -174,12 +176,12 @@ jobs:
174176
uses: actions/checkout@v4
175177

176178
- name: Install Chrome Browser
177-
uses: browser-actions/setup-chrome@c785b87e244131f27c9f19c1a33e2ead956ab7ce # pin@v1.7.3
179+
uses: browser-actions/setup-chrome@b94431e051d1c52dcbe9a7092a4f10f827795416 # pin@v2.1.0
178180
with:
179181
chrome-version: stable
180182
- run: chrome --version
181183

182-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
184+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
183185
with:
184186
channel: ${{ matrix.sdk }}
185187

.github/workflows/format-and-fix.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/checkout@v4
3333
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # pin@v1
3434
if: ${{ matrix.package.sdk == 'dart' }}
35-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
35+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
3636
if: ${{ matrix.package.sdk == 'flutter' }}
3737

3838
- run: ${{ matrix.package.sdk }} pub get
@@ -51,4 +51,6 @@ jobs:
5151
# we need to pass the current branch, otherwise we can't commit the changes.
5252
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
5353
- name: Commit & push
54-
run: ./scripts/commit-code.sh ${{ steps.extract_branch.outputs.branch }} "Format & fix code"
54+
run: ./scripts/commit-code.sh "$BRANCH_NAME" "Format & fix code"
55+
env:
56+
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}

.github/workflows/metrics.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
echo "flutter=$version" >> "$GITHUB_OUTPUT"
5454
5555
- name: Install Flutter v${{ steps.conf.outputs.flutter }}
56-
uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
56+
uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
5757
with:
5858
flutter-version: ${{ steps.conf.outputs.flutter }}
5959

@@ -97,7 +97,7 @@ jobs:
9797
runs-on: ubuntu-latest
9898
steps:
9999
- uses: actions/checkout@v4
100-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
100+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
101101

102102
- name: create dart sample apps
103103
working-directory: ./metrics

.github/workflows/min_version_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
distribution: "adopt"
3535
java-version: "17"
3636

37-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
37+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
3838
with:
3939
flutter-version: "3.24.0"
4040

@@ -51,7 +51,7 @@ jobs:
5151
steps:
5252
- uses: actions/checkout@v4
5353

54-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
54+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
5555
with:
5656
flutter-version: "3.24.0"
5757

@@ -82,7 +82,7 @@ jobs:
8282
steps:
8383
- uses: actions/checkout@v4
8484

85-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
85+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
8686
with:
8787
flutter-version: "3.24.0"
8888

.github/workflows/testflight.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ on:
77
pull_request:
88
paths:
99
- '.github/workflows/testflight.yml'
10+
workflow_dispatch:
1011

1112
jobs:
1213
upload_to_testflight:
1314
name: Build and Upload to Testflight
14-
runs-on: macos-13
15+
runs-on: macos-15
1516
steps:
1617
- uses: actions/checkout@v4
17-
- uses: subosito/flutter-action@395322a6cded4e9ed503aebd4cc1965625f8e59a # pin@v2.20.0
18-
- run: xcodes select 15.0.1
18+
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # pin@v2.21.0
19+
- run: xcodes select 16.3
1920
- uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # [email protected]
2021
with:
2122
ruby-version: '2.7.5'

0 commit comments

Comments
 (0)