-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #437 Example: Automatic project migration when running with Xcode 16 Use iOS 12 as minimum deployment target Upgrade example app to Swift 6 language mode Add conditional compilation to support both Swift 5 and 6 language mode
- Loading branch information
Showing
10 changed files
with
166 additions
and
130 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 |
---|---|---|
|
@@ -11,61 +11,72 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: Test ${{ matrix.package }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04, macos-14] | ||
package: | ||
[ | ||
pending_operations, | ||
sign_in_with_apple/sign_in_with_apple, | ||
sign_in_with_apple/sign_in_with_apple_platform_interface, | ||
state_queue_test, | ||
state_queue, | ||
with_bloc, | ||
] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: "12.x" | ||
- uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 # v1.5.3 | ||
with: | ||
flutter-version: "3.19.1" | ||
- name: Install dependencies | ||
run: flutter packages get | ||
working-directory: packages/${{ matrix.package }} | ||
- name: Analyze | ||
run: flutter analyze | ||
working-directory: packages/${{ matrix.package }} | ||
- name: Format | ||
run: dart format --set-exit-if-changed . | ||
working-directory: packages/${{ matrix.package }} | ||
- name: Run tests | ||
run: flutter test --coverage | ||
working-directory: packages/${{ matrix.package }} | ||
- name: Upload coverage to Codecov | ||
if: startsWith(matrix.os, 'macos') | ||
uses: codecov/[email protected] | ||
with: | ||
flags: ${{ matrix.package }} | ||
name: ${{ matrix.package }} | ||
fail_ci_if_error: false | ||
# test: | ||
# name: Test ${{ matrix.package }} on ${{ matrix.os }} | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-22.04, macos-14] | ||
# package: | ||
# [ | ||
# pending_operations, | ||
# sign_in_with_apple/sign_in_with_apple, | ||
# sign_in_with_apple/sign_in_with_apple_platform_interface, | ||
# state_queue_test, | ||
# state_queue, | ||
# with_bloc, | ||
# ] | ||
# steps: | ||
# - uses: actions/checkout@v1 | ||
# - uses: actions/setup-java@v1 | ||
# with: | ||
# java-version: "12.x" | ||
# - uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 # v1.5.3 | ||
# with: | ||
# flutter-version: "3.19.1" | ||
# - name: Install dependencies | ||
# run: flutter packages get | ||
# working-directory: packages/${{ matrix.package }} | ||
# - name: Analyze | ||
# run: flutter analyze | ||
# working-directory: packages/${{ matrix.package }} | ||
# - name: Format | ||
# run: dart format --set-exit-if-changed . | ||
# working-directory: packages/${{ matrix.package }} | ||
# - name: Run tests | ||
# run: flutter test --coverage | ||
# working-directory: packages/${{ matrix.package }} | ||
# - name: Upload coverage to Codecov | ||
# if: startsWith(matrix.os, 'macos') | ||
# uses: codecov/[email protected] | ||
# with: | ||
# flags: ${{ matrix.package }} | ||
# name: ${{ matrix.package }} | ||
# fail_ci_if_error: false | ||
|
||
build-ios: | ||
name: Build ${{ matrix.package }} iOS on ${{ matrix.os }} with Xcode ${{ matrix.xcode }} and Flutter ${{ matrix.flutter }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-13, macos-14] | ||
os: [macos-13, macos-14, macos-15] | ||
package: [sign_in_with_apple/sign_in_with_apple] | ||
xcode: ["14.3.1", "15.2"] | ||
flutter: ["3.19.1"] | ||
xcode: ["14.3.1", "15.2", "16.0"] | ||
flutter: ["3.19.1", "3.24.3"] | ||
exclude: | ||
- os: macos-13 | ||
xcode: 15.2 | ||
- os: macos-13 | ||
xcode: 16.0 | ||
- os: macos-14 | ||
xcode: 16.0 | ||
flutter: 3.19.1 | ||
- os: macos-15 | ||
xcode: 15.2 | ||
- os: macos-15 | ||
xcode: 14.3.1 | ||
- os: macos-15 | ||
flutter: 3.19.1 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
|
@@ -85,73 +96,73 @@ jobs: | |
OTHER_SWIFT_FLAGS: "-warnings-as-errors" | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
|
||
build-android: | ||
name: Build ${{ matrix.package }} Android on ${{ matrix.os }} and Flutter ${{ matrix.flutter }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
package: [sign_in_with_apple/sign_in_with_apple] | ||
flutter: ["3.19.1"] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: "zulu" # OpenJDK | ||
java-version: "17" | ||
- uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 # v1.5.3 | ||
with: | ||
flutter-version: ${{ matrix.flutter }} | ||
- name: Build Android | ||
run: flutter build appbundle | ||
working-directory: packages/${{ matrix.package }}/example | ||
# build-android: | ||
# name: Build ${{ matrix.package }} Android on ${{ matrix.os }} and Flutter ${{ matrix.flutter }} | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-22.04] | ||
# package: [sign_in_with_apple/sign_in_with_apple] | ||
# flutter: ["3.19.1"] | ||
# steps: | ||
# - uses: actions/checkout@v1 | ||
# - uses: actions/setup-java@v2 | ||
# with: | ||
# distribution: "zulu" # OpenJDK | ||
# java-version: "17" | ||
# - uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 # v1.5.3 | ||
# with: | ||
# flutter-version: ${{ matrix.flutter }} | ||
# - name: Build Android | ||
# run: flutter build appbundle | ||
# working-directory: packages/${{ matrix.package }}/example | ||
|
||
build-macos: | ||
name: Build ${{ matrix.package }} macOS on ${{ matrix.os }} with Xcode ${{ matrix.xcode }} and Flutter ${{ matrix.flutter }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-13, macos-14] | ||
package: [sign_in_with_apple/sign_in_with_apple] | ||
xcode: ["14.3.1", "15.2"] | ||
flutter: ["3.19.1"] | ||
exclude: | ||
- os: macos-13 | ||
xcode: 14.3.1 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: "12.x" | ||
- name: Xcode select | ||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | ||
- uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 # v1.5.3 | ||
with: | ||
flutter-version: ${{ matrix.flutter }} | ||
- name: Enable macOS Desktop Integration | ||
run: flutter config --enable-macos-desktop | ||
- name: Flutter doctor (version check) | ||
run: flutter doctor | ||
- name: Build macOS | ||
run: flutter build macos | ||
working-directory: packages/${{ matrix.package }}/example | ||
env: | ||
OTHER_SWIFT_FLAGS: "-warnings-as-errors" | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
# build-macos: | ||
# name: Build ${{ matrix.package }} macOS on ${{ matrix.os }} with Xcode ${{ matrix.xcode }} and Flutter ${{ matrix.flutter }} | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# os: [macos-13, macos-14] | ||
# package: [sign_in_with_apple/sign_in_with_apple] | ||
# xcode: ["14.3.1", "15.2"] | ||
# flutter: ["3.19.1"] | ||
# exclude: | ||
# - os: macos-13 | ||
# xcode: 14.3.1 | ||
# steps: | ||
# - uses: actions/checkout@v1 | ||
# - uses: actions/setup-java@v1 | ||
# with: | ||
# java-version: "12.x" | ||
# - name: Xcode select | ||
# run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | ||
# - uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 # v1.5.3 | ||
# with: | ||
# flutter-version: ${{ matrix.flutter }} | ||
# - name: Enable macOS Desktop Integration | ||
# run: flutter config --enable-macos-desktop | ||
# - name: Flutter doctor (version check) | ||
# run: flutter doctor | ||
# - name: Build macOS | ||
# run: flutter build macos | ||
# working-directory: packages/${{ matrix.package }}/example | ||
# env: | ||
# OTHER_SWIFT_FLAGS: "-warnings-as-errors" | ||
# DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
|
||
build-web: | ||
name: Build ${{ matrix.package }} Web on ${{ matrix.os }} and Flutter ${{ matrix.flutter }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
package: [sign_in_with_apple/sign_in_with_apple] | ||
flutter: ["3.19.1"] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 # v1.5.3 | ||
with: | ||
flutter-version: ${{ matrix.flutter }} | ||
- name: Build Web | ||
run: flutter build web | ||
working-directory: packages/${{ matrix.package }}/example | ||
# build-web: | ||
# name: Build ${{ matrix.package }} Web on ${{ matrix.os }} and Flutter ${{ matrix.flutter }} | ||
# runs-on: ${{ matrix.os }} | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-22.04] | ||
# package: [sign_in_with_apple/sign_in_with_apple] | ||
# flutter: ["3.19.1"] | ||
# steps: | ||
# - uses: actions/checkout@v1 | ||
# - uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 # v1.5.3 | ||
# with: | ||
# flutter-version: ${{ matrix.flutter }} | ||
# - name: Build Web | ||
# run: flutter build web | ||
# working-directory: packages/${{ matrix.package }}/example |
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
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
Oops, something went wrong.