304 Commits

Author SHA1 Message Date
7781aee45b [gis_web] Improves renderButton API exports. (#3432)
[gis_web] Improves renderButton API exports.
2023-03-31 00:02:19 +00:00
c450908745 Bump minsdk version (#3581)
[all_packages] Bump minimum SDK version
2023-03-30 19:00:58 +00:00
199fc68a1a Roll mockito to 5.4.0 (#3544)
Roll mockito to 5.4.0
2023-03-30 12:12:38 +00:00
1ce89ad718 [image_picker] Adopt readme excerpts (#3507)
[image_picker] Adopt readme excerpts
2023-03-27 21:45:03 +00:00
08e76c0860 [tool] Check Java integration test configuration (#3499)
[tool] Check Java integration test configuration
2023-03-27 17:44:52 +00:00
e893fdc961 [all] Update Dart SDK max to 4.0.0 (#3509)
* Update script command

* Mass change
2023-03-21 21:48:58 -07:00
68abc6ffa4 remove temporary flag after migration (#3498)
remove temporary flag after migration
2023-03-21 21:01:09 +00:00
8955b6f131 [path_provider] Adopt readme excerpts (#3494)
[path_provider] Adopt readme excerpts
2023-03-21 11:46:36 +00:00
81156cb7ac [shared_preferences] Adopt readme excerpts (#3491)
[shared_preferences] Adopt readme excerpts
2023-03-20 17:01:33 +00:00
e4eb735b4c [Espresso] Create integration test and remove exemption (#3367)
[Espresso] Create integration test and remove exemption
2023-03-20 15:59:25 +00:00
784291b4fd Update goldens (#3442)
Update goldens
2023-03-17 07:52:27 +00:00
9b136a9ce3 [ci/tool] Add external dependency validation (#3466)
[ci/tool] Add external dependency validation
2023-03-17 03:01:18 +00:00
9a44bdfb61 Require Dart SDK 2.14, because of using APIs. (#3468) 2023-03-16 12:45:39 -07:00
79fbb7ade9 [tool] Include examples when pathifying deps (#3393)
Improves the `make-deps-path-based` command:
- When adding an override to a package, also adds it to that package's examples. This is needed for integration tests of app-facing packages of federated plugins when adding features to implementation packages, for instance.
- Switches from string-based rewrites to `yaml_edit` to make it more robust (necessary to do the above without major restructuring)
- Improves the auto-added comment since reviewers new to the repository are often confused by the overrides the first time they encounter them and think their inclusion in the PR is a mistake.

Fixes https://github.com/flutter/flutter/issues/111091
2023-03-10 15:33:47 -05:00
789e3a72c9 [various] Align Flutter and Dart SDK constraints (#3349)
As described in https://github.com/flutter/flutter/issues/121684, we currently have inconsistencies between Flutter SDK constraints and Dart SDK constraints; we have often updated only the former. This PR:
1. Adds CI enforcement via the repo tooling that the minimum versions are consistent.
2. Adds a new repo tooling command to update SDK constraints, to help mass-fix all the violations of the new enforcement in step 1 (and for future mass changes, such as when we update our test matrix and mass-drop support for versions that are no longe tested).
    - In all cases, the looser constraint was updated to match the more restrictive constraint, such that there's no actual change in what Flutter version any package actually supports.
3. Runs `dart fix --apply` over all changed packages to automatically fix all of the analysis failures caused by step 2 suddenly making all of our packages able to use `super` parameters.

Fixes https://github.com/flutter/flutter/issues/121684
Fixes https://github.com/flutter/flutter/issues/121685
2023-03-04 13:28:18 -05:00
2f21321980 [ci+various] Partially enable javac warning checks (#3293)
Since our existing `gradlew lint` check doesn't catch all warnings (notably, deprecation warnings, but also others like raw values), this:
- Configures our plugin example apps to enable `-Xlint:all -Werror` for the javac for the plugin project, so that we also get javac lint coverage in CI. This is done in the example app so that it won't affect plugin clients.
- Adds a check to `lint-android` that the example is configured this way, so that we don't forget to set it up when adding new plugins (or re-generating plugin examples from template).

Where it was trivial for me to just fix existing violations, I did so in this PR. For the rest that had violations, I commented out the enabling of the flags, with a TODO. Normally we would do this kind of thing with a `script/configs` file to opt packages out of a new check, but since this is part of an existing check rather than a whole new command, doing it that way would disable `gradlew lint` for those packages as well. Making a whole new command seemed more complex for the long term, so this seemed like the best short term option. We should try to remove as many of these opt-outs as possible ASAP.

Part of https://github.com/flutter/flutter/issues/91868
2023-03-02 14:47:25 -05:00
09544999b2 [tool] Provide a --base-branch flag (#3322)
[tool] Provide a --base-branch flag
2023-03-01 11:55:21 +00:00
7ebf1d4117 [tool] Always run publish check (#3279)
[tool] Always run publish check
2023-02-27 15:02:13 +00:00
25f0f702e5 [various] Update flutter/plugins links (#3256)
Updates links and references to `flutter/plugins` to use `flutter/packages` instead, including making the `repository` pubspec.yaml check stricter in the repo tooling to ensure all packages are pointing to the right place.

Exceptions to the updates are:
- Changelog entries.
- Links to pull requests.

This will re-publish all the moved plugins, thus fixing the current redness of `release` (due to the current versions not being tagged in this repository).
2023-02-22 13:45:11 -05:00
324a7f2f9a Exclude more tests on Windows
Excludes two other Dart unit tests that have pre-existing issues running on Windows hosts.
2023-02-21 17:22:34 -05:00
334b58ee1f Adjust test configs
- Disable web plugin implementation package Dart tests on Windows hosts;
  that config has never been supported.
- Split Linux Dart unit tests into two shards, since tehy are now quite
  long.
- Disable `flutter_migrate` Dart tests on the Windows host, for time.
- Temporarily disable a failing test on `stable`, with a TODO+issue.
2023-02-21 16:28:44 -05:00
193e454fcf Merge repository metadata
Merges in:
- test exclusion configs
- AUTHORS
- CODEOWNERS
- Dependabot configs
- autolabel configs

Merge exclusions

Merge CODEOWNERS
2023-02-21 12:27:52 -05:00
ab5a8c0ca8 [tool] Allow importing packages with NEXT (#3215)
Fixes an issue that showed up in the trial repo merge PR; if a pacakge
is new to the repository (i.e., has no git history in the parent
commit), it was being treated as a version bump, which caused failures
if NEXT was present. This adds a new state so that we can allow NEXT
during import.
2023-02-18 20:43:11 +00:00
67372cf7ec [tool] Skip non-plugin packages in FTL command (#3209)
The `firebase-test-lab` expectations were written for flutter/plugins,
where everything was supposed to have an integration test. This makes
non-plugin packages skip, not fail, if they don't have native
Android integration tests.

Fixes https://github.com/flutter/flutter/issues/120450
2023-02-15 19:43:58 +00:00
e0ff330069 Version bump 2023-02-13 12:14:04 -05:00
314b35b778 Metadata update 2023-02-13 12:04:50 -05:00
6db4a95ce8 Update invocations to run from local source 2023-02-13 12:03:18 -05:00
91d967c60d Update docs 2023-02-13 11:54:41 -05:00
7a678b0936 Merge remote-tracking branch 'plugins-tool/main' 2023-02-13 10:56:52 -05:00
3ff81f0746 [ci] Add FTL to Cirrus, and do more minor alignment with flutter/plugins (#3191)
* Add FTL, including maps key

* Misc alignment

* Formatting fix in YAML

* Exclude packages
2023-02-10 19:52:26 +00:00
34e0db2a5f [ci] More LUCI pre-alignment with flutter/plugins (#3188)
* Add placeholder exclusion files

* Add exclusion refs to LUCI, update a task name

* Adjust test plugin podspecs to avoid warnings

* Add podspec check to CI

* Add drive step for Windows

* Sync .ci.yaml

* Add placeholder yaml for repo tool test
2023-02-10 04:00:13 +00:00
d2d520f5e0 Update release tooling to give a workaround for predictable failing case https://github.com/flutter/flutter/issues/120116 (#7111) 2023-02-07 18:41:14 +00:00
0658dd94fd [local_auth]: Bump core from 1.8.0 to 1.9.0 in /packages/local_auth/local_auth_android/android (#6393)
* [local_auth]: Bump core

Bumps core from 1.8.0 to 1.9.0.

---
updated-dependencies:
- dependency-name: androidx.core:core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump compilesdkversion

* Bump fragment and update changelog

* Bump gradle version

* Bump compileSdkVersion

* Bump all plugins compilesdkversion

* Bump gradle version of example apps

* Update changelog

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: camsim99 <camillesimon90@gmail.com>
2023-02-06 19:11:08 +00:00
dc54dd7116 [tool] More main-branch detection improvement (#7067)
Follow-up to https://github.com/flutter/plugins/pull/7038 to try to make
it work on LUCI. Looking at the checkout steps of a LUCI run, it looks
like we do a full `fetch` of `origin`, but likely only have a `master`
branch locally. Rather than rely on a specific local branch name
existing, this allows for checking `origin` (and just in case, since
it's another common remote name, `upstream`).

Hopefully fixes https://github.com/flutter/flutter/issues/119330
2023-01-31 19:52:49 -05:00
c1bd41bc1a [various] Standardize the extension for Pigeon-generated Dart (#7029)
* Standardize on .g.dart

* Remove unused exclusion patterns

* Mark pigeons/ as dev-only in the tooling

* Version bumps

* Add missed files

* More new import fixes
2023-01-31 17:37:45 +00:00
07c367cfd2 [tool] Improve main-branch detection (#7038)
* [tool] Improve main-branch detection

Currently main-branch detection for `--packages-for-branch` looks at
branch names, but this no longer works on LUCI which now seems to be
checking out specific hashes rather than branches. This updates the
behavior so that it will treat any hash that is an ancestor of `main` as
being part of `main`, which should allow post-submit detection to work
under LUCI.

Fixes https://github.com/flutter/flutter/issues/119330

* Fix throw

* Fix typos

* Update comment
2023-01-30 21:32:05 +00:00
7203521989 [tool/ci] Add minimum supported SDK validation (#7028)
Adds options to `pubspec.yaml` to check that the minimum supported SDK range for Flutter/Dart is at least a given version, to add CI enforcement that we're updating all of our support claims when we update our tested versions (rather than it being something we have to remember to do), and enables it in CI.

As part of enabling it, fixes some violations:
- path_provider_foundation had been temporarily dropped back to 2.10 as part of pushing out a regression fix.
- a number of examples were missing Flutter constraints even though they used Flutter.
- the non-Flutter `plugin_platform_interface` package hadn't been update since I hadn't thought about Dart-only constraints in the past.
2023-01-26 13:28:41 -05:00
5aa3f1c5da [tool] Check for search paths in Swift plugins (#6954)
* Rename command, bump version

* Update tests to write actual podspecs

* Add new check

* Analyzer fix

* Unhdo file move
2023-01-13 20:49:26 +00:00
459e80606b [tool] Fix false positives in update-exceprts (#6950)
When determining whether or not to fail with `--fail-on-change`, only
look at .md files. In some cases, running the necessary commands (e.g.,
`flutter pub get`) may change unrelated files, causing fales positive
failures. Only changed documentation files should be flagged.

Also log the specific files that were detected as changed, to aid in
debugging any future false positives.

Fixes https://github.com/flutter/flutter/issues/111592
Fixes https://github.com/flutter/flutter/issues/111590
2023-01-13 06:12:28 -05:00
bbab349927 [tool] Replace flutter format (#6946)
`flutter format` is deprecated on `master`, and prints a warning saying
to switch to `dart format` instead. This updates `format` to make that
switch.
2023-01-11 22:11:35 +00:00
d6f71e464c == override parameters are non-nullable (#6900) 2023-01-10 07:45:00 -08:00
5dae598918 [various] Enable avoid_dynamic_calls (#6834)
* Enable the option

* Fix camera

* Fix webview

* Remove unnecessary 'call's from camera tests

* Fix maps

* Fix sign-in

* fix image_picker

* Fix IAP

* Fix shared_preferences

* Fix url_launcher_android

* Version bumps

* Fix tool

* Re-apply webview test fix

* Re-bump versions

* Fix one new tool issue
2023-01-10 14:17:39 +00:00
1a1865e10a [tool] Don't add Guava in the all-packages app (#6747)
It's not clear why we are adding an outdated version of Guava; it is
likely cruft, so this test removing it.
2023-01-09 13:02:11 -05:00
c1ec012a22 [flutter_plugin_tools] If clang-format does not run, fall back to other executables in PATH (#6853)
* If clang-format does not run, fall back to other executables in PATH

* Review edits
2022-12-16 21:05:49 +00:00
a50448ac47 [various] Enable avoid_print (#6842)
* [various] Enable avoid_print

Enables the `avoid_print` lint, and fixes violations (mostly by opting
example files out of it).

* Version bumps

* Add tooling analysis option file that was accidentally omitted

* Fix typo in analysis_options found by adding tool sub-options

* Revert most version bumps

* Fix ios_platform_images
2022-12-14 20:28:44 +00:00
3306027234 [tools] Recognize Pigeon tests in version-check (#6813)
Pigeon has an usual test structure since it generates test code to run
in a dummy plugin; add that structure to the list of recognized tests so
that changes to its platform tests won't be flagged by `version-check`.
2022-12-11 01:09:32 +00:00
d404da6e85 [ci] Improve analysis_options alignment with flutter/packages (#6728)
* Add more options that are in flutter/packages

* Fix unnecessary awaits

* More option alignment

* Add and locally supress avoid_implementing_value_types

* Fix release-info for test-only changes

* Fix update-release-info handling of 'minimal'

* Update release metadata
2022-11-21 18:49:06 +00:00
6a0c9ef00d [ci] Removes unnecessary overrides. (#6669)
* remove unnecessary overrides

* Update mock so tools_tests checks pass.

* Update CHANGELOG NEXT entries.

* Pin git to 2.0.x

Co-authored-by: David Iglesias Teixeira <ditman@gmail.com>
2022-11-04 13:31:18 +00:00
1469b765ee [tool] Rename all-plugins-app command (#6600) 2022-10-31 17:42:58 +00:00
debcfa3524 [ci] Enable the all_packages tasks (#2724) 2022-10-31 14:46:50 +00:00