Skip to content

Commit d1c3ac7

Browse files
committed
Merge branch 'master' into gmain
* master: (175 commits) [shared_preferences] Don't create additional Handler when method channel is called. (flutter#3639) [image_picker_for_web] Bump version for NNBD stable (flutter#3635) [file_selector_platform_interface]: Verify that extensions don't have leading dots. (flutter#3451) Fix Cirrus script for firebase testlab tests (flutter#3634) [extension_google_sign_in_as_googleapis_auth] Migrate to null safety (flutter#3642) [file_selector] Endorse web (flutter#3643) [google_sign_in] Bump app-facing version for NNBD stable (flutter#3637) [google_sign_in_web] Migrate to null-safety (flutter#3628) Make executor an instance property (flutter#3633) [url_launcher] Added a note to the README (flutter#2031) Fix typo in image_picker_for_web README.md (flutter#2835) embedded_views_preview not required since v1.0.0 (flutter#3625) [file_selector] Migrate to null safety (flutter#3631) [camera_platform_interface] Stable null safety release. (flutter#3610) [wifi_info_flutter] null safety stable (flutter#3627) [in_app_purchase] Add support for InApp subscription upgrade/downgrade (flutter#2822) [cross_file] Fix base class nullability (flutter#3629) [file_selector] Return a non-null value from getSavePath on web (flutter#3630) [device_info] null safety stable (flutter#3626) [file_selector_web] Migrated to null-safety (flutter#3550) ... # Conflicts: # packages/google_maps_flutter/google_maps_flutter/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapBuilder.java # packages/google_maps_flutter/google_maps_flutter/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapController.java # packages/google_maps_flutter/google_maps_flutter/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapOptionsSink.java # packages/google_maps_flutter/google_maps_flutter/lib/src/google_map.dart
2 parents d4f431b + a0fe222 commit d1c3ac7

File tree

899 files changed

+15215
-15211
lines changed

Some content is hidden

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

899 files changed

+15215
-15211
lines changed

.cirrus.yml

Lines changed: 72 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ task:
1111
upgrade_script:
1212
- flutter channel stable
1313
- flutter upgrade
14+
- flutter channel beta
15+
- flutter upgrade
1416
- flutter channel master
1517
- flutter upgrade
1618
- git fetch origin master
17-
activate_script: pub global activate flutter_plugin_tools
19+
submodules_script:
20+
- git submodule init
21+
- git submodule update
1822
matrix:
1923
- name: publishable
2024
script:
@@ -31,6 +35,7 @@ task:
3135
env:
3236
matrix:
3337
CHANNEL: "master"
38+
CHANNEL: "beta"
3439
CHANNEL: "stable"
3540
test_script:
3641
# TODO(jackson): Allow web plugins once supported on stable
@@ -42,12 +47,14 @@ task:
4247
env:
4348
matrix:
4449
CHANNEL: "master"
50+
CHANNEL: "beta"
4551
CHANNEL: "stable"
4652
script: ./script/incremental_build.sh analyze
4753
- name: build_all_plugins_apk
4854
env:
4955
matrix:
5056
CHANNEL: "master"
57+
CHANNEL: "beta"
5158
CHANNEL: "stable"
5259
script:
5360
# TODO(jackson): Allow web plugins once supported on stable
@@ -77,6 +84,7 @@ task:
7784
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
7885
matrix:
7986
CHANNEL: "master"
87+
CHANNEL: "beta"
8088
CHANNEL: "stable"
8189
MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
8290
GCLOUD_FIREBASE_TESTLAB_KEY: ENCRYPTED[07586610af1fdfc894e5969f70ef2458341b9b7e9c3b7c4225a663b4a48732b7208a4d91c3b7d45305a6b55fa2a37fc4]
@@ -97,11 +105,11 @@ task:
97105
- export CIRRUS_COMMIT_MESSAGE=""
98106
- ./script/incremental_build.sh build-examples --apk
99107
- ./script/incremental_build.sh java-test # must come after apk build
100-
- if [[ $GCLOUD_FIREBASE_TESTLAB_KEY == ENCRYPTED* ]]; then
101-
- echo "This user does not have permission to run Firebase Test Lab tests."
102-
- else
108+
- if [[ -n "$GCLOUD_FIREBASE_TESTLAB_KEY" ]]; then
103109
- echo $GCLOUD_FIREBASE_TESTLAB_KEY > ${HOME}/gcloud-service-key.json
104110
- ./script/incremental_build.sh firebase-test-lab --device model=flame,version=29 --device model=starqlteue,version=26
111+
- else
112+
- echo "This user does not have permission to run Firebase Test Lab tests."
105113
- fi
106114
- export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt`
107115
- export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt`
@@ -119,10 +127,14 @@ task:
119127
upgrade_script:
120128
- flutter channel stable
121129
- flutter upgrade
130+
- flutter channel beta
131+
- flutter upgrade
122132
- flutter channel master
123133
- flutter upgrade
124134
- git fetch origin master
125-
activate_script: pub global activate flutter_plugin_tools
135+
submodules_script:
136+
- git submodule init
137+
- git submodule update
126138
matrix:
127139
- name: build-linux+drive-examples
128140
install_script:
@@ -134,80 +146,117 @@ task:
134146
- xvfb-run ./script/incremental_build.sh drive-examples --linux
135147

136148
task:
149+
# Xcode 12 task
137150
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
138151
only_if: $CIRRUS_TAG == ''
139152
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
140153
osx_instance:
141-
image: catalina-xcode-11.3.1-flutter
154+
image: big-sur-xcode-12.3
142155
upgrade_script:
143156
- sudo gem install cocoapods
144157
- flutter channel stable
145158
- flutter upgrade
159+
- flutter channel beta
160+
- flutter upgrade
146161
- flutter channel master
147162
- flutter upgrade
148163
- git fetch origin master
149-
activate_script: pub global activate flutter_plugin_tools
164+
submodules_script:
165+
- git submodule init
166+
- git submodule update
150167
create_simulator_script:
151168
- xcrun simctl list
152-
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-13-3 | xargs xcrun simctl boot
169+
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-14-3 | xargs xcrun simctl boot
153170
matrix:
154171
- name: build_all_plugins_ipa
155172
env:
156173
matrix:
157174
CHANNEL: "master"
175+
CHANNEL: "beta"
158176
CHANNEL: "stable"
159177
script:
160178
# TODO(jackson): Allow web plugins once supported on stable
161179
# https://github.com/flutter/flutter/issues/42864
162180
- if [[ "$CHANNEL" -eq "stable" ]]; then find . | grep _web$ | xargs rm -rf; fi
163181
- flutter channel $CHANNEL
164182
- ./script/build_all_plugins_app.sh ios --no-codesign
165-
- name: lint_darwin_plugins
166-
env:
167-
matrix:
168-
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
169-
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
170-
script:
171-
# TODO(jmagman): Lint macOS podspecs but skip any that fail library validation.
172-
- find . -name "*.podspec" | xargs grep -l "osx" | xargs rm
173-
# Skip the dummy podspecs used to placate the tool.
174-
- find . -name "*_web*.podspec" -o -name "*_mac*.podspec" | xargs rm
175-
- ./script/incremental_build.sh podspecs
176183
- name: build-ipas+drive-examples
177184
env:
178185
PATH: $PATH:/usr/local/bin
179-
PLUGINS_TO_SKIP_XCTESTS: "battery/battery,camera/camera,connectivity/connectivity,device_info/device_info,espresso,google_maps_flutter/google_maps_flutter,google_sign_in/google_sign_in,in_app_purchase,integration_test,ios_platform_images,local_auth,package_info,path_provider/path_provider,quick_actions,sensors,shared_preferences/shared_preferences,url_launcher/url_launcher,video_player/video_player,webview_flutter,wifi_info_flutter/wifi_info_flutter"
186+
PLUGINS_TO_SKIP_XCTESTS: "battery/battery,camera/camera,connectivity/connectivity,device_info/device_info,espresso,google_maps_flutter/google_maps_flutter,google_sign_in/google_sign_in,in_app_purchase,integration_test,ios_platform_images,local_auth,package_info,path_provider/path_provider,sensors,shared_preferences/shared_preferences,url_launcher/url_launcher,video_player/video_player,webview_flutter,wifi_info_flutter/wifi_info_flutter"
180187
matrix:
181188
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 4"
182189
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 4"
183190
PLUGIN_SHARDING: "--shardIndex 2 --shardCount 4"
184191
PLUGIN_SHARDING: "--shardIndex 3 --shardCount 4"
185192
matrix:
186193
CHANNEL: "master"
194+
CHANNEL: "beta"
187195
CHANNEL: "stable"
188196
SIMCTL_CHILD_MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
189197
build_script:
190198
# TODO(jackson): Allow web plugins once supported on stable
191199
# https://github.com/flutter/flutter/issues/42864
192200
- if [[ "$CHANNEL" -eq "stable" ]]; then find . | grep _web$ | xargs rm -rf; fi
193201
- flutter channel $CHANNEL
202+
- flutter upgrade
194203
- ./script/incremental_build.sh build-examples --ipa
195-
- ./script/incremental_build.sh drive-examples
196-
- ./script/incremental_build.sh xctest --target RunnerUITests --skip $PLUGINS_TO_SKIP_XCTESTS
204+
- ./script/incremental_build.sh xctest --target RunnerUITests --skip $PLUGINS_TO_SKIP_XCTESTS --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=14.3"
205+
# `drive-examples` contains integration tests, which changes the UI of the application.
206+
# This UI change sometimes affects `xctest`.
207+
# So we run `drive-examples` after `xctest`, changing the order will result ci failure.
208+
- ./script/incremental_build.sh drive-examples --ios
209+
197210
task:
211+
# Xcode 11 task
212+
# TODO(cyanglaz): merge Xcode 11 task to Xcode 12 task when all the matrix can be run in Xcode 12.
198213
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
199214
only_if: $CIRRUS_TAG == ''
200215
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
201216
osx_instance:
202217
image: catalina-xcode-11.3.1-flutter
218+
upgrade_script:
219+
- sudo gem install cocoapods
220+
- flutter channel stable
221+
- flutter upgrade
222+
- flutter channel master
223+
- flutter upgrade
224+
- git fetch origin master
225+
submodules_script:
226+
- git submodule init
227+
- git submodule update
228+
create_simulator_script:
229+
- xcrun simctl list
230+
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-X com.apple.CoreSimulator.SimRuntime.iOS-13-3 | xargs xcrun simctl boot
231+
matrix:
232+
- name: lint_darwin_plugins
233+
env:
234+
matrix:
235+
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
236+
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
237+
script:
238+
# TODO(jmagman): Lint macOS podspecs but skip any that fail library validation.
239+
- find . -name "*.podspec" | xargs grep -l "osx" | xargs rm
240+
# Skip the dummy podspecs used to placate the tool.
241+
- find . -name "*_web*.podspec" -o -name "*_mac*.podspec" | xargs rm
242+
- ./script/incremental_build.sh podspecs
243+
244+
task:
245+
# don't run on release tags since it creates O(n^2) tasks where n is the number of plugins
246+
only_if: $CIRRUS_TAG == ''
247+
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
248+
osx_instance:
249+
image: big-sur-xcode-12.3
203250
setup_script:
204251
- flutter config --enable-macos-desktop
205252
upgrade_script:
206253
- sudo gem install cocoapods
207254
- flutter channel master
208255
- flutter upgrade
209256
- git fetch origin master
210-
activate_script: pub global activate flutter_plugin_tools
257+
submodules_script:
258+
- git submodule init
259+
- git submodule update
211260
matrix:
212261
- name: build_all_plugins_app
213262
script:

.github/labeler.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,27 @@
8484

8585
'p: wifi_info_flutter':
8686
- packages/wifi_info_flutter/**/*
87+
88+
'platform-android':
89+
- packages/*/*_android/**/*
90+
- packages/**/android/**/*
91+
92+
'platform-ios':
93+
- packages/*/*_ios/**/*
94+
- packages/**/ios/**/*
95+
96+
'platform-linux':
97+
- packages/*/*_linux/**/*
98+
- packages/**/linux/**/*
99+
100+
'platform-macos':
101+
- packages/*/*_macos/**/*
102+
- packages/**/macos/**/*
103+
104+
'platform-web':
105+
- packages/*/*_web/**/*
106+
- packages/**/web/**/*
107+
108+
'platform-windows':
109+
- packages/*/*_windows/**/*
110+
- packages/**/windows/**/*

.github/post_merge_labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
'needs-publishing':
2+
- packages/*/**
Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
# This workflow applies labels to pull requests based on the
22
# paths that are modified in the pull request.
33
#
4-
# Edit `.github/labeler.yml` to configure labels.
4+
# Edit `.github/labeler.yml` and `.github/post_merge_labeler.yml`
5+
# to configure labels.
56
#
67
# For more information, see: https://github.com/actions/labeler
78

89
name: Pull Request Labeler
910

1011
on:
11-
- pull_request_target
12+
pull_request_target:
13+
types: [opened, synchronize, reopened, closed]
1214

1315
jobs:
1416
label:
1517
runs-on: ubuntu-latest
1618
steps:
17-
- uses: actions/labeler@main
18-
with:
19-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
20-
sync-labels: true
19+
- uses: actions/labeler@v3
20+
with:
21+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
22+
sync-labels: true
23+
24+
post_merge_label:
25+
if: github.event.action == 'closed' && github.event.pull_request.merged == true
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/labeler@v3
29+
with:
30+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
31+
configuration-path: .github/post_merge_labeler.yml

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ build/
4646
.project
4747
.classpath
4848
.settings
49+
50+
# Downloaded by the plugin tools.
51+
google-java-format-1.3-all-deps.jar

AUTHORS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,6 @@ Eitan Schwartz <[email protected]>
6060
Chris Rutkowski <[email protected]>
6161
Juan Alvarez <[email protected]>
6262
Aleksandr Yurkovskiy <[email protected]>
63-
Anton Borries <[email protected]>
63+
Anton Borries <[email protected]>
64+
65+
Rahul Raj <[email protected]>

CODEOWNERS

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,12 @@
44
# These names are just suggestions. It is fine to have your changes
55
# reviewed by someone else.
66

7-
packages/android_alarm_manager/** @bkonyi
8-
packages/android_intent/** @mklim @matthew-carroll
9-
packages/battery/** @amirh @matthew-carroll
7+
108
packages/camera/** @bparrishMines
11-
packages/connectivity/** @cyanglaz @matthew-carroll
129
packages/cross_file/** @ditman @mvanbeusekom
13-
packages/device_info/** @matthew-carroll
14-
packages/espresso/** @collinjackson @adazh
1510
packages/file_selector/** @ditman
1611
packages/google_maps_flutter/** @cyanglaz
17-
packages/google_sign_in/** @cyanglaz @mehmetf
1812
packages/image_picker/** @cyanglaz
1913
packages/integration_test/** @dnfield
20-
packages/in_app_purchase/** @mklim @cyanglaz @LHLL
14+
packages/in_app_purchase/** @cyanglaz @LHLL
2115
packages/ios_platform_images/** @gaaclarke
22-
packages/package_info/** @cyanglaz @matthew-carroll
23-
packages/path_provider/** @matthew-carroll
24-
packages/shared_preferences/** @matthew-carroll
25-
packages/url_launcher/** @mklim
26-
packages/video_player/** @iskakaushik @cyanglaz
27-
packages/webview_flutter/** @amirh

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55

66
_See also: [Flutter's code of conduct](https://github.com/flutter/flutter/blob/master/CODE_OF_CONDUCT.md)_
77

8+
## Important note
9+
10+
As of January 2021, we are no longer accepting non-critical PRs for plugins
11+
for which there is a corresponding [Flutter Community Plus
12+
Plugin](https://plus.fluttercommunity.dev/), as we hope in time to be able
13+
to transition users to those versions of the plugins. If you have a PR for
14+
something other than a critical issue (crashes, build failures, null safety, etc.)
15+
for any of the following plugins, we encourage you to submit it
16+
[there](https://github.com/fluttercommunity/plus_plugins/pulls) instead:
17+
- `android_alarm_manager`
18+
- `android_intent`
19+
- `battery`
20+
- `connectivity`
21+
- `device_info`
22+
- `package_info`
23+
- `sensors`
24+
- `share`
25+
- `wifi_info_flutter` (corresponds to `network_info_plus`)
26+
827
## Things you will need
928

1029

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ These plugins are also available on
1919
Please file any issues, bugs, or feature requests in the [main flutter
2020
repo](https://github.com/flutter/flutter/issues/new).
2121

22+
Issues pertaining to this repository are [labeled
23+
"plugin"](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Aplugin).
24+
2225
## Contributing
2326

2427
If you wish to contribute a new plugin to the Flutter ecosystem, please

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ analyzer:
44
# Ignore generated files
55
- '**/*.g.dart'
66
- 'lib/src/generated/*.dart'
7+
- '**/*.mocks.dart' # Mockito @GenerateMocks
78
errors:
89
always_require_non_null_named_parameters: false # not needed with nnbd
910
unnecessary_null_comparison: false # Turned as long as nnbd mix-mode is supported.

packages/android_alarm_manager/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.0
2+
3+
* Migrate to null safety.
4+
15
## 0.4.5+20
26

37
* Update the example app: remove the deprecated `RaisedButton` and `FlatButton` widgets.

0 commit comments

Comments
 (0)