Skip to content

Commit 71cfff5

Browse files
authored
Merge branch 'main' into master
2 parents a6ef4a5 + d842345 commit 71cfff5

93 files changed

Lines changed: 1336 additions & 3105 deletions

File tree

Some content is hidden

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

.github/workflows/permission_handler.yaml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ name: permission_handler
66
# events but only for the main branch
77
on:
88
push:
9-
branches: [ main ]
9+
branches: [main]
1010
paths:
11-
- 'permission_handler/**'
12-
- '.github/workflows/permission_handler.yaml'
11+
- "permission_handler/**"
12+
- ".github/workflows/permission_handler.yaml"
1313
pull_request:
14-
branches: [ main ]
14+
branches: [main]
1515
paths:
16-
- 'permission_handler/**'
17-
- '.github/workflows/permission_handler.yaml'
16+
- "permission_handler/**"
17+
- ".github/workflows/permission_handler.yaml"
1818

1919
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2020
jobs:
@@ -23,37 +23,30 @@ jobs:
2323

2424
# The type of runner that the job will run on
2525
#
26-
# TODO(mvanbeusekom): Manually set to macOS 13 to support Xcode 15 and iOS 17 SDKs.
27-
# Currently `macos-latest` is based on macOS 12 and doesn't support iOS 17 SDK. This
26+
# TODO(mvanbeusekom): Manually set to macOS 15 to support Xcode 16 and iOS 18 SDKs.
27+
# Currently `macos-latest` is based on macOS 14 and doesn't support iOS 18 SDK. This
2828
# should be moved back to `macos-latest` when GitHub Actions images are updated.
29-
runs-on: macos-13
29+
runs-on: macos-15
3030

3131
env:
32-
source-directory: ./permission_handler
32+
source-directory: ./permission_handler
3333
example-directory: ./permission_handler/example
3434

3535
# Steps represent a sequence of tasks that will be executed as part of the job
3636
steps:
3737
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3838
- uses: actions/checkout@v3
3939

40-
# Override current Xcode version with version 15.0.1.
41-
#
42-
# TODO(mvanbeusekom): Remove when the macos-latest image supports version 15.0.1
43-
# out of the box (see https://github.com/actions/runner-images/blob/main/README.md).
44-
- name: Select Xcode version
45-
run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer'
46-
4740
# Make sure JAVA version 17 is installed on build agent.
4841
- uses: actions/setup-java@v3
4942
with:
50-
distribution: 'temurin' # See 'Supported distributions' for available options
51-
java-version: '17'
43+
distribution: "temurin" # See 'Supported distributions' for available options
44+
java-version: "17"
5245

5346
# Make sure the stable version of Flutter is available
5447
- uses: subosito/flutter-action@v2
5548
with:
56-
channel: 'stable'
49+
channel: "stable"
5750

5851
# Download all Flutter packages
5952
- name: Download dependencies
@@ -64,7 +57,7 @@ jobs:
6457
- name: Run Dart Format
6558
run: dart format --set-exit-if-changed .
6659
working-directory: ${{env.source-directory}}
67-
60+
6861
# Run Flutter Analyzer
6962
- name: Run Flutter Analyzer
7063
run: flutter analyze

.github/workflows/permission_handler_android.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,13 @@ jobs:
3232
steps:
3333
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3434
- uses: actions/checkout@v3
35-
35+
36+
# Make sure JAVA version 17 is installed on build agent.
37+
- uses: actions/setup-java@v3
38+
with:
39+
distribution: 'temurin' # See 'Supported distributions' for available options
40+
java-version: '17'
41+
3642
# Make sure the stable version of Flutter is available
3743
- uses: subosito/flutter-action@v2
3844
with:

.github/workflows/permission_handler_apple.yaml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ name: permission_handler_apple
66
# events but only for the main branch
77
on:
88
push:
9-
branches: [ main ]
9+
branches: [main]
1010
paths:
11-
- 'permission_handler_apple/**'
12-
- '.github/workflows/permission_handler_apple.yaml'
11+
- "permission_handler_apple/**"
12+
- ".github/workflows/permission_handler_apple.yaml"
1313
pull_request:
14-
branches: [ main ]
14+
branches: [main]
1515
paths:
16-
- 'permission_handler_apple/**'
17-
- '.github/workflows/permission_handler_apple.yaml'
16+
- "permission_handler_apple/**"
17+
- ".github/workflows/permission_handler_apple.yaml"
1818

1919
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2020
jobs:
@@ -23,31 +23,24 @@ jobs:
2323

2424
# The type of runner that the job will run on
2525
#
26-
# TODO(mvanbeusekom): Manually set to macOS 13 to support Xcode 15 and iOS 17 SDKs.
27-
# Currently `macos-latest` is based on macOS 12 and doesn't support iOS 17 SDK. This
26+
# TODO(mvanbeusekom): Manually set to macOS 15 to support Xcode 16 and iOS 18 SDKs.
27+
# Currently `macos-latest` is based on macOS 14 and doesn't support iOS 18 SDK. This
2828
# should be moved back to `macos-latest` when GitHub Actions images are updated.
29-
runs-on: macos-13
29+
runs-on: macos-15
3030

3131
env:
3232
source-directory: ./permission_handler_apple
33-
example-directory: ./permission_handler_apple/example
33+
example-directory: ./permission_handler_apple/example
3434

3535
# Steps represent a sequence of tasks that will be executed as part of the job
3636
steps:
3737
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3838
- uses: actions/checkout@v3
3939

40-
# Override current Xcode version with version 15.0.1.
41-
#
42-
# TODO(mvanbeusekom): Remove when the macos-latest image supports version 15.0.1
43-
# out of the box (see https://github.com/actions/runner-images/blob/main/README.md).
44-
- name: Select Xcode version
45-
run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer'
46-
4740
# Make sure the stable version of Flutter is available
4841
- uses: subosito/flutter-action@v2
4942
with:
50-
channel: 'stable'
43+
channel: "stable"
5144

5245
# Download all Flutter packages
5346
- name: Download dependencies
@@ -68,4 +61,3 @@ jobs:
6861
- name: Run iOS build
6962
run: flutter build ios --no-codesign --release
7063
working-directory: ${{env.example-directory}}
71-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The Flutter permission_handler plugin is build following the federated plugin architecture. A detailed explanation of the federated plugin concept can be found in the [Flutter documentation](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins). This means the permission_handler plugin is separated into the following packages:
44

55
1. [`permission_handler`][1]: the app facing package. This is the package users depend on to use the plugin in their project. For details on how to use the `permission_handler` plugin you can refer to its [README.md][2] file. At this moment the Android and iOS platform implementations are also part of this package. Additional platform support will be added in their own individual "platform package(s)".
6-
2. [`permission_handler_platform_interface`][3]: this packages declares the interface which all platform packages must implement to support the app-facing package. Instructions on how to implement a platform packages can be found int the [README.md][4] of the `permission_handler_platform_interface` package.
6+
2. [`permission_handler_platform_interface`][3]: this packages declares the interface which all platform packages must implement to support the app-facing package. Instructions on how to implement a platform packages can be found in the [README.md][4] of the `permission_handler_platform_interface` package.
77

88
[1]: https://pub.dev/packages/permission_handler
99
[2]: ./permission_handler/README.md

0 commit comments

Comments
 (0)