204 Commits

Author SHA1 Message Date
1725b0721d [script] fix script noop interpolated toString()s (#6175) 2022-08-03 22:16:04 +00:00
1fbf2f6219 [camera_windows] Improve several error handling scenarios (#6149) 2022-07-28 23:16:05 +00:00
b83209e3e5 [tool] Switch PR description overrides over to labels (#6145) 2022-07-27 17:59:04 +00:00
f2d9f51dd1 [path_provider] Restore 2.8 compatibility on Android and iOS (#6039)
Adds a new repo tooling command that removes dev_dependencies, which
aren't needed to consume a package, only for development. Also adds
a --lib-only flag to analyze to analyze only the client-facing code.
This is intended for use in the legacy analyze CI steps, primarily to
solve the problem that currently plugins that use Pigeon can't support a
version of Flutter older than the version supported by Pigeon, because
otherwise the legacy analysis CI steps fail.

Adds this new command to the legacy analysis CI step, and restores
the recently-removed 2.8/2.10 compatibility to path_provider.
2022-07-27 13:13:05 -04:00
c8e2e07857 [tool] Include dev_dependencies in make-deps-path-based (#6146) 2022-07-26 00:18:03 +00:00
f972cb1500 [tool] Handle dependabot commit messages (#6127) 2022-07-21 00:15:06 +00:00
223a080ad6 [tool] Bypass version/changelog checks for some PRs (#6124) 2022-07-20 20:15:04 +00:00
b74ce39eb1 [tools] Allow pre-release versions (#6061) 2022-07-01 11:54:04 -07:00
b232558eb8 [tools] Allow skipping packages by Dart version (#6038) 2022-06-30 16:34:08 -07:00
840feda14f [ci] Ensure complete dependabot coverage (#5976) 2022-06-22 11:29:12 -07:00
79eb10169a [tools] Check integration tests for test (#5936) 2022-06-08 14:53:09 -07:00
66824fd7e6 [various] Clean up obsolete references to "master" (#5912) 2022-06-06 12:23:10 -07:00
7877a8beb0 [google_maps_flutter] Updates platform interface to new analysis options (#5793) 2022-05-23 11:08:08 -07:00
dd2fc61b1c [tools] Add update-release-info (#5643) 2022-05-18 16:17:29 -07:00
ca9a81d653 [ci/tools] Add iOS/macOS analysis to catch deprecated code (#5778) 2022-05-18 08:47:12 -07:00
517d3761f2 [tools] Validate example READMEs (#5775) 2022-05-17 17:32:10 -07:00
5f2b2300ef [tools] Fix publish flag calculation (#5694) 2022-05-13 17:34:12 -07:00
e8b4147fcc Re-sync analysis_options.yaml with flutter/flutter (#5695)
The analysis options have gotten behind; this re-syncs to the current state of flutter/flutter. For options that are non-trivial to enable, either because they are non-trivial to fix, or touch a very large number of files, they are locally disabled with clear "LOCAL CHANGE" markers so that it's obvious where we are out of sync. For options that are simple to resolve, they are enabled in the PR.

Part of https://github.com/flutter/flutter/issues/76229
2022-05-11 11:48:47 -04:00
9544f04a50 Re-land: Enable lints library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors (#5692)
Re-lands https://github.com/flutter/plugins/pull/5428

This is a revert of flutter/plugins#5691 (the revert of the above) with the following changes:
- Excludes the repo tooling changes that had to be added to the revert, since we want those
- Fixes local_auth:
    - Updates code for the new analysis failure
    - Fixes the bad version merge that dropped the version change
- Reverts a version change in `file_selector_platform_interface`, which didn't otherwise change
2022-05-10 14:43:28 -04:00
1a124b18d3 Revert "Enable lints library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors" (#5691)
This reverts commit 5d92a4717a7a266f485974ff5403122ef2570935.

This includes a fix for a latent bug in the version-check repo tooling command that caused it to fail when reverting a package that previously had a NEXT section, so that tests will pass.
2022-05-10 13:05:18 -04:00
5d92a4717a Enable lints library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors (#5428) 2022-05-09 11:54:11 -07:00
5ec6644f3f [tools] Convert test utils to RepositoryPackage (#5605) 2022-05-03 14:14:11 -07:00
5a06b47e51 [tools] Remove single-example RepositoryPackage method (#5600) 2022-05-03 10:59:11 -07:00
1186d6831f [flutter_plugin_tools] Include examples in test (#5453) 2022-05-02 21:44:10 -07:00
fbf53f284b [flutter_plugin_tools] Support non-plugin packages for drive-examples (#5468) 2022-05-02 14:44:12 -07:00
d43fae6fb4 [flutter_plugin_tools] Validate code blocks in readme-check (#5436) 2022-04-28 19:29:09 -07:00
6770bf9245 [flutter_plugin_tools] Remove UWP (#5432) 2022-04-28 10:19:12 -07:00
4cecb9b264 [flutter_plugin_tools] Adds update-excerpts command (#5339) 2022-04-28 09:34:11 -07:00
88829b67ac [flutter_plugin_tool] Allow re-pathifying dependencies (#5376) 2022-04-26 13:39:09 -07:00
0d2567922b [various] Replaces manual hashing with Object.hash (#5314) 2022-04-21 14:29:09 -07:00
cc32f688bb [flutter_plugin_tools] Run pub get for custom-test (#5322)
When running a Dart test script for `custom-test`, `pub get` needs to be
run first in order for it to work in a clean environment such as CI.

This will unblock enabling Pigeon's Dart tests in flutter/packages.
2022-04-21 13:08:21 -07:00
57e6a62dc8 [flutter_plugin_tools] Preserve Dart SDK version in all-plugins-app (#5281)
Fixes `all-plugins-app` to preserve the original application's Dart SDK
version to avoid changing language feature opt-ins that the template may
rely on.
2022-04-15 11:01:46 -07:00
b0567c3fcc Add supported OS version tables to READMEs (#5106) 2022-04-04 12:26:13 -07:00
b532e1233b [tool] Fix typo in publish-plugin readme (#5107) 2022-03-24 15:35:09 -07:00
f0c3b6baee [flutter_plugin_tool] Add custom-test command (#5058) 2022-03-18 08:10:25 -07:00
2e5c3fbcb1 [flutter_plugin_tools] packages get -> pub get (#5046) 2022-03-15 14:15:07 -07:00
1bbfb60816 [flutter_plugin_tools] Fix subpackage analysis (#5027) 2022-03-11 12:15:26 -08:00
159f6d87b7 [ci] Run analysis with older versions of Flutter (#5000) 2022-03-09 08:35:23 -08:00
199afd96f1 [flutter_plugin_tool] Fix iOS/macOS naming (#4861) 2022-02-15 17:20:24 -08:00
fdba05bf57 [flutter_plugin_tool] Remove podspec --allow-warnings (#4839) 2022-02-14 12:50:12 -08:00
4aeb80aed7 [url_launcher] Support new desktop implementation versions (#4779) 2022-02-10 14:35:22 -08:00
7009234867 Enforce asterisk alignment for C++ and ObjC pointers (#4703)
So far we've been using the default mode of prevailing-in-file, which
means we aren't consistent within each language what mode we use. Now
that clang-format can identify ObjC headers (which didn't used to be the
case), we can enforce different styles for the two languages.

This sets left-aligned for C++ to match the Flutter engine, and
right-aligned for ObjC to match the prevaling Apple style.
2022-01-26 17:59:32 -05:00
0f71f1755b [webview_flutter] Remove dependency on flutter.dev and google.com (#4691) 2022-01-25 13:10:21 -08:00
257f10e19e [all] Update repo links to 'main' (#4690) 2022-01-24 20:25:15 -08:00
902c337f6f [ci] Pin Chromium version for web tests (#4620)
Switches the web tests from using the version of Chrome installed by the Dockerfile, which is whatever happened to be stable when the image is generated, and thus not hermetic, to a pinned version of Chromium. This uses a slightly modified version of the script that is already used for flutter/packages.

Since Chromium doesn't support mp4 playback, this updates the `video_player` integration tests to use WebM on web instead, to avoid having all the tests fail in CI.

Part of https://github.com/flutter/flutter/issues/84712
2022-01-05 12:53:05 -08:00
7855a20369 [flutter_plugin_tools] Auto-retry failed FTL tests (#4610)
Currently the flake situation for Firebase Test Lab tests is very bad,
and the task running those tests are some of the slowest tasks in the
CI. Re-running failed tests is slow, manual work that is signficantly
affecting productivity.

There are plans to actually address the flake in the short-to-medium
term, but in the immediate term this will improve the CI situation, as
well as reducing the drag on engineering time that could be spent on the
root causes.

Part of https://github.com/flutter/flutter/issues/95063
2021-12-15 08:22:52 -08:00
e45a509b35 [tools] fix typo in tools (#4607) 2021-12-10 16:09:20 -08:00
12afeda41e Add missing return for nullably typed function (#4598) 2021-12-10 03:18:07 -08:00
3de67cea56 [flutter_plugin_tools] Improve package targeting (#4577)
Improve package targeting:
- `--run-on-changed-packages` now includes only changed packages in a federated plugin, not all packages. Include all packages isn't useful since (without changes that would cause them to be included anyway) package dependencies are not path-based between packages.
- `--packages` now allows specifying package names of federated plugins. E.g., `--packages=path_provider_ios` will now work, instead of requiring `--packages=path_provider/path_provider_ios`. The fully qualified form still works as well (and is still needed for app-facing packages to disambiguate from the plugin group).

Fixes https://github.com/flutter/flutter/issues/94618
2021-12-07 07:02:24 -08:00
52f49c1aa2 Remove deprecated plugins (#4580)
This removes all of the deprecated plugins from the tree, as well as all references to them.

They were being left in the tree only in case they needed critical fixes before the end of this year, when they will become completely unsupported and be officially discontinued on pub.dev. The end of the year is now close enough that such a release is extremely unlikely, and they are causing some maintenance burden (e.g., the tree is currently closed on an out-of-band failure in android_alarm_manager). In the event that we do have to push an emergency fix in the next several weeks, we can either temporarily restore the plugin from git history, or use a branch.

Minor related cleanup:
- Scanning the repository for remaining references turned up that `image_picker_for_web` and `video_player_for_web` had copypasta'd the package name of its example application from one of the deprecated plugins, so this fixes those names.
- Fixes `federation-safety-check` handling of top-level files in unfederated plugins that accidentally tripped federated plugin heuristics.
- Fixes `federation-safety-check` handling of deleted plugins, as it was crashing, and tests that.
- Fixes `make-deps-path-based` handling of deleted plugins, as it was crashing, and tests that.
2021-12-06 10:23:14 -08:00