Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
8a96431
Roll Flutter from 99475b1b0bee to b55bbb7bffc7 (36 revisions) (#6456)
engine-flutter-autoroll Sep 20, 2022
7992b0f
Roll Flutter from b55bbb7bffc7 to cf01ecd19e61 (29 revisions) (#6458)
engine-flutter-autoroll Sep 21, 2022
7d5ff59
[tools] Require implementation package README warning (#6459)
stuartmorgan-g Sep 22, 2022
7c6c784
[video_player] Fix invalid link in CHANGELOG on pub.dev (#6446)
AlexV525 Sep 22, 2022
0177355
[webview_flutter_android] Expose the Java InstanceManager (#6421)
bparrishMines Sep 22, 2022
ff5b28a
[quick_actions]Migrate the plugin class to Swift, and remove custom m…
hellohuanlin Sep 22, 2022
8a8e67a
[gh_actions]: Bump github/codeql-action from 2.1.22 to 2.1.24 (#6451)
dependabot[bot] Sep 23, 2022
88dc5e3
[google_sign_in] Fix issue obtaining serverAuthCode on Android and ad…
fbcouch Sep 23, 2022
446c6f7
[video_player]fix ios 16 bug where encrypted video stream is not show…
hellohuanlin Sep 23, 2022
3ba8150
[video_player]remove integration tests (#6471)
hellohuanlin Sep 23, 2022
97d48f4
Roll Flutter from cf01ecd19e61 to b31f41bd1aa6 (50 revisions) (#6475)
engine-flutter-autoroll Sep 23, 2022
376a64f
[tools] Add 'run_tests.sh' to the dev-only list (#6474)
stuartmorgan-g Sep 23, 2022
b4e53b3
Roll Flutter from b31f41bd1aa6 to 07665fba77bc (22 revisions) (#6479)
engine-flutter-autoroll Sep 24, 2022
45d6e0d
Roll Flutter from 07665fba77bc to 64f84f6a47d2 (4 revisions) (#6480)
engine-flutter-autoroll Sep 25, 2022
fe3b542
[camera] Add CameraSelector class to CameraX plugin (#6348)
camsim99 Sep 26, 2022
de55e76
Roll Flutter from 64f84f6a47d2 to 7b6074fbc542 (7 revisions) (#6496)
engine-flutter-autoroll Sep 26, 2022
4b2a636
[file_selector] Annotate all creation of XTypeGroup with // ignore: p…
eugerossetto Sep 26, 2022
8ef3001
Enable depend_on_referenced_packages lint (#6498)
stuartmorgan-g Sep 26, 2022
0825da1
[gh_actions]: Bump github/codeql-action from 2.1.24 to 2.1.25 (#6491)
dependabot[bot] Sep 27, 2022
9c9185c
Roll Flutter from 7b6074fbc542 to f57c2fe8ff49 (23 revisions) (#6502)
engine-flutter-autoroll Sep 27, 2022
d4c6913
[in_app_pur]: Bump json from 20180813 to 20220924 in /packages/in_app…
dependabot[bot] Sep 27, 2022
6c84f5d
[file_selector] Annotate all parameters of XTypeGroup with // ignore:…
eugerossetto Sep 27, 2022
709e7d4
[sign_in]: Bump play-services-auth from 20.0.1 to 20.3.0 in /packages…
dependabot[bot] Sep 27, 2022
d5a4157
[ci] Update Dockerfile (#6477)
stuartmorgan-g Sep 27, 2022
b3018c8
Update deprecated analysis options (#6505)
stuartmorgan-g Sep 27, 2022
2592df9
[tool] Clean up "plugin" references (#6503)
stuartmorgan-g Sep 27, 2022
1c47c3b
[camera] Add ProcessCameraProvider class to CameraX plugin (#6469)
camsim99 Sep 27, 2022
f75cfb4
Revert "[camera] Add ProcessCameraProvider class to CameraX plugin (#…
stuartmorgan-g Sep 28, 2022
ded5528
Enable `prefer_relative_imports` (#6501)
stuartmorgan-g Sep 28, 2022
7aa678e
Roll Flutter from f57c2fe8ff49 to 9bf849184d6c (29 revisions) (#6510)
engine-flutter-autoroll Sep 28, 2022
9428081
Enable `no_leading_underscores_for_local_identifiers` (#6509)
stuartmorgan-g Sep 28, 2022
ab5e9e6
[file_selector] Add all iOS files to example app (#6513)
stuartmorgan-g Sep 28, 2022
5bb5129
[tool] Adds a `fix` command (#6512)
stuartmorgan-g Sep 28, 2022
d73b921
Roll Flutter from 9bf849184d6c to a11bef968893 (37 revisions) (#6515)
engine-flutter-autoroll Sep 29, 2022
f46fe07
Roll Flutter (stable) from e3c29ec00c9c to 18a827f3933c (4 revisions)…
engine-flutter-autoroll Sep 29, 2022
c279260
[google_maps]: Bump play-services-maps from 18.0.2 to 18.1.0 in /pack…
dependabot[bot] Sep 29, 2022
b82bb69
[camera] Re-land Add ProcessCameraProvider class to CameraX Plugin (#…
camsim99 Sep 29, 2022
35b9755
[image_picker_windows] Annotate XTypeGroup constructor with // ignore…
eugerossetto Sep 30, 2022
e8f19ed
[tool] Only run postsubmit on changed packages (#6516)
stuartmorgan-g Sep 30, 2022
dc5f185
Roll Flutter from a11bef968893 to 99fb2d36e807 (20 revisions) (#6520)
engine-flutter-autoroll Sep 30, 2022
b7bb9db
[tool] Improve changed-package run mode logging (#6521)
stuartmorgan-g Sep 30, 2022
28c9c0d
[file_selector] Convert XTypeGroup to const (#6476)
eugerossetto Oct 1, 2022
a295dc1
Roll Flutter from 99fb2d36e807 to a4b246f2a88c (28 revisions) (#6530)
engine-flutter-autoroll Oct 3, 2022
25e10b2
[video_player] Fixes a bug where the aspect ratio of some HLS videos …
hellohuanlin Oct 3, 2022
911dcc7
Roll Flutter from a4b246f2a88c to 55d67cc7d992 (20 revisions) (#6534)
engine-flutter-autoroll Oct 4, 2022
221548f
[quick_actions]Migrate the XCUITests to Swift (#6425)
hellohuanlin Oct 4, 2022
3a928b8
[webview]: Bump annotation from 1.4.0 to 1.5.0 in /packages/webview_f…
dependabot[bot] Oct 4, 2022
fb5c86c
[image_picker] add requestFullMetadata for iOS (optional permissions)…
PiotrMitkowski Oct 5, 2022
45962d1
Roll Flutter from 55d67cc7d992 to d554fcb36a6e (23 revisions) (#6536)
engine-flutter-autoroll Oct 5, 2022
54e748c
Roll Flutter (stable) from 18a827f3933c to eb6d86ee27de (2 revisions)…
engine-flutter-autoroll Oct 5, 2022
5f20bf1
[file_selector] Use const instead of final for XTypeGroup. (#6542)
eugerossetto Oct 6, 2022
3cd4360
Roll Flutter from d554fcb36a6e to be86a916548a (22 revisions) (#6548)
engine-flutter-autoroll Oct 6, 2022
d4db207
[image_picker_windows] Use const instead of final for XTypeGroup. (#6…
eugerossetto Oct 6, 2022
51c8081
Roll Flutter from be86a916548a to eec8d9d9cc29 (28 revisions) (#6551)
engine-flutter-autoroll Oct 7, 2022
028e749
[tool] Fix version mistake in CHANGELOG (#6552)
stuartmorgan-g Oct 7, 2022
cfbdcd0
Roll Flutter from eec8d9d9cc29 to 23f22cb8535c (22 revisions) (#6554)
engine-flutter-autoroll Oct 8, 2022
1cf02a8
[gh_actions]: Bump github/codeql-action from 2.1.25 to 2.1.27 (#6559)
dependabot[bot] Oct 10, 2022
61b6fee
[gh_actions]: Bump actions/checkout from 3.0.2 to 3.1.0 (#6561)
dependabot[bot] Oct 10, 2022
f64d53c
[gh_actions]: Bump ossf/scorecard-action from 2.0.3 to 2.0.4 (#6560)
dependabot[bot] Oct 10, 2022
88aa7b1
[gh_actions]: Bump actions/labeler from 4.0.1 to 4.0.2 (#6558)
dependabot[bot] Oct 10, 2022
5239062
Roll Flutter from 23f22cb8535c to 89d9880f46e0 (3 revisions) (#6556)
engine-flutter-autoroll Oct 10, 2022
b175843
[various] Add some more Java lint ignores (#6562)
stuartmorgan-g Oct 11, 2022
5a57257
Roll Flutter from 89d9880f46e0 to 4fed6aaeff8f (23 revisions) (#6564)
engine-flutter-autoroll Oct 11, 2022
5f0a5f2
Roll Flutter from 4fed6aaeff8f to 91d88336ddcf (13 revisions) (#6567)
engine-flutter-autoroll Oct 12, 2022
c407d92
Roll Flutter from 91d88336ddcf to c738c8aa9616 (8 revisions) (#6571)
engine-flutter-autoroll Oct 13, 2022
ef8a9ff
[quick_actions] Update dependency versions (#6563)
stuartmorgan-g Oct 13, 2022
b033ac7
Roll Flutter from c738c8aa9616 to 08e1729204f3 (8 revisions) (#6574)
engine-flutter-autoroll Oct 14, 2022
3d44753
[shared_preferences] fix typo (#6570)
HosamHasanRamadan Oct 14, 2022
b745257
Roll Flutter from 08e1729204f3 to a707d05e9d4c (6 revisions) (#6577)
engine-flutter-autoroll Oct 15, 2022
5a0209d
Roll Flutter from a707d05e9d4c to f26dd3730df8 (10 revisions) (#6584)
engine-flutter-autoroll Oct 17, 2022
fd3ee38
[file_selector] Update file_selector_platform_interface by adding the…
juandausa Oct 18, 2022
e6184f9
Roll Flutter from f26dd3730df8 to eea60f86f1b1 (19 revisions) (#6588)
engine-flutter-autoroll Oct 18, 2022
79894bc
Roll Flutter from eea60f86f1b1 to abfaec68114b (10 revisions) (#6590)
engine-flutter-autoroll Oct 19, 2022
aeab040
[ci] Cirrus pre-alignment with flutter/packages, part 1 (#6569)
stuartmorgan-g Oct 19, 2022
6b61dd2
Roll Flutter (stable) from eb6d86ee27de to d9111f640213 (4 revisions)…
engine-flutter-autoroll Oct 20, 2022
a577c00
Roll Flutter from abfaec68114b to 637e5bce662f (13 revisions) (#6593)
engine-flutter-autoroll Oct 20, 2022
32b1f7b
[ci] Update web mocks. (#6591)
ditman Oct 20, 2022
09a4a09
[camera] Remove usage of `_ambiguate` method in example (#6555)
nilsreichardt Oct 20, 2022
3a03925
[tool] Get dependencies in package examples before publish check. (#6…
ditman Oct 20, 2022
7a7480a
[in_app_purchase] Bumps `in_app_purchase_android` minimum version to …
bparrishMines Oct 21, 2022
f55c7ff
Roll Flutter from 637e5bce662f to 59d26c481acc (17 revisions) (#6599)
engine-flutter-autoroll Oct 21, 2022
84f5ec6
[in_app_purchase][iOS] fix iOS promotional offers (SKPaymentDiscountW…
crystalstorm Oct 24, 2022
cb76ba5
[local_auth] Fix device credential only check for API < 30 (#6522)
camsim99 Oct 24, 2022
fed9104
[in_app_purchase_storekit] Fixup iOS integration test placeholder and…
IVLIVS-III Oct 25, 2022
6c025ff
[camera]: Bump annotation from 1.1.0 to 1.5.0 in /packages/camera/cam…
dependabot[bot] Oct 25, 2022
e997501
[camera_platform_interface][flutter roll] Fix hashCode tests and manu…
bparrishMines Oct 25, 2022
44978fe
[in_app_pur]: Bump gradle from 4.1.0 to 7.3.1 in /packages/in_app_pur…
dependabot[bot] Oct 25, 2022
e17f931
[url_launcher]: Bump gradle from 3.4.2 to 4.2.0 in /packages/url_laun…
dependabot[bot] Oct 25, 2022
42f55ed
[various] Update Gradle in examples (#6614)
stuartmorgan-g Oct 25, 2022
f5d2d30
[espresso]: Bump gradle from 3.5.0 to 7.3.1 in /packages/espresso/and…
dependabot[bot] Oct 25, 2022
5d4c57a
Roll Flutter from 29397c2c7dbb to 0fe29f585791 (30 revisions) (#6621)
engine-flutter-autoroll Oct 25, 2022
8e8726a
[google_maps]: Bump gradle from 3.5.4 to 7.3.1 in /packages/google_ma…
dependabot[bot] Oct 25, 2022
cd8bb0a
Fix strict language checks (#6622)
kevmoo Oct 26, 2022
1459767
[various] Remove unused Gradle files (#6623)
stuartmorgan-g Oct 26, 2022
98bced0
Roll Flutter from 0fe29f585791 to 8b36497946f6 (28 revisions) (#6624)
engine-flutter-autoroll Oct 26, 2022
db127f0
Roll Flutter (stable) from d9111f640213 to 6928314d505d (1 revision) …
engine-flutter-autoroll Oct 26, 2022
91122ec
Update Gradle and AGP in examples to 7.0 (#6625)
stuartmorgan-g Oct 26, 2022
655599b
[file_selector] Include the missing GetDirectoryPath method example a…
VanesaOshiro Oct 26, 2022
efef3ab
[gh_actions]: Bump actions/upload-artifact from 3.1.0 to 3.1.1 (#6608)
dependabot[bot] Oct 27, 2022
27dcab1
[in_app_pur]: Bump json from 20220320 to 20220924 in /packages/in_app…
dependabot[bot] Oct 27, 2022
204724a
[in_app_pur]: Bump json from 20180813 to 20220924 in /packages/in_app…
dependabot[bot] Oct 27, 2022
2eb9a1b
[gh_actions]: Bump lewagon/wait-on-check-action from 1.1.2 to 1.2.0 (…
dependabot[bot] Oct 28, 2022
6f91122
[tool] Update tool to set macOS deployment target to 10.15. (#6605)
IVLIVS-III Oct 28, 2022
def5457
[url_launcher]: Bump annotation from 1.0.0 to 1.5.0 in /packages/url_…
dependabot[bot] Oct 28, 2022
91d7fe5
[quick_actions_android] Manual roll to ignore failing `appShortcutLau…
bparrishMines Oct 28, 2022
be3e328
[path_provider]: Bump gradle from 3.3.0 to 7.3.1 in /packages/path_pr…
dependabot[bot] Oct 31, 2022
f6f6481
[tool] Rename all-plugins-app command (#6600)
stuartmorgan-g Oct 31, 2022
9e0e966
[local_auth]: Bump fragment from 1.5.2 to 1.5.4 in /packages/local_au…
dependabot[bot] Oct 31, 2022
054b890
[camera]: Bump camerax_version from 1.2.0-beta02 to 1.2.0-rc01 in /pa…
dependabot[bot] Oct 31, 2022
4cbb771
Roll Flutter from ea0ddc94ccc6 to 8f0c35d4869e (17 revisions) (#6639)
engine-flutter-autoroll Oct 31, 2022
f68f83b
[camera] Interface method to allow concurrent recording and streaming…
adam-harwood Nov 1, 2022
5c11747
Roll Flutter from 8f0c35d4869e to 0e98194681fd (30 revisions) (#6648)
engine-flutter-autoroll Nov 1, 2022
f8122dc
[ci]Temporarily disable starqlteue on firebase device lab (#6657)
Nov 2, 2022
0079601
Merge branch 'main' of github.com:flutter/plugins into pull_main
bparrishMines Nov 2, 2022
8e25525
empty push to start tests
bparrishMines Nov 2, 2022
c776b21
change example deps to path
bparrishMines Nov 3, 2022
4deb1fe
webview_flutter missing dev dependency
bparrishMines Nov 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 14 additions & 21 deletions .ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,47 +1,40 @@
# The Flutter version is not important here, since the CI scripts update Flutter
# before running. What matters is that the base image is pinned to minimize
# unintended changes when modifying this file.
FROM cirrusci/flutter@sha256:505fe8bce2896c75b4df9ccf500b1604155bf932af7465ffcc66fcae8612f82f
# This is the hash for the 3.0.0 image.
FROM cirrusci/flutter@sha256:0224587bba33241cf908184283ec2b544f1b672d87043ead1c00521c368cf844

RUN apt-get update -y

# Set up Firebase Test Lab requirements.
RUN apt-get install -y --no-install-recommends gnupg

# Add repo for gcloud sdk and install it
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | \
sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list

RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \
sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -

RUN apt-get update && apt-get install -y google-cloud-sdk && \
gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true

RUN yes | sdkmanager \
"platforms;android-27" \
"build-tools;27.0.3" \
"extras;google;m2repository" \
"extras;android;m2repository"

RUN yes | sdkmanager --licenses

# Install formatter.
# Install formatter for C-based languages.
RUN apt-get install -y clang-format

# Install xvfb to allow running headless
RUN apt-get install -y xvfb libegl1-mesa
# Install Linux desktop build tool requirements.
# Install Linux desktop requirements:
# - build tools.
RUN apt-get install -y clang cmake ninja-build file pkg-config
# Install necessary libraries.
# - libraries.
RUN apt-get install -y libgtk-3-dev libblkid-dev liblzma-dev libgcrypt20-dev
# - xvfb to allow running headless.
RUN apt-get install -y xvfb libegl1-mesa

# Add repo for Google Chrome and install it
# Install Chrome and make it the default browser, for url_launcher tests.
# IMPORTANT: Web tests should use a pinned version of Chromium, not this, since
# this isn't pinned, so any time the docker image is re-created the version of
# Chrome may change.
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
RUN echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
RUN apt-get update && apt-get install -y --no-install-recommends google-chrome-stable

# Make Chrome the default so http: and file: has a handler for url_launcher tests.
# Make Chrome the default for http:, https: and file:.
RUN apt-get install -y xdg-utils
RUN xdg-settings set default-web-browser google-chrome.desktop
RUN xdg-mime default google-chrome.desktop inode/directory
2 changes: 1 addition & 1 deletion .ci/flutter_master.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
99475b1b0bee6ab09d0282b255c6b8c7e01ca4fe
0e98194681fdd83ee1c0a90b8b5b176df121bf1e
2 changes: 1 addition & 1 deletion .ci/flutter_stable.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e3c29ec00c9c825c891d75054c63fcc46454dca1
6928314d505d2bb4777be05e45d7808a5aa91d2a
2 changes: 1 addition & 1 deletion .ci/scripts/build_all_plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

cd all_plugins
cd all_packages
flutter build windows --debug
flutter build windows --release
2 changes: 1 addition & 1 deletion .ci/scripts/create_all_plugins_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

dart ./script/tool/bin/flutter_plugin_tools.dart all-plugins-app \
dart ./script/tool/bin/flutter_plugin_tools.dart create-all-packages-app \
--output-dir=. --exclude script/configs/exclude_all_plugins_app.yaml
Empty file modified .ci/scripts/prepare_tool.sh
100644 → 100755
Empty file.
147 changes: 65 additions & 82 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,26 @@ gcp_credentials: ENCRYPTED[!f1177d1ddb5330ffaa9ea11c9c9e8e0c542185e895c36071f18c
only_if: $CIRRUS_TAG == '' && ($CIRRUS_PR != '' || $CIRRUS_BRANCH == 'main')
env:
CHANNEL: "master" # Default to master when not explicitly set by a task.
PLUGIN_TOOL: "./script/tool/bin/flutter_plugin_tools.dart"
PLUGIN_TOOL_COMMAND: "dart ./script/tool/bin/flutter_plugin_tools.dart"

tool_setup_template: &TOOL_SETUP_TEMPLATE
tool_setup_script:
- git fetch origin main # To set FETCH_HEAD for "git merge-base" to work
- cd script/tool
- dart pub get
- .ci/scripts/prepare_tool.sh

macos_template: &MACOS_TEMPLATE
# Only one macOS task can run in parallel without credits, so use them for
# PRs on macOS.
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'

macos_intel_template: &MACOS_INTEL_TEMPLATE
<< : *MACOS_TEMPLATE
osx_instance:
image: big-sur-xcode-13

macos_arm_template: &MACOS_ARM_TEMPLATE
<< : *MACOS_TEMPLATE
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:14

flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE
upgrade_flutter_script:
Expand Down Expand Up @@ -39,33 +52,18 @@ flutter_upgrade_template: &FLUTTER_UPGRADE_TEMPLATE

build_all_plugins_app_template: &BUILD_ALL_PLUGINS_APP_TEMPLATE
create_all_plugins_app_script:
- dart $PLUGIN_TOOL all-plugins-app --output-dir=. --exclude script/configs/exclude_all_plugins_app.yaml
- $PLUGIN_TOOL_COMMAND create-all-packages-app --output-dir=. --exclude script/configs/exclude_all_plugins_app.yaml
build_all_plugins_debug_script:
- cd all_plugins
- cd all_packages
- if [[ "$BUILD_ALL_ARGS" == "web" ]]; then
- echo "Skipping; web does not support debug builds"
- else
- flutter build $BUILD_ALL_ARGS --debug
- fi
build_all_plugins_release_script:
- cd all_plugins
- cd all_packages
- flutter build $BUILD_ALL_ARGS --release

macos_template: &MACOS_TEMPLATE
# Only one macOS task can run in parallel without credits, so use them for
# PRs on macOS.
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'

macos_intel_template: &MACOS_INTEL_TEMPLATE
<< : *MACOS_TEMPLATE
osx_instance:
image: big-sur-xcode-13

macos_arm_template: &MACOS_ARM_TEMPLATE
<< : *MACOS_TEMPLATE
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:14

# Light-workload Linux tasks.
# These use default machines, with fewer CPUs, to reduce pressure on the
# concurrency limits.
Expand All @@ -84,22 +82,13 @@ task:
script:
- cd script/tool
- dart pub run test
- name: publishable
version_check_script:
# For pre-submit, pass the PR labels to the script to allow for version
# check overrides.
# For post-submit, ignore platform version breaking version changes and
# missing version/CHANGELOG detection since the labels aren't
# available outside of the context of the PR.
- if [[ $CIRRUS_PR == "" ]]; then
- ./script/tool_runner.sh version-check --ignore-platform-interface-breaks
- else
- ./script/tool_runner.sh version-check --check-for-missing-changes --pr-labels="$CIRRUS_PR_LABELS"
- fi
publish_check_script: ./script/tool_runner.sh publish-check
- name: format
# Repository rules and best-practice enforcement.
# Only channel-agnostic tests should go here since it is only run once
# (on Flutter master).
- name: repo_checks
always:
format_script: ./script/tool_runner.sh format --fail-on-change
license_script: $PLUGIN_TOOL_COMMAND license-check
pubspec_script: ./script/tool_runner.sh pubspec-check
readme_script:
- ./script/tool_runner.sh readme-check
Expand All @@ -108,19 +97,33 @@ task:
# has been fixed, this can be removed and there can just be a single
# run with --require-excerpts and no exclusions.
- ./script/tool_runner.sh readme-check --require-excerpts --exclude=script/configs/temp_exclude_excerpt.yaml
license_script: dart $PLUGIN_TOOL license-check
dependabot_script: dart $PLUGIN_TOOL dependabot-check
- name: federated_safety
# This check is only meaningful for PRs, as it validates changes
# rather than state.
only_if: $CIRRUS_PR != ""
script: ./script/tool_runner.sh federation-safety-check
dependabot_script: $PLUGIN_TOOL_COMMAND dependabot-check
version_script:
# For pre-submit, pass the PR labels to the script to allow for
# check overrides.
# For post-submit, ignore platform version breaking version changes
# and missing version/CHANGELOG detection since the labels aren't
# available outside of the context of the PR.
- if [[ $CIRRUS_PR == "" ]]; then
- ./script/tool_runner.sh version-check --ignore-platform-interface-breaks
- else
- ./script/tool_runner.sh version-check --check-for-missing-changes --pr-labels="$CIRRUS_PR_LABELS"
- fi
publishable_script: ./script/tool_runner.sh publish-check --allow-pre-release
federated_safety_script:
# This check is only meaningful for PRs, as it validates changes
# rather than state.
- if [[ $CIRRUS_PR == "" ]]; then
- ./script/tool_runner.sh federation-safety-check
- else
- echo "Only run in presubmit"
- fi
- name: dart_unit_tests
env:
matrix:
CHANNEL: "master"
CHANNEL: "stable"
test_script:
unit_test_script:
- ./script/tool_runner.sh test
- name: analyze
env:
Expand All @@ -142,39 +145,42 @@ task:
# This uses --run-on-dirty-packages rather than --packages-for-branch
# since only the packages changed by 'make-deps-path-based' need to be
# checked.
- dart $PLUGIN_TOOL analyze --run-on-dirty-packages --log-timing --custom-analysis=script/configs/custom_analysis.yaml
- $PLUGIN_TOOL_COMMAND analyze --run-on-dirty-packages --log-timing --custom-analysis=script/configs/custom_analysis.yaml
# Restore the tree to a clean state, to avoid accidental issues if
# other script steps are added to this task.
- git checkout .
# Does a sanity check that plugins at least pass analysis on the N-1 and N-2
# versions of Flutter stable if the plugin claims to support that version.
# Does a sanity check that packages at least pass analysis on the N-1 and N-2
# versions of Flutter stable if the package claims to support that version.
# This is to minimize accidentally making changes that break old versions
# (which we don't commit to supporting, but don't want to actively break)
# without updating the constraints.
# Note: The versions below should be manually updated after a new stable
# version comes out.
- name: legacy-version-analyze
- name: legacy_version_analyze
depends_on: analyze
env:
matrix:
matrix:
env:
CHANNEL: "3.0.5"
DART_VERSION: "2.17.6"
env:
CHANNEL: "2.10.5"
DART_VERSION: "2.16.2"
package_prep_script:
# Allow analyzing plugins that use a Pigeon version with a higher
# minimum Flutter/Dart version than the plugin itself.
# Allow analyzing packages that use a dev dependency with a higher
# minimum Flutter/Dart version than the package itself.
- ./script/tool_runner.sh remove-dev-dependencies
analyze_script:
# Only analyze lib/; non-client code doesn't need to work on
# all supported legacy version.
- ./script/tool_runner.sh analyze --lib-only --skip-if-not-supporting-flutter-version="$CHANNEL" --custom-analysis=script/configs/custom_analysis.yaml
# Does a sanity check that plugins pass analysis with the lowest possible
- ./script/tool_runner.sh analyze --lib-only --skip-if-not-supporting-flutter-version="$CHANNEL" --skip-if-not-supporting-dart-version="$DART_VERSION" --custom-analysis=script/configs/custom_analysis.yaml
# Does a sanity check that packages pass analysis with the lowest possible
# versions of all dependencies. This is to catch cases where we add use of
# new APIs but forget to update minimum versions of dependencies to when
# new APIs but forget to update minimum versions of dependencies to where
# those APIs are introduced.
- name: downgraded_analyze
depends_on: analyze
analyze_script:
- ./script/tool_runner.sh analyze --downgrade
- ./script/tool_runner.sh analyze --downgrade --custom-analysis=script/configs/custom_analysis.yaml
- name: readme_excerpts
env:
CIRRUS_CLONE_SUBMODULES: true
Expand All @@ -194,8 +200,6 @@ task:
matrix:
CHANNEL: "master"
CHANNEL: "stable"
setup_script:
- flutter config --enable-linux-desktop
<< : *BUILD_ALL_PLUGINS_APP_TEMPLATE
- name: linux-platform_tests
# Don't run full platform tests on both channels in pre-submit.
Expand All @@ -205,7 +209,6 @@ task:
CHANNEL: "master"
CHANNEL: "stable"
build_script:
- flutter config --enable-linux-desktop
- ./script/tool_runner.sh build-examples --linux
native_test_script:
- xvfb-run ./script/tool_runner.sh native-test --linux --no-integration
Expand Down Expand Up @@ -244,38 +247,20 @@ task:
MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
GCLOUD_FIREBASE_TESTLAB_KEY: ENCRYPTED[30e6cf7189e3ff3868edc25d2e638ef2aec70546456427064bbc74b297d36145364f49f9d26b327787a59df149d69262]
build_script:
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
# might include non-ASCII characters which makes Gradle crash.
# TODO(stuartmorgan): See https://github.com/flutter/flutter/issues/24935
- export CIRRUS_CHANGE_MESSAGE=""
- export CIRRUS_COMMIT_MESSAGE=""
- ./script/tool_runner.sh build-examples --apk
lint_script:
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
# might include non-ASCII characters which makes Gradle crash.
# TODO(stuartmorgan): See https://github.com/flutter/flutter/issues/24935
- export CIRRUS_CHANGE_MESSAGE=""
- export CIRRUS_COMMIT_MESSAGE=""
- ./script/tool_runner.sh lint-android # must come after build-examples
native_unit_test_script:
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
# might include non-ASCII characters which makes Gradle crash.
# TODO(stuartmorgan): See https://github.com/flutter/flutter/issues/24935
- export CIRRUS_CHANGE_MESSAGE=""
- export CIRRUS_COMMIT_MESSAGE=""
# Native integration tests are handled by firebase-test-lab below, so
# only run unit tests.
# Must come after build-examples.
- ./script/tool_runner.sh native-test --android --no-integration --exclude script/configs/exclude_native_unit_android.yaml
firebase_test_lab_script:
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
# might include non-ASCII characters which makes Gradle crash.
# TODO(stuartmorgan): See https://github.com/flutter/flutter/issues/24935
- export CIRRUS_CHANGE_MESSAGE=""
- export CIRRUS_COMMIT_MESSAGE=""
- if [[ -n "$GCLOUD_FIREBASE_TESTLAB_KEY" ]]; then
- echo $GCLOUD_FIREBASE_TESTLAB_KEY > ${HOME}/gcloud-service-key.json
- ./script/tool_runner.sh firebase-test-lab --device model=redfin,version=30 --device model=starqlteue,version=26 --exclude=script/configs/exclude_integration_android.yaml
# (TODO)cyanglaz: add --device model=starqlteue,version=26 back when the device issue is fixed in FTL.
# https://github.com/flutter/flutter/issues/114535
- ./script/tool_runner.sh firebase-test-lab --device model=redfin,version=30 --exclude=script/configs/exclude_integration_android.yaml
- else
- echo "This user does not have permission to run Firebase Test Lab tests."
- fi
Expand Down Expand Up @@ -339,7 +324,6 @@ task:
CHANNEL: "stable"
PATH: $PATH:/usr/local/bin
build_script:
- flutter config --enable-macos-desktop
- ./script/tool_runner.sh build-examples --macos
xcode_analyze_script:
- ./script/tool_runner.sh xcode-analyze --macos
Expand Down Expand Up @@ -408,5 +392,4 @@ task:
CHANNEL: "master"
CHANNEL: "stable"
setup_script:
- flutter config --enable-macos-desktop
<< : *BUILD_ALL_PLUGINS_APP_TEMPLATE
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@e54e5b338fbd6e6cdb5d60f51c22335fc57c401e
- uses: actions/labeler@5c7539237e04b714afd8ad9b4aed733815b9fab4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
cd $GITHUB_WORKSPACE
# Checks out a copy of the repo.
- name: Check out code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
with:
fetch-depth: 0 # Fetch all history so the tool can get all the tags to determine version.
- name: Set up tools
Expand All @@ -36,7 +36,7 @@ jobs:

# This workflow should be the last to run. So wait for all the other tests to succeed.
- name: Wait on all tests
uses: lewagon/wait-on-check-action@e2558238c09778af25867eb5de5a3ce4bbae3dcd
uses: lewagon/wait-on-check-action@3a563271c3f8d1611ed7352809303617ee7e54ac
with:
ref: ${{ github.sha }}
running-workflow-name: 'release'
Expand All @@ -50,5 +50,5 @@ jobs:
run: |
git config --global user.name ${{ secrets.USER_NAME }}
git config --global user.email ${{ secrets.USER_EMAIL }}
dart ./script/tool/lib/src/main.dart publish-plugin --all-changed --base-sha=HEAD~ --skip-confirmation --remote=origin
dart ./script/tool/lib/src/main.dart publish --all-changed --base-sha=HEAD~ --skip-confirmation --remote=origin
env: {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}
Loading