Skip to content

Commit 9d6ff71

Browse files
committed
Merge branch 'master' into gmain
* master: (131 commits) [in_app_purchase] fix "autoConsume" param in "buyConsumable" (flutter#3957) [video_player_web] fix: set autoplay to false during initialization (flutter#3985) [multiple_web] Adapt web PlatformView widgets to work slotted. (flutter#3964) [url_launcher] Add iOS unit and UI tests (flutter#3987) [image_picker] Change storage location for camera captures to internal cache on Android, to comply with new Google Play storage requirements. (flutter#3956) [script/tool] Use 'dart pub' instead of deprecated 'pub' (flutter#3991) [video_player] Add iOS unit and UI tests (flutter#3986) Add pubspec convention checks (flutter#3984) Enable pubspec dependency sorting lint (flutter#3983) [image_picker] Migrate maven repo from jcenter to mavenCentral (flutter#3915) [video_player] Update README.md (flutter#3975) [script/tool] speed up the pub get portion of the analyze command (flutter#3982) Revert commit e742a7b (flutter#3976) Added support to request list of purchases (flutter#3944) [google_maps_flutter] Add iOS unit and UI tests (flutter#3978) Added Windows to the description (flutter#3936) use 'flutter pub get' for both dart and flutter packages (flutter#3973) [camera] android-rework part 3: Android exposure related features (flutter#3797) Remove exoplayer workaround from everything but video_player (flutter#3980) Allow reverts when checking versions (flutter#3981) ...
2 parents 58ff4c0 + c1c4653 commit 9d6ff71

File tree

761 files changed

+14223
-9811
lines changed

Some content is hidden

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

761 files changed

+14223
-9811
lines changed

.ci.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Describes the targets run in continuous integration environment.
2+
#
3+
# Flutter infra uses this file to generate a checklist of tasks to be performed
4+
# for every commit.
5+
#
6+
# More information at:
7+
# * https://github.com/flutter/cocoon/blob/master/scheduler/README.md
8+
enabled_branches:
9+
- master
10+
11+
targets:
12+
- name: Windows Plugins
13+
builder: Windows Plugins
14+
postsubmit: false
15+
scheduler: luci
16+

.ci/dev/README.md

-19
This file was deleted.

.ci/dev/try_builders.json

-9
This file was deleted.

.cirrus.yml

+44-59
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ gcp_credentials: ENCRYPTED[ec898795b6f1b54f9cc2ab4104909f1053651f65fcab96397cfdc
44
# number of plugins
55
only_if: $CIRRUS_TAG == ''
66
env:
7-
INTEGRATION_TEST_PATH: "./packages/integration_test"
87
CHANNEL: "master" # Default to master when not explicitly set by a task.
98
PLUGIN_TOOLS: "dart run ./script/tool/lib/src/main.dart"
109

1110
tool_setup_template: &TOOL_SETUP_TEMPLATE
1211
tool_setup_script:
1312
- git fetch origin master # To set FETCH_HEAD for "git merge-base" to work
1413
- cd script/tool
15-
- pub get
14+
- dart pub get
1615

1716
flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
1817
upgrade_flutter_script:
@@ -25,7 +24,7 @@ macos_template: &MACOS_TEMPLATE
2524
# PRs on macOS.
2625
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
2726
osx_instance:
28-
image: big-sur-xcode-12.3
27+
image: big-sur-xcode-12.5
2928
cocoapod_install_script: sudo gem install cocoapods
3029

3130
# Light-workload Linux tasks.
@@ -48,41 +47,30 @@ task:
4847
- CIRRUS_BUILD_ID=null pub run test
4948
- name: publishable
5049
script:
51-
- if [[ "$CIRRUS_BRANCH" == "master" ]]; then
52-
- $PLUGIN_TOOLS version-check
53-
- else
54-
- $PLUGIN_TOOLS version-check --run-on-changed-packages
55-
- fi
56-
- ./script/check_publish.sh
50+
- ./script/tool_runner.sh version-check
51+
- ./script/tool_runner.sh publish-check
5752
- name: format
58-
format_script: ./script/incremental_build.sh format --fail-on-change
53+
format_script: ./script/tool_runner.sh format --fail-on-change
54+
pubspec_script: ./script/tool_runner.sh pubspec-check
5955
license_script:
60-
- cd script/tool
61-
- pub get
62-
- cd ../..
6356
- dart script/tool/lib/src/main.dart license-check
6457
- name: test
6558
env:
6659
matrix:
6760
CHANNEL: "master"
6861
CHANNEL: "stable"
6962
test_script:
70-
- ./script/incremental_build.sh test
71-
- name: analyze_master
63+
- ./script/tool_runner.sh test
64+
- name: analyze
7265
env:
7366
matrix:
7467
CHANNEL: "master"
75-
script:
76-
- ./script/incremental_build.sh analyze
77-
## TODO(cyanglaz):
78-
## Combing stable and master analyze jobs when integration test null safety is ready on flutter stable.
79-
- name: analyze_stable
80-
env:
81-
matrix:
8268
CHANNEL: "stable"
69+
tool_script:
70+
- cd script/tool
71+
- dart analyze --fatal-infos
8372
script:
84-
- find . -depth -type d -wholename '*_web/example' -exec rm -rf {} \;
85-
- ./script/incremental_build.sh analyze
73+
- ./script/tool_runner.sh analyze
8674
### Android tasks ###
8775
- name: build_all_plugins_apk
8876
env:
@@ -115,9 +103,9 @@ task:
115103
CHANNEL: "stable"
116104
build_script:
117105
- flutter config --enable-linux-desktop
118-
- ./script/incremental_build.sh build-examples --linux
119-
test_script:
120-
- xvfb-run ./script/incremental_build.sh drive-examples --linux
106+
- ./script/tool_runner.sh build-examples --linux
107+
drive_script:
108+
- xvfb-run ./script/tool_runner.sh drive-examples --linux
121109

122110
# Heavy-workload Linux tasks.
123111
# These use machines with more CPUs and memory, so will reduce parallelization
@@ -158,11 +146,11 @@ task:
158146
- echo "$CIRRUS_COMMIT_MESSAGE" > /tmp/cirrus_commit_message.txt
159147
- export CIRRUS_CHANGE_MESSAGE=""
160148
- export CIRRUS_COMMIT_MESSAGE=""
161-
- ./script/incremental_build.sh build-examples --apk
162-
- ./script/incremental_build.sh java-test # must come after apk build
149+
- ./script/tool_runner.sh build-examples --apk
150+
- ./script/tool_runner.sh java-test # must come after apk build
163151
- if [[ -n "$GCLOUD_FIREBASE_TESTLAB_KEY" ]]; then
164152
- echo $GCLOUD_FIREBASE_TESTLAB_KEY > ${HOME}/gcloud-service-key.json
165-
- ./script/incremental_build.sh firebase-test-lab --device model=flame,version=29 --device model=starqlteue,version=26
153+
- ./script/tool_runner.sh firebase-test-lab --device model=flame,version=29 --device model=starqlteue,version=26
166154
- else
167155
- echo "This user does not have permission to run Firebase Test Lab tests."
168156
- fi
@@ -171,30 +159,34 @@ task:
171159
### Web tasks ###
172160
- name: build-web+drive-examples
173161
env:
162+
# Currently missing; see https://github.com/flutter/flutter/issues/81982
163+
# and https://github.com/flutter/flutter/issues/82211
164+
PLUGINS_TO_EXCLUDE_INTEGRATION_TESTS: "file_selector,image_picker_for_web,shared_preferences_web"
174165
matrix:
175166
CHANNEL: "master"
176167
CHANNEL: "stable"
177168
install_script:
178169
- git clone https://github.com/flutter/web_installers.git
179170
- cd web_installers/packages/web_drivers/
180-
- pub get
171+
- dart pub get
181172
- dart lib/web_driver_installer.dart chromedriver --install-only
182173
- ./chromedriver/chromedriver --port=4444 &
183174
build_script:
184-
- ./script/incremental_build.sh build-examples --web
185-
test_script:
186-
# TODO(stuartmorgan): Eliminate this check once 2.1 reaches stable.
187-
- if [[ "$CHANNEL" == "master" ]]; then
188-
- ./script/incremental_build.sh drive-examples --web
189-
- else
190-
- echo "Requires null-safe integration_test; skipping."
191-
- fi
175+
- ./script/tool_runner.sh build-examples --web
176+
drive_script:
177+
- ./script/tool_runner.sh drive-examples --web --exclude $PLUGINS_TO_EXCLUDE_INTEGRATION_TESTS
192178

193179
# macOS tasks.
194180
task:
195181
<< : *MACOS_TEMPLATE
196182
<< : *FLUTTER_UPGRADE_TEMPLATE
197183
matrix:
184+
### iOS+macOS tasks ***
185+
- name: lint_darwin_plugins
186+
script:
187+
# TODO(jmagman): Lint macOS podspecs but skip any that fail library validation.
188+
- find . -name "*.podspec" | xargs grep -l "osx" | xargs rm
189+
- ./script/tool_runner.sh podspecs
198190
### iOS tasks ###
199191
- name: build_all_plugins_ipa
200192
env:
@@ -206,7 +198,10 @@ task:
206198
- name: build-ipas+drive-examples
207199
env:
208200
PATH: $PATH:/usr/local/bin
209-
PLUGINS_TO_SKIP_XCTESTS: "integration_test"
201+
# in_app_purchase_ios is currently missing tests; see https://github.com/flutter/flutter/issues/81695
202+
# ios_platform_images is currently missing tests; see https://github.com/flutter/flutter/issues/82208
203+
# sensor hangs on CI.
204+
PLUGINS_TO_EXCLUDE_INTEGRATION_TESTS: "in_app_purchase_ios,ios_platform_images,sensors"
210205
matrix:
211206
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 4"
212207
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 4"
@@ -218,15 +213,16 @@ task:
218213
SIMCTL_CHILD_MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
219214
create_simulator_script:
220215
- xcrun simctl list
221-
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-14-3 | xargs xcrun simctl boot
216+
- xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-14-5 | xargs xcrun simctl boot
222217
build_script:
223-
- ./script/incremental_build.sh build-examples --ipa
224-
test_script:
225-
- ./script/incremental_build.sh xctest --skip $PLUGINS_TO_SKIP_XCTESTS --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=latest"
218+
- ./script/tool_runner.sh build-examples --ipa
219+
xctest_script:
220+
- ./script/tool_runner.sh xctest --ios-destination "platform=iOS Simulator,name=iPhone 11,OS=latest"
221+
drive_script:
226222
# `drive-examples` contains integration tests, which changes the UI of the application.
227223
# This UI change sometimes affects `xctest`.
228224
# So we run `drive-examples` after `xctest`, changing the order will result ci failure.
229-
- ./script/incremental_build.sh drive-examples --ios
225+
- ./script/tool_runner.sh drive-examples --ios --exclude $PLUGINS_TO_EXCLUDE_INTEGRATION_TESTS
230226
### macOS desktop tasks ###
231227
- name: build_all_plugins_macos
232228
env:
@@ -244,17 +240,6 @@ task:
244240
PATH: $PATH:/usr/local/bin
245241
build_script:
246242
- flutter config --enable-macos-desktop
247-
- ./script/incremental_build.sh build-examples --macos --no-ipa
248-
test_script:
249-
- ./script/incremental_build.sh drive-examples --macos
250-
251-
task:
252-
# Don't use FLUTTER_UPGRADE_TEMPLATE, Flutter tooling not needed.
253-
<< : *MACOS_TEMPLATE
254-
<< : *TOOL_SETUP_TEMPLATE
255-
matrix:
256-
- name: lint_darwin_plugins
257-
script:
258-
# TODO(jmagman): Lint macOS podspecs but skip any that fail library validation.
259-
- find . -name "*.podspec" | xargs grep -l "osx" | xargs rm
260-
- ./script/incremental_build.sh podspecs
243+
- ./script/tool_runner.sh build-examples --macos --no-ipa
244+
drive_script:
245+
- ./script/tool_runner.sh drive-examples --macos

.github/labeler.yml

-6
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
'p: device_info':
2020
- packages/device_info/**/*
2121

22-
'p: e2e':
23-
- packages/e2e/**/*
24-
2522
'p: espresso':
2623
- packages/espresso/**/*
2724

@@ -43,9 +40,6 @@
4340
'p: in_app_purchase':
4441
- packages/in_app_purchase/**/*
4542

46-
'p: integration_test':
47-
- packages/integration_test/**/*
48-
4943
'p: ios_platform_images':
5044
- packages/ios_platform_images/**/*
5145

.github/post_merge_labeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
'needs-publishing':
2-
- packages/*/**
2+
- packages/**/pubspec.yaml

0 commit comments

Comments
 (0)