Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- flutter/dev/a11y_assessments/README.md+31-1
- flutter/dev/a11y_assessments/pubspec.yaml+23-22
- flutter/dev/automated_tests/pubspec.yaml+54-53
- flutter/dev/bots/README.md+18-22
- flutter/dev/bots/analyze.dart
- flutter/dev/bots/analyze_snippet_code.dart+282-168
- flutter/dev/bots/browser.dart+35-27
- flutter/dev/bots/check_code_samples.dart+47-250
- flutter/dev/bots/codelabs_build_test.sh+1-1
- flutter/dev/bots/docs.sh+15-6
- flutter/dev/bots/post_process_docs.dart+34-32
- flutter/dev/bots/prepare_package.dart+14-16
- flutter/dev/bots/pubspec.yaml+60-58
- flutter/dev/bots/run_command.dart+82-40
- flutter/dev/bots/service_worker_test.dart+209-275
- flutter/dev/bots/test.dart
- flutter/dev/bots/tool_subsharding.dart+20-25
- flutter/dev/bots/unpublish_package.dart+104-82
- flutter/dev/bots/utils.dart+512-22
- flutter/dev/conductor/README.md+11-27
- flutter/dev/conductor/RELEASE_ONBOARDING.mdAdded+71
- flutter/dev/customer_testing/README.mdAdded+16
- flutter/dev/customer_testing/ci.bat+10-14
- flutter/dev/customer_testing/ci.dartAdded+91
- flutter/dev/customer_testing/ci.sh+20-22
- flutter/dev/customer_testing/pubspec.yaml+45-44
- flutter/dev/customer_testing/run_tests.dart+54-51
- flutter/dev/customer_testing/tests.versionAdded+1
- flutter/dev/devicelab/README.md+22-7
- flutter/dev/devicelab/pubspec.yaml+58-56
- flutter/dev/docs/README.md+1-1
- flutter/dev/docs/analytics-footer.html+5
- flutter/dev/docs/analytics-header.html+3
- flutter/dev/forbidden_from_release_tests/pubspec.yaml+10-10
- flutter/dev/integration_tests/README.md+5-1
- flutter/dev/manual_tests/android/build.gradle-17
- flutter/dev/manual_tests/android/buildscript-gradle.lockfile+118-112
- flutter/dev/manual_tests/android/gradle.properties+1-1
- flutter/dev/manual_tests/android/project-app.lockfile+138-40
- flutter/dev/manual_tests/android/settings.gradle+17-4
- flutter/dev/manual_tests/lib/actions.dart+89-77
- flutter/dev/manual_tests/lib/animated_icons.dart+13-15
- flutter/dev/manual_tests/lib/card_collection.dart+191-80
- flutter/dev/manual_tests/lib/color_testing_demo.dart+11-13
- flutter/dev/manual_tests/lib/density.dart+204-219
- flutter/dev/manual_tests/lib/drag_and_drop.dart+29-37
- flutter/dev/manual_tests/lib/focus.dart+66-77
- flutter/dev/manual_tests/lib/hardware_keyboard.dart+10-14
- flutter/dev/manual_tests/lib/hover.dart+47-51
- flutter/dev/manual_tests/lib/main.dart+5-5
123# a11y_assessmentsAn application to conduct accessibility assessments.123456789101112131415161718192021222324252627282930313233# a11y_assessmentsThis app is used for internal testing.## Release a new version for Androidpre-requisite: This can and should only be done by a googler and you must alsobe in the flutter.dev play console account.1. Follow https://docs.flutter.dev/deployment/android to create a keystore file if you don't alreadyhave one.2. Bump the pubspec.yaml version3. Create a key.properties file in `android/` directory following this format.```storePassword=<password>keyPassword=<password>keyAlias=uploadstoreFile=<keystore path>```4. Run `flutter build appbundle` and upload the artifact to play console## Release a new version for iOSpre-requisite: This can and should only be done by a googler and you must alsobe in the FLUTTER.IO LLC developer account with iOS distribution permission.1. Bump the pubspec.yaml version2. Run `flutter build ipa` and upload the artifact to app store using transporter or other tools.For more information, see https://docs.flutter.dev/deployment/ios.3. Once the app is in TestFlight, add appropriate testers to the app so they can start testing.
1234567891011121314151617181920212223242526272829303132333435363738394041name: a11y_assessmentsdescription: A new Flutter projectenvironment:sdk: '>=3.2.0-22.0.dev <4.0.0'dependencies:flutter:sdk: fluttercharacters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"dev_dependencies:flutter_test:sdk: flutterasync: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"flutter:uses-material-design: true# PUBSPEC CHECKSUM: 8023123456789101112131415161718192021222324252627282930313233343536373839404142name: a11y_assessmentsdescription: A new Flutter projectversion: 5.0.0+5environment:sdk: ^3.7.0-0dependencies:flutter:sdk: fluttercharacters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"dev_dependencies:flutter_test:sdk: flutterasync: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"flutter:uses-material-design: true# PUBSPEC CHECKSUM: 5b23
12345674 unmodified lines12131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778name: flutter_automated_testsenvironment:sdk: '>=3.2.0-0 <4.0.0'dependencies:flutter:4 unmodified linessdk: flutterintegration_test:sdk: flutterplatform: 3.1.4test: 1.24.9_fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"process: 5.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"flutter:uses-material-design: trueassets:- icon/test.png# PUBSPEC CHECKSUM: 9de112345674 unmodified lines1213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879name: flutter_automated_testsenvironment:sdk: ^3.7.0-0dependencies:flutter:4 unmodified linessdk: flutterintegration_test:sdk: flutterplatform: 3.1.6test: 1.25.15_fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"process: 5.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"flutter:uses-material-design: trueassets:- icon/test.png# PUBSPEC CHECKSUM: 0ab4
1 unmodified line234567891011121314151617181920212223242 unmodified lines272829303132333426 unmodified lines6162636465666766 unmodified lines13413513613713813914024 unmodified lines1651661671681691701711721731741751761771781791 unmodified lineThis directory exists to support building Flutter on our build infrastructure.Flutter build results are available at:* https://flutter-dashboard.appspot.com/#/build- Aggregate dashboard of the separate CI systems used by Flutter.* https://cirrus-ci.com/github/flutter/flutter/master- Testing is done on PRs and submitted changes on GitHub.Flutter infra requires special permissions to retrigger builds on the[build dashboard](https://flutter-dashboard.appspot.com/#/build). File an[infra ticket](https://github.com/flutter/flutter/wiki/Infra-Ticket-Queue) torequest permission.The [Cirrus](https://cirrus-ci.org)-based bots run the [`test.dart`](test.dart)script for each PR and submission. This does testing for the tools, for theframework, and (for submitted changes only) rebuilds and updates the mainbranch API docs [staging site](https://main-api.flutter.dev/).For tagged dev and beta builds, it also builds and deploys the gallery app tothe app stores. It is configured by the [.cirrus.yml](/.cirrus.yml).The build dashboard includes post-commit testing run on physical devices. See[//dev/devicelab](../devicelab/README.md) for more information.2 unmodified linesA [set of infra scripts](https://flutter.googlesource.com/recipes/)run on Windows, Linux, and Mac machines. The configuration for how manymachines and what kind are managed internally by Google. File an[infra ticket](https://github.com/flutter/flutter/wiki/Infra-Ticket-Queue)to request new machine types to be added. Both of these technologies are highlyspecific to the [LUCI](https://github.com/luci) project, which is the successorto Chromium's infra and the foundation to Flutter's infrastructure.26 unmodified lineswill indicate the recipe used for a test.Recipes are just Python with some limitations on what can be imported. They are[documented](https://github.com/luci/recipes-py/blob/master/doc/user_guide.md)by the [luci/recipes-py GitHub project](https://github.com/luci/recipes-py).The typical cycle for editing a recipe is:66 unmodified lines`$ cd ../..``$ dev/bots/upload_android_tools.py -t ndk`## Flutter codelabs build testThe Flutter codelabs exercise Material Components in the form of a24 unmodified lines`d444a455de87a2e40b7f576dc12ffd9ab82fd491`, first do a dry run of the script tosee what it will do:```$ dart ./unpublish_package.dart --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491```And once you've verified the output of the dry run to be sure it is what youwant to do, run:```$ dart ./unpublish_package.dart --confirm --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491```and it will perform the actions. You will of course need to have access1 unmodified line23456789101112131415161718192021222 unmodified lines2526272829303126 unmodified lines5859606162636466 unmodified lines13113213313413513624 unmodified lines1611621631641651661671681691701711721731741751 unmodified lineThis directory exists to support building Flutter on our build infrastructure.Flutter build results are available at: <https://flutter-dashboard.appspot.com>.Flutter infra requires special permissions to retrigger builds on the[build dashboard](https://flutter-dashboard.appspot.com/#/build). File a `team-infra`issue to request permission.The [LUCI](https://chromium.googlesource.com/infra/luci/luci-py/+/refs/heads/main/README.md)-basedbots run the [`test.dart`](test.dart) script for each PR and submission. Thisdoes testing for the tools, for the framework, and (for submitted changes only)rebuilds and updates the main branch API docs [staging site](https://main-api.flutter.dev/).For tagged dev and beta builds, it also builds and deploys the gallery app tothe app stores. It is configured by two `.ci.yaml` files:- framework: [`.ci.yaml`](../../.ci.yaml)- engine: [`engine/src/flutter/.ci.yaml`](../../engine/src/flutter/.ci.yaml)The build dashboard includes post-commit testing run on physical devices. See[//dev/devicelab](../devicelab/README.md) for more information.2 unmodified linesA [set of infra scripts](https://flutter.googlesource.com/recipes/)run on Windows, Linux, and Mac machines. The configuration for how manymachines and what kind are managed internally by Google. File a `team-infra` issueto request new machine types to be added. Both of these technologies are highlyspecific to the [LUCI](https://github.com/luci) project, which is the successorto Chromium's infra and the foundation to Flutter's infrastructure.26 unmodified lineswill indicate the recipe used for a test.Recipes are just Python with some limitations on what can be imported. They are[documented](https://github.com/luci/recipes-py/blob/main/doc/user_guide.md)by the [luci/recipes-py GitHub project](https://github.com/luci/recipes-py).The typical cycle for editing a recipe is:66 unmodified lines`$ cd ../..``$ dev/bots/upload_android_tools.py -t ndk`## Flutter codelabs build testThe Flutter codelabs exercise Material Components in the form of a24 unmodified lines`d444a455de87a2e40b7f576dc12ffd9ab82fd491`, first do a dry run of the script tosee what it will do:```shdart ./unpublish_package.dart --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491```And once you've verified the output of the dry run to be sure it is what youwant to do, run:```shdart ./unpublish_package.dart --confirm --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491```and it will perform the actions. You will of course need to have access
8 unmodified lines910111213141562 unmodified lines7879808182838485868788898 unmodified lines98991001011021031041051064 unmodified lines11111211311411511611711811912012112212312412512612712812913013141 unmodified lines17317417517617717817918018118218311 unmodified lines1951961971981992002012022032042052062 unmodified lines20921021121221321421521621721821922012 unmodified lines23323423523623723823924024124224363 unmodified lines3073083093103113123133143153165 unmodified lines3223233243253263273283293303313323333343359 unmodified lines34534634734834935035135235335435535635761 unmodified lines41942042142242342442542642742842943043143243343437 unmodified lines47247347447547647747810 unmodified lines48949049149249349449549649749849950050150250350450550650750850951051151251351420 unmodified lines53553653753853954054154254347 unmodified lines5915925935945955965978 unmodified lines6066076086096106116126136146156163 unmodified lines62062162262362462562662762862963063163263363463563663763863930 unmodified lines67067167267367467567667767867968068168268332 unmodified lines7167177187197207217227237247257267277287297303 unmodified lines7347357367377387397407417427437447457467477486 unmodified lines7557567577587597607617627637647657667677687697707717727737747757767777782 unmodified lines7817827837847857867877 unmodified lines7957967977987998008017 unmodified lines8098108118128138148158164 unmodified lines82182282382482582682774 unmodified lines9029039049059069079089099109115 unmodified lines91791891992092192292392492529 unmodified lines9559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869874 unmodified lines9929939949959969979989991000100110021003100410053 unmodified lines100910101011101210131014101510161017101810191020102110223 unmodified lines1026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104836 unmodified lines108510861087108810891090109110921093109410 unmodified lines11051106110711081109111011111112111311141115111611171118111920 unmodified lines114011411142114311441145114631 unmodified lines1178117911801181118211833 unmodified lines11871188118911901191119211931194119511968 unmodified lines//// For documentation on creating sample code, see ../../examples/api/README.md// See also our style guide's discussion on documentation and sample code:// https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#documentation-dartdocs-javadocs-etc//// This tool is used to analyze smaller snippets of code in the API docs.// Such snippets are wrapped in ```dart ... ``` blocks, which may themselves62 unmodified linesfinal String _flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(Platform.script))));final String _packageFlutter = path.join(_flutterRoot, 'packages', 'flutter', 'lib');final String _defaultDartUiLocation = path.join(_flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'ui');final String _flutter = path.join(_flutterRoot, 'bin', Platform.isWindows ? 'flutter.bat' : 'flutter');Future<void> main(List<String> arguments) async {bool asserts = false;assert(() { asserts = true; return true; }());if (!asserts) {print('You must run this script with asserts enabled.');exit(1);8 unmodified linesargParser.addOption('temp',valueHelp: 'path',help: 'A location where temporary files may be written. Defaults to a ''directory in the system temp folder. If specified, will not be ''automatically removed at the end of execution.',);argParser.addFlag('verbose',4 unmodified lines'dart-ui-location',defaultsTo: _defaultDartUiLocation,valueHelp: 'path',help: 'A location where the dart:ui dart files are to be found. Defaults to ''the sky_engine directory installed in this flutter repo. This ''is typically the engine/src/flutter/lib/ui directory in an engine dev setup. ''Implies --include-dart-ui.',);argParser.addFlag('include-dart-ui',defaultsTo: true,help: 'Includes the dart:ui code supplied by the engine in the analysis.',);argParser.addFlag('help',negatable: false,help: 'Print help for this command.',);argParser.addOption('interactive',abbr: 'i',41 unmodified linesassert(flutterPackages.length >= 4);}final bool includeDartUi = parsedArguments.wasParsed('dart-ui-location') || parsedArguments['include-dart-ui'] as bool;late Directory dartUiLocation;if (((parsedArguments['dart-ui-location'] ?? '') as String).isNotEmpty) {dartUiLocation = Directory(path.absolute(parsedArguments['dart-ui-location'] as String));} else {dartUiLocation = Directory(_defaultDartUiLocation);}11 unmodified lines);} else {if (await _SnippetChecker(flutterPackages,tempDirectory: parsedArguments['temp'] as String?,verbose: parsedArguments['verbose'] as bool,dartUiLocation: includeDartUi ? dartUiLocation : null,).checkSnippets()) {stderr.writeln('See the documentation at the top of dev/bots/analyze_snippet_code.dart for details.');exit(1);}}2 unmodified lines/// A class to represent a line of input code.@immutableclass _Line {const _Line({this.code = '', this.line = -1, this.indent = 0}): generated = false;const _Line.generated({this.code = ''}): line = -1,indent = 0,generated = true;final int line;final int indent;12 unmodified linesif (other.runtimeType != runtimeType) {return false;}return other is _Line&& other.line == line&& other.indent == indent&& other.code == code&& other.generated == generated;}@override63 unmodified linesif (other.runtimeType != runtimeType) {return false;}return other is _SnippetCheckerException&& other.message == message&& other.file == file&& other.line == line;}@override5 unmodified lines/// Changes how it converts to a string based on the source of the error.@immutableclass _AnalysisError extends _ErrorBase {const _AnalysisError(String file,int line,int column,this.message,this.errorCode,this.source,) : super(file: file, line: line, column: column);final String message;final String errorCode;9 unmodified linesif (other.runtimeType != runtimeType) {return false;}return other is _AnalysisError&& other.file == file&& other.line == line&& other.column == column&& other.message == message&& other.errorCode == errorCode&& other.source == source;}@override61 unmodified linesstatic final RegExp _nonCodeRegExp = RegExp(r'^ *(//|@)');/// A RegExp that matches things that look like a function declaration.static final RegExp _maybeFunctionDeclarationRegExp = RegExp(r'^([A-Z][A-Za-z0-9_<>, ?]*|int|double|num|bool|void)\?? (_?[a-z][A-Za-z0-9_<>]*)\(.*');/// A RegExp that matches things that look like a getter.static final RegExp _maybeGetterDeclarationRegExp = RegExp(r'^([A-Z][A-Za-z0-9_<>?]*|int|double|num|bool)\?? get (_?[a-z][A-Za-z0-9_<>]*) (?:=>|{).*');/// A RegExp that matches an identifier followed by a colon, potentially with two spaces of indent.static final RegExp _namedArgumentRegExp = RegExp(r'^(?: )?([a-zA-Z0-9_]+): ');/// A RegExp that matches things that look unambiguously like top-level declarations.static final RegExp _topLevelDeclarationRegExp = RegExp(r'^(abstract|class|mixin|enum|typedef|final|extension) ');/// A RegExp that matches things that look unambiguously like statements.static final RegExp _statementRegExp = RegExp(r'^(if|while|for|try) ');37 unmodified linesfinal Directory? _dartUiLocation;static List<File> _listDartFiles(Directory directory, {bool recursive = false}) {return directory.listSync(recursive: recursive, followLinks: false).whereType<File>().where((File file) => path.extension(file.path) == '.dart').toList();}static const List<String> ignoresDirectives = <String>[10 unmodified lines/// Computes the headers needed for each snippet file.List<_Line> get headersWithoutImports {return _headersWithoutImports ??= ignoresDirectives.map<_Line>((String code) => _Line.generated(code: code)).toList();}List<_Line>? _headersWithoutImports;/// Computes the headers needed for each snippet file.List<_Line> get headersWithImports {return _headersWithImports ??= <String>[...ignoresDirectives,'// ignore_for_file: unused_import',"import 'dart:async';","import 'dart:convert';","import 'dart:io';","import 'dart:math' as math;","import 'dart:typed_data';","import 'dart:ui' as ui;","import 'package:flutter_test/flutter_test.dart';",for (final File file in _listDartFiles(Directory(_packageFlutter)))"import 'package:flutter/${path.basename(file.path)}';",].map<_Line>((String code) => _Line.generated(code: code)).toList();}List<_Line>? _headersWithImports;/// Checks all the snippets in the Dart files in [_flutterPackage] for errors.20 unmodified linesstatic Directory _createTempDirectory(String? tempArg) {if (tempArg != null) {final Directory tempDirectory = Directory(path.join(Directory.systemTemp.absolute.path, path.basename(tempArg)));if (path.basename(tempArg) != tempArg) {stderr.writeln('Supplied temporary directory name should be a name, not a path. Using ${tempDirectory.absolute.path} instead.');}print('Leaving temporary output in ${tempDirectory.absolute.path}.');// Make sure that any directory left around from a previous run is cleared out.47 unmodified linesfinal List<_Line> ignorePreambleLinesOnly = <_Line>[];final List<_Line> preambleLines = <_Line>[];final List<_Line> customImports = <_Line>[];bool inExamplesCanAssumePreamble = false; // Whether or not we're in the file-wide preamble section ("Examples can assume").bool inToolSection = false; // Whether or not we're in a code snippetbool inDartSection = false; // Whether or not we're in a '```dart' segment.bool inOtherBlock = false; // Whether we're in some other '```' segment.8 unmodified lines// end of preambleinExamplesCanAssumePreamble = false;} else if (!line.startsWith('// ')) {throw _SnippetCheckerException('Unexpected content in snippet code preamble.', file: relativeFilePath, line: lineNumber);} else {final _Line newLine = _Line(line: lineNumber, indent: 3, code: line.substring(3));if (newLine.code.startsWith('import ')) {customImports.add(newLine);} else {preambleLines.add(newLine);}3 unmodified lines}} else if (trimmedLine.startsWith(_dartDocSnippetEndRegex)) {if (!inToolSection) {throw _SnippetCheckerException('{@tool-end} marker detected without matching {@tool}.', file: relativeFilePath, line: lineNumber);}if (inDartSection) {throw _SnippetCheckerException("Dart section didn't terminate before end of snippet", file: relativeFilePath, line: lineNumber);}inToolSection = false;} else if (inDartSection) {final RegExpMatch? snippetMatch = _dartDocSnippetBeginRegex.firstMatch(trimmedLine);if (snippetMatch != null) {throw _SnippetCheckerException('{@tool} found inside Dart section', file: relativeFilePath, line: lineNumber);}if (trimmedLine.startsWith(_codeBlockEndRegex)) {inDartSection = false;final _SnippetFile snippet = _processBlock(startLine, block, preambleLines, ignorePreambleLinesOnly, relativeFilePath, lastExample, customImports);final String path = _writeSnippetFile(snippet).path;assert(!snippetMap.containsKey(path));snippetMap[path] = snippet;30 unmodified linesif (inOtherBlock) {inOtherBlock = false;} else if (line.contains('```yaml') ||line.contains('```ascii') ||line.contains('```java') ||line.contains('```objectivec') ||line.contains('```kotlin') ||line.contains('```swift') ||line.contains('```glsl') ||line.contains('```json') ||line.contains('```csv')) {inOtherBlock = true;} else if (line.startsWith(_uncheckedCodeBlockStartRegex)) {// this is an intentionally-unchecked block that doesn't appear in the API docs.32 unmodified lines/// a primitive heuristic to make snippet blocks into valid Dart code.////// `block` argument will get mutated, but is copied before this function returns._SnippetFile _processBlock(_Line startingLine, List<String> block, List<_Line> assumptions, List<_Line> ignoreAssumptionsOnly, String filename, _SnippetFile? lastExample, List<_Line> customImports) {if (block.isEmpty) {throw _SnippetCheckerException('${startingLine.asLocation(filename, 0)}: Empty ```dart block in snippet code.');}bool hasEllipsis = false;for (int index = 0; index < block.length; index += 1) {final Match? match = _ellipsisRegExp.matchAsPrefix(block[index]);if (match != null) {hasEllipsis = true; // in case the "..." is implying some overridden members, add an ignore to silence relevant warningsbreak;}}3 unmodified linesfor (final String line in block) {if (line == '// (e.g. in a stateful widget)') {if (hasStatefulWidgetComment) {throw _SnippetCheckerException('Example says it is in a stateful widget twice.', file: filename, line: index);}hasStatefulWidgetComment = true;} else if (line == '// continuing from previous example...') {if (importPreviousExample) {throw _SnippetCheckerException('Example says it continues from the previous example twice.', file: filename, line: index);}if (lastExample == null) {throw _SnippetCheckerException('Example says it continues from the previous example but it is the first example in the file.', file: filename, line: index);}importPreviousExample = true;} else {6 unmodified linespreamble = <_Line>[...lastExample!.code, // includes assumptionsif (hasEllipsis || hasStatefulWidgetComment)const _Line.generated(code: '// ignore_for_file: non_abstract_class_inherits_abstract_member'),];} else {preamble = <_Line>[if (hasEllipsis || hasStatefulWidgetComment)const _Line.generated(code: '// ignore_for_file: non_abstract_class_inherits_abstract_member'),...assumptions,];}final String firstCodeLine = block.firstWhere((String line) => !line.startsWith(_nonCodeRegExp)).trim();final String lastCodeLine = block.lastWhere((String line) => !line.startsWith(_nonCodeRegExp)).trim();if (firstCodeLine.startsWith('import ')) {// probably an entire programif (importPreviousExample) {throw _SnippetCheckerException('An example cannot both be self-contained (with its own imports) and say it wants to import the previous example.', file: filename, line: startingLine.line);}if (hasStatefulWidgetComment) {throw _SnippetCheckerException('An example cannot both be self-contained (with its own imports) and say it is in a stateful widget.', file: filename, line: startingLine.line);}return _SnippetFile.fromStrings(startingLine,2 unmodified lines<_Line>[...ignoreAssumptionsOnly,if (hasEllipsis)const _Line.generated(code: '// ignore_for_file: non_abstract_class_inherits_abstract_member'),],'self-contained program',filename,7 unmodified lines...headersWithoutImports,const _Line.generated(code: '// ignore_for_file: unused_import'),...customImports,]};if (hasStatefulWidgetComment) {return _SnippetFile.fromStrings(7 unmodified linesfilename,);} else if (firstCodeLine.startsWith(_maybeGetterDeclarationRegExp) ||(firstCodeLine.startsWith(_maybeFunctionDeclarationRegExp) && lastCodeLine.startsWith(_trailingCloseBraceRegExp)) ||block.any((String line) => line.startsWith(_topLevelDeclarationRegExp))) {// probably a top-level declarationreturn _SnippetFile.fromStrings(startingLine,4 unmodified linesfilename,);} else if (lastCodeLine.startsWith(_trailingSemicolonRegExp) ||block.any((String line) => line.startsWith(_statementRegExp))) {// probably a statementreturn _SnippetFile.fromStrings(startingLine,74 unmodified lines}sourcePubSpec.copySync(targetPubSpec.path);}final File targetAnalysisOptions = File(path.join(_tempDirectory.path, 'analysis_options.yaml'));if (!targetAnalysisOptions.existsSync()) {// Use the same analysis_options.yaml configuration that's used for examples/api.final File sourceAnalysisOptions = File(path.join(_flutterRoot, 'examples', 'api', 'analysis_options.yaml'));if (!sourceAnalysisOptions.existsSync()) {throw 'Cannot find analysis_options.yaml at ${sourceAnalysisOptions.path}, which is also used to analyze code snippets.';}5 unmodified lines/// Writes out a snippet section to the disk and returns the file.File _writeSnippetFile(_SnippetFile snippetFile) {final String snippetFileId = _createNameFromSource('snippet', snippetFile.filename, snippetFile.indexLine);final File outputFile = File(path.join(_tempDirectory.path, '$snippetFileId.dart'))..createSync(recursive: true);final String contents = snippetFile.code.map<String>((_Line line) => line.code).join('\n').trimRight();outputFile.writeAsStringSync('$contents\n');return outputFile;}29 unmodified linesfinal int columnNumber = int.parse(columnString, radix: 10);if (lineNumber < 1 || lineNumber > fileContents.length + 1) {errors.add(_AnalysisError(file.path,lineNumber,columnNumber,message,errorCode,_Line(line: lineNumber),));errors.add(_SnippetCheckerException('Error message points to non-existent line number: $error', file: file.path, line: lineNumber));continue;}final _SnippetFile? snippet = snippets[file.path];if (snippet == null) {errors.add(_SnippetCheckerException("Unknown section for ${file.path}. Maybe the temporary directory wasn't empty?",file: file.path,line: lineNumber,));continue;}if (fileContents.length != snippet.code.length) {errors.add(_SnippetCheckerException('Unexpected file contents for ${file.path}. File has ${fileContents.length} lines but we generated ${snippet.code.length} lines:\n${snippet.code.join("\n")}',file: file.path,line: lineNumber,));continue;}4 unmodified linesint delta = 0;while (true) {// find the nearest non-generated line to the errorif ((lineNumber - delta > 0) && (lineNumber - delta <= snippet.code.length) && !snippet.code[lineNumber - delta - 1].generated) {actualSource = snippet.code[lineNumber - delta - 1];actualLine = actualSource.line;actualColumn = delta == 0 ? columnNumber : actualSource.code.length + 1;actualMessage = delta == 0 ? message : '$message -- in later generated code';break;}if ((lineNumber + delta < snippet.code.length) && (lineNumber + delta >= 0) && !snippet.code[lineNumber + delta].generated) {actualSource = snippet.code[lineNumber + delta];actualLine = actualSource.line;actualColumn = 1;3 unmodified linesdelta += 1;assert((lineNumber - delta > 0) || (lineNumber + delta < snippet.code.length));}errors.add(_AnalysisError(snippet.filename,actualLine,actualColumn,'$actualMessage (${snippet.generatorComment})',errorCode,actualSource,));}return errors;}3 unmodified lines_createConfigurationFiles();// Run pub get to avoid output from getting dependencies in the analyzer// output.Process.runSync(_flutter,<String>['pub', 'get'],workingDirectory: _tempDirectory.absolute.path,);final ProcessResult result = Process.runSync(_flutter,<String>['--no-wrap', 'analyze', '--no-preamble', '--no-congratulate', '.'],workingDirectory: _tempDirectory.absolute.path,);final List<String> stderr = result.stderr.toString().trim().split('\n');final List<String> stdout = result.stdout.toString().trim().split('\n');// Remove output from building the flutter tool.stderr.removeWhere((String line) {return line.startsWith('Building flutter tool...')|| line.startsWith('Waiting for another flutter command to release the startup lock...')|| line.startsWith('Flutter assets will be downloaded from ');});// Check out the stderr to see if the analyzer had it's own issues.if (stderr.isNotEmpty && stderr.first.contains(RegExp(r' issues? found\. \(ran in '))) {36 unmodified lines<_Line>[...headers,const _Line.generated(), // blank lineif (preamble.isNotEmpty)...preamble,if (preamble.isNotEmpty)const _Line.generated(), // blank line_Line.generated(code: '// From: $filename:${firstLine.line}'),...code,],10 unmodified linesList<_Line> preamble,String generatorComment,String filename, {String? prefix, String? postfix,}) {final List<_Line> codeLines = <_Line>[if (prefix != null)_Line.generated(code: prefix),for (int i = 0; i < code.length; i += 1)_Line(code: code[i], line: firstLine.line + i, indent: firstLine.indent),if (postfix != null)_Line.generated(code: postfix),];return _SnippetFile.fromLines(codeLines, headers, preamble, generatorComment, filename);}20 unmodified lines(dartUiLocation == null || !path.isWithin(dartUiLocation.path, file.absolute.path))) {stderr.writeln('Specified file ${file.absolute.path} is not within the flutter root: '"$_flutterRoot${dartUiLocation != null ? ' or the dart:ui location: $dartUiLocation' : ''}");exit(1);}31 unmodified linesbusy = false;}}await rerun();stdin.lineMode = false;3 unmodified linescase 'q':checker.cleanupTempDirectory();exit(0);case 'r':if (!busy) {rerun();}}});Watcher(file.absolute.path).events.listen((_) => rerun());8 unmodified lines910111213141562 unmodified lines787980818283848586878889909192939495969798991001011021031048 unmodified lines1131141151161171181191201211224 unmodified lines12712812913013113213313413513613713813914014114214314441 unmodified lines18618718818919019119219319419519611 unmodified lines2082092102112122132142152162172182192202212 unmodified lines22422522622722822923023112 unmodified lines24424524624724824925025125225325463 unmodified lines3183193203213223233243253263275 unmodified lines3333343353363373383393409 unmodified lines35035135235335435535635735835936036136261 unmodified lines42442542642742842943043143243343443543643743843944044144244344444537 unmodified lines48348448548648748848949049149249310 unmodified lines50450550650750850951051151251351451551651751851952052152252352452552652752852953053153253320 unmodified lines55455555655755855956056156256356456556647 unmodified lines6146156166176186196206218 unmodified lines6306316326336346356366376386396406416426436443 unmodified lines64864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668730 unmodified lines71871972072172272372472572672772872973073173232 unmodified lines7657667677687697707717727737747757767777787797807817827837847857867877887897903 unmodified lines7947957967977987998008018028038048058068078088098108118128138148158168178188198206 unmodified lines8278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638642 unmodified lines8678688698708718728738748757 unmodified lines8838848858868878888897 unmodified lines8978988999009019029039049054 unmodified lines91091191291391491591674 unmodified lines991992993994995996997998999100010011002100310045 unmodified lines10101011101210131014101510161017101810191020102110221023102429 unmodified lines1054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710984 unmodified lines1103110411051106110711081109111011111112111311141115111611171118111911203 unmodified lines11241125112611271128112911301131113211331134113511361137113811393 unmodified lines11431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116636 unmodified lines1203120412051206120712081209121010 unmodified lines1221122212231224122512261227122812291230123112321233123420 unmodified lines125512561257125812591260126131 unmodified lines12931294129512961297129812993 unmodified lines130313041305130613071308130913108 unmodified lines//// For documentation on creating sample code, see ../../examples/api/README.md// See also our style guide's discussion on documentation and sample code:// https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md//// This tool is used to analyze smaller snippets of code in the API docs.// Such snippets are wrapped in ```dart ... ``` blocks, which may themselves62 unmodified linesfinal String _flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(Platform.script))));final String _packageFlutter = path.join(_flutterRoot, 'packages', 'flutter', 'lib');final String _defaultDartUiLocation = path.join(_flutterRoot,'bin','cache','pkg','sky_engine','lib','ui',);final String _flutter = path.join(_flutterRoot,'bin',Platform.isWindows ? 'flutter.bat' : 'flutter',);Future<void> main(List<String> arguments) async {bool asserts = false;assert(() {asserts = true;return true;}());if (!asserts) {print('You must run this script with asserts enabled.');exit(1);8 unmodified linesargParser.addOption('temp',valueHelp: 'path',help:'A location where temporary files may be written. Defaults to a ''directory in the system temp folder. If specified, will not be ''automatically removed at the end of execution.',);argParser.addFlag('verbose',4 unmodified lines'dart-ui-location',defaultsTo: _defaultDartUiLocation,valueHelp: 'path',help:'A location where the dart:ui dart files are to be found. Defaults to ''the sky_engine directory installed in this flutter repo. This ''is typically the engine/src/flutter/lib/ui directory in an engine dev setup. ''Implies --include-dart-ui.',);argParser.addFlag('include-dart-ui',defaultsTo: true,help: 'Includes the dart:ui code supplied by the engine in the analysis.',);argParser.addFlag('help', negatable: false, help: 'Print help for this command.');argParser.addOption('interactive',abbr: 'i',41 unmodified linesassert(flutterPackages.length >= 4);}final bool includeDartUi =parsedArguments.wasParsed('dart-ui-location') || parsedArguments['include-dart-ui'] as bool;late Directory dartUiLocation;if (((parsedArguments['dart-ui-location'] ?? '') as String).isNotEmpty) {dartUiLocation = Directory(path.absolute(parsedArguments['dart-ui-location'] as String));} else {dartUiLocation = Directory(_defaultDartUiLocation);}11 unmodified lines);} else {if (await _SnippetChecker(flutterPackages,tempDirectory: parsedArguments['temp'] as String?,verbose: parsedArguments['verbose'] as bool,dartUiLocation: includeDartUi ? dartUiLocation : null,).checkSnippets()) {stderr.writeln('See the documentation at the top of dev/bots/analyze_snippet_code.dart for details.',);exit(1);}}2 unmodified lines/// A class to represent a line of input code.@immutableclass _Line {const _Line({this.code = '', this.line = -1, this.indent = 0}) : generated = false;const _Line.generated({this.code = ''}) : line = -1, indent = 0, generated = true;final int line;final int indent;12 unmodified linesif (other.runtimeType != runtimeType) {return false;}return other is _Line &&other.line == line &&other.indent == indent &&other.code == code &&other.generated == generated;}@override63 unmodified linesif (other.runtimeType != runtimeType) {return false;}return other is _SnippetCheckerException &&other.message == message &&other.file == file &&other.line == line;}@override5 unmodified lines/// Changes how it converts to a string based on the source of the error.@immutableclass _AnalysisError extends _ErrorBase {const _AnalysisError(String file, int line, int column, this.message, this.errorCode, this.source): super(file: file, line: line, column: column);final String message;final String errorCode;9 unmodified linesif (other.runtimeType != runtimeType) {return false;}return other is _AnalysisError &&other.file == file &&other.line == line &&other.column == column &&other.message == message &&other.errorCode == errorCode &&other.source == source;}@override61 unmodified linesstatic final RegExp _nonCodeRegExp = RegExp(r'^ *(//|@)');/// A RegExp that matches things that look like a function declaration.static final RegExp _maybeFunctionDeclarationRegExp = RegExp(r'^([A-Z][A-Za-z0-9_<>, ?]*|int|double|num|bool|void)\?? (_?[a-z][A-Za-z0-9_<>]*)\(.*',);/// A RegExp that matches things that look like a getter.static final RegExp _maybeGetterDeclarationRegExp = RegExp(r'^([A-Z][A-Za-z0-9_<>?]*|int|double|num|bool)\?? get (_?[a-z][A-Za-z0-9_<>]*) (?:=>|{).*',);/// A RegExp that matches an identifier followed by a colon, potentially with two spaces of indent.static final RegExp _namedArgumentRegExp = RegExp(r'^(?: )?([a-zA-Z0-9_]+): ');/// A RegExp that matches things that look unambiguously like top-level declarations.static final RegExp _topLevelDeclarationRegExp = RegExp(r'^(abstract|class|mixin|enum|typedef|final|extension) ',);/// A RegExp that matches things that look unambiguously like statements.static final RegExp _statementRegExp = RegExp(r'^(if|while|for|try) ');37 unmodified linesfinal Directory? _dartUiLocation;static List<File> _listDartFiles(Directory directory, {bool recursive = false}) {return directory.listSync(recursive: recursive, followLinks: false).whereType<File>().where((File file) => path.extension(file.path) == '.dart').toList();}static const List<String> ignoresDirectives = <String>[10 unmodified lines/// Computes the headers needed for each snippet file.List<_Line> get headersWithoutImports {return _headersWithoutImports ??=ignoresDirectives.map<_Line>((String code) => _Line.generated(code: code)).toList();}List<_Line>? _headersWithoutImports;/// Computes the headers needed for each snippet file.List<_Line> get headersWithImports {return _headersWithImports ??=<String>[...ignoresDirectives,'// ignore_for_file: unused_import',"import 'dart:async';","import 'dart:convert';","import 'dart:io';","import 'dart:math' as math;","import 'dart:typed_data';","import 'dart:ui' as ui;","import 'package:flutter_test/flutter_test.dart';",for (final File file in _listDartFiles(Directory(_packageFlutter)))"import 'package:flutter/${path.basename(file.path)}';",].map<_Line>((String code) => _Line.generated(code: code)).toList();}List<_Line>? _headersWithImports;/// Checks all the snippets in the Dart files in [_flutterPackage] for errors.20 unmodified linesstatic Directory _createTempDirectory(String? tempArg) {if (tempArg != null) {final Directory tempDirectory = Directory(path.join(Directory.systemTemp.absolute.path, path.basename(tempArg)),);if (path.basename(tempArg) != tempArg) {stderr.writeln('Supplied temporary directory name should be a name, not a path. Using ${tempDirectory.absolute.path} instead.',);}print('Leaving temporary output in ${tempDirectory.absolute.path}.');// Make sure that any directory left around from a previous run is cleared out.47 unmodified linesfinal List<_Line> ignorePreambleLinesOnly = <_Line>[];final List<_Line> preambleLines = <_Line>[];final List<_Line> customImports = <_Line>[];bool inExamplesCanAssumePreamble =false; // Whether or not we're in the file-wide preamble section ("Examples can assume").bool inToolSection = false; // Whether or not we're in a code snippetbool inDartSection = false; // Whether or not we're in a '```dart' segment.bool inOtherBlock = false; // Whether we're in some other '```' segment.8 unmodified lines// end of preambleinExamplesCanAssumePreamble = false;} else if (!line.startsWith('// ')) {throw _SnippetCheckerException('Unexpected content in snippet code preamble.',file: relativeFilePath,line: lineNumber,);} else {final _Line newLine = _Line(line: lineNumber, indent: 3, code: line.substring(3));if (newLine.code.startsWith('import ')) {customImports.add(newLine);} else {preambleLines.add(newLine);}3 unmodified lines}} else if (trimmedLine.startsWith(_dartDocSnippetEndRegex)) {if (!inToolSection) {throw _SnippetCheckerException('{@tool-end} marker detected without matching {@tool}.',file: relativeFilePath,line: lineNumber,);}if (inDartSection) {throw _SnippetCheckerException("Dart section didn't terminate before end of snippet",file: relativeFilePath,line: lineNumber,);}inToolSection = false;} else if (inDartSection) {final RegExpMatch? snippetMatch = _dartDocSnippetBeginRegex.firstMatch(trimmedLine);if (snippetMatch != null) {throw _SnippetCheckerException('{@tool} found inside Dart section',file: relativeFilePath,line: lineNumber,);}if (trimmedLine.startsWith(_codeBlockEndRegex)) {inDartSection = false;final _SnippetFile snippet = _processBlock(startLine,block,preambleLines,ignorePreambleLinesOnly,relativeFilePath,lastExample,customImports,);final String path = _writeSnippetFile(snippet).path;assert(!snippetMap.containsKey(path));snippetMap[path] = snippet;30 unmodified linesif (inOtherBlock) {inOtherBlock = false;} else if (line.contains('```yaml') ||line.contains('```ascii') ||line.contains('```java') ||line.contains('```objectivec') ||line.contains('```kotlin') ||line.contains('```swift') ||line.contains('```glsl') ||line.contains('```json') ||line.contains('```csv') ||line.contains('```sh')) {inOtherBlock = true;} else if (line.startsWith(_uncheckedCodeBlockStartRegex)) {// this is an intentionally-unchecked block that doesn't appear in the API docs.32 unmodified lines/// a primitive heuristic to make snippet blocks into valid Dart code.////// `block` argument will get mutated, but is copied before this function returns._SnippetFile _processBlock(_Line startingLine,List<String> block,List<_Line> assumptions,List<_Line> ignoreAssumptionsOnly,String filename,_SnippetFile? lastExample,List<_Line> customImports,) {if (block.isEmpty) {throw _SnippetCheckerException('${startingLine.asLocation(filename, 0)}: Empty ```dart block in snippet code.',);}bool hasEllipsis = false;for (int index = 0; index < block.length; index += 1) {final Match? match = _ellipsisRegExp.matchAsPrefix(block[index]);if (match != null) {hasEllipsis =true; // in case the "..." is implying some overridden members, add an ignore to silence relevant warningsbreak;}}3 unmodified linesfor (final String line in block) {if (line == '// (e.g. in a stateful widget)') {if (hasStatefulWidgetComment) {throw _SnippetCheckerException('Example says it is in a stateful widget twice.',file: filename,line: index,);}hasStatefulWidgetComment = true;} else if (line == '// continuing from previous example...') {if (importPreviousExample) {throw _SnippetCheckerException('Example says it continues from the previous example twice.',file: filename,line: index,);}if (lastExample == null) {throw _SnippetCheckerException('Example says it continues from the previous example but it is the first example in the file.',file: filename,line: index,);}importPreviousExample = true;} else {6 unmodified linespreamble = <_Line>[...lastExample!.code, // includes assumptionsif (hasEllipsis || hasStatefulWidgetComment)const _Line.generated(code: '// ignore_for_file: non_abstract_class_inherits_abstract_member',),];} else {preamble = <_Line>[if (hasEllipsis || hasStatefulWidgetComment)const _Line.generated(code: '// ignore_for_file: non_abstract_class_inherits_abstract_member',),...assumptions,];}final String firstCodeLine =block.firstWhere((String line) => !line.startsWith(_nonCodeRegExp)).trim();final String lastCodeLine =block.lastWhere((String line) => !line.startsWith(_nonCodeRegExp)).trim();if (firstCodeLine.startsWith('import ')) {// probably an entire programif (importPreviousExample) {throw _SnippetCheckerException('An example cannot both be self-contained (with its own imports) and say it wants to import the previous example.',file: filename,line: startingLine.line,);}if (hasStatefulWidgetComment) {throw _SnippetCheckerException('An example cannot both be self-contained (with its own imports) and say it is in a stateful widget.',file: filename,line: startingLine.line,);}return _SnippetFile.fromStrings(startingLine,2 unmodified lines<_Line>[...ignoreAssumptionsOnly,if (hasEllipsis)const _Line.generated(code: '// ignore_for_file: non_abstract_class_inherits_abstract_member',),],'self-contained program',filename,7 unmodified lines...headersWithoutImports,const _Line.generated(code: '// ignore_for_file: unused_import'),...customImports,],};if (hasStatefulWidgetComment) {return _SnippetFile.fromStrings(7 unmodified linesfilename,);} else if (firstCodeLine.startsWith(_maybeGetterDeclarationRegExp) ||(firstCodeLine.startsWith(_maybeFunctionDeclarationRegExp) &&lastCodeLine.startsWith(_trailingCloseBraceRegExp)) ||block.any((String line) => line.startsWith(_topLevelDeclarationRegExp))) {// probably a top-level declarationreturn _SnippetFile.fromStrings(startingLine,4 unmodified linesfilename,);} else if (lastCodeLine.startsWith(_trailingSemicolonRegExp) ||block.any((String line) => line.startsWith(_statementRegExp))) {// probably a statementreturn _SnippetFile.fromStrings(startingLine,74 unmodified lines}sourcePubSpec.copySync(targetPubSpec.path);}final File targetAnalysisOptions = File(path.join(_tempDirectory.path, 'analysis_options.yaml'),);if (!targetAnalysisOptions.existsSync()) {// Use the same analysis_options.yaml configuration that's used for examples/api.final File sourceAnalysisOptions = File(path.join(_flutterRoot, 'examples', 'api', 'analysis_options.yaml'),);if (!sourceAnalysisOptions.existsSync()) {throw 'Cannot find analysis_options.yaml at ${sourceAnalysisOptions.path}, which is also used to analyze code snippets.';}5 unmodified lines/// Writes out a snippet section to the disk and returns the file.File _writeSnippetFile(_SnippetFile snippetFile) {final String snippetFileId = _createNameFromSource('snippet',snippetFile.filename,snippetFile.indexLine,);final File outputFile = File(path.join(_tempDirectory.path, '$snippetFileId.dart'))..createSync(recursive: true);final String contents =snippetFile.code.map<String>((_Line line) => line.code).join('\n').trimRight();outputFile.writeAsStringSync('$contents\n');return outputFile;}29 unmodified linesfinal int columnNumber = int.parse(columnString, radix: 10);if (lineNumber < 1 || lineNumber > fileContents.length + 1) {errors.add(_AnalysisError(file.path,lineNumber,columnNumber,message,errorCode,_Line(line: lineNumber),),);errors.add(_SnippetCheckerException('Error message points to non-existent line number: $error',file: file.path,line: lineNumber,),);continue;}final _SnippetFile? snippet = snippets[file.path];if (snippet == null) {errors.add(_SnippetCheckerException("Unknown section for ${file.path}. Maybe the temporary directory wasn't empty?",file: file.path,line: lineNumber,),);continue;}if (fileContents.length != snippet.code.length) {errors.add(_SnippetCheckerException('Unexpected file contents for ${file.path}. File has ${fileContents.length} lines but we generated ${snippet.code.length} lines:\n${snippet.code.join("\n")}',file: file.path,line: lineNumber,),);continue;}4 unmodified linesint delta = 0;while (true) {// find the nearest non-generated line to the errorif ((lineNumber - delta > 0) &&(lineNumber - delta <= snippet.code.length) &&!snippet.code[lineNumber - delta - 1].generated) {actualSource = snippet.code[lineNumber - delta - 1];actualLine = actualSource.line;actualColumn = delta == 0 ? columnNumber : actualSource.code.length + 1;actualMessage = delta == 0 ? message : '$message -- in later generated code';break;}if ((lineNumber + delta < snippet.code.length) &&(lineNumber + delta >= 0) &&!snippet.code[lineNumber + delta].generated) {actualSource = snippet.code[lineNumber + delta];actualLine = actualSource.line;actualColumn = 1;3 unmodified linesdelta += 1;assert((lineNumber - delta > 0) || (lineNumber + delta < snippet.code.length));}errors.add(_AnalysisError(snippet.filename,actualLine,actualColumn,'$actualMessage (${snippet.generatorComment})',errorCode,actualSource,),);}return errors;}3 unmodified lines_createConfigurationFiles();// Run pub get to avoid output from getting dependencies in the analyzer// output.Process.runSync(_flutter, <String>['pub','get',], workingDirectory: _tempDirectory.absolute.path);final ProcessResult result = Process.runSync(_flutter, <String>['--no-wrap','analyze','--no-preamble','--no-congratulate','.',], workingDirectory: _tempDirectory.absolute.path);final List<String> stderr = result.stderr.toString().trim().split('\n');final List<String> stdout = result.stdout.toString().trim().split('\n');// Remove output from building the flutter tool.stderr.removeWhere((String line) {return line.startsWith('Building flutter tool...') ||line.startsWith('Waiting for another flutter command to release the startup lock...') ||line.startsWith('Flutter assets will be downloaded from ');});// Check out the stderr to see if the analyzer had it's own issues.if (stderr.isNotEmpty && stderr.first.contains(RegExp(r' issues? found\. \(ran in '))) {36 unmodified lines<_Line>[...headers,const _Line.generated(), // blank lineif (preamble.isNotEmpty) ...preamble,if (preamble.isNotEmpty) const _Line.generated(), // blank line_Line.generated(code: '// From: $filename:${firstLine.line}'),...code,],10 unmodified linesList<_Line> preamble,String generatorComment,String filename, {String? prefix,String? postfix,}) {final List<_Line> codeLines = <_Line>[if (prefix != null) _Line.generated(code: prefix),for (int i = 0; i < code.length; i += 1)_Line(code: code[i], line: firstLine.line + i, indent: firstLine.indent),if (postfix != null) _Line.generated(code: postfix),];return _SnippetFile.fromLines(codeLines, headers, preamble, generatorComment, filename);}20 unmodified lines(dartUiLocation == null || !path.isWithin(dartUiLocation.path, file.absolute.path))) {stderr.writeln('Specified file ${file.absolute.path} is not within the flutter root: '"$_flutterRoot${dartUiLocation != null ? ' or the dart:ui location: $dartUiLocation' : ''}",);exit(1);}31 unmodified linesbusy = false;}}await rerun();stdin.lineMode = false;3 unmodified linescase 'q':checker.cleanupTempDirectory();exit(0);case 'r' when !busy:rerun();}});Watcher(file.absolute.path).events.listen((_) => rerun());
30 unmodified lines31323334353637383940414243444546474849505152535427 unmodified lines82838485868788899091929394959697989910030 unmodified linesfinal Completer<String> resultCompleter = Completer<String>();server = await io.HttpServer.bind('localhost', serverPort);final Cascade cascade = Cascade().add((Request request) async {if (request.requestedUri.path.endsWith('/test-result')) {resultCompleter.complete(await request.readAsString());return Response.ok('Test results received');}return Response.notFound('');}).add(createStaticHandler(appDirectory));shelf_io.serveRequests(server, cascade.handler);final io.Directory userDataDirectory = io.Directory.systemTemp.createTempSync('flutter_chrome_user_data.');chrome = await Chrome.launch(ChromeOptions(headless: true,debugPort: browserDebugPort,url: appUrl,userDataDirectory: userDataDirectory.path,windowHeight: 500,windowWidth: 500,), onError: resultCompleter.completeError);return await resultCompleter.future;} finally {chrome?.stop();27 unmodified lines}cascade = cascade.add((Request request) async {final Response response = await staticHandler(request);return response.change(headers: <String, Object>{'cache-control': cacheControl,});});shelf_io.serveRequests(server, cascade.handler);final io.Directory userDataDirectory = io.Directory.systemTemp.createTempSync('flutter_chrome_user_data.');final Completer<String> chromeErrorCompleter = Completer<String>();chrome = await Chrome.launch(ChromeOptions(headless: headless,debugPort: browserDebugPort,url: appUrl,userDataDirectory: userDataDirectory.path,), onError: chromeErrorCompleter.complete);return AppServer._(server, chrome, chromeErrorCompleter.future);}30 unmodified lines313233343536373839404142434445464748495051525354555657585927 unmodified lines8788899091929394959697989910010110210310410510610710830 unmodified linesfinal Completer<String> resultCompleter = Completer<String>();server = await io.HttpServer.bind('localhost', serverPort);final Cascade cascade = Cascade().add((Request request) async {if (request.requestedUri.path.endsWith('/test-result')) {resultCompleter.complete(await request.readAsString());return Response.ok('Test results received');}return Response.notFound('');}).add(createStaticHandler(appDirectory));shelf_io.serveRequests(server, cascade.handler);final io.Directory userDataDirectory = io.Directory.systemTemp.createTempSync('flutter_chrome_user_data.',);chrome = await Chrome.launch(ChromeOptions(headless: true,debugPort: browserDebugPort,url: appUrl,userDataDirectory: userDataDirectory.path,windowHeight: 500,windowWidth: 500,),onError: resultCompleter.completeError,);return await resultCompleter.future;} finally {chrome?.stop();27 unmodified lines}cascade = cascade.add((Request request) async {final Response response = await staticHandler(request);return response.change(headers: <String, Object>{'cache-control': cacheControl});});shelf_io.serveRequests(server, cascade.handler);final io.Directory userDataDirectory = io.Directory.systemTemp.createTempSync('flutter_chrome_user_data.',);final Completer<String> chromeErrorCompleter = Completer<String>();chrome = await Chrome.launch(ChromeOptions(headless: headless,debugPort: browserDebugPort,url: appUrl,userDataDirectory: userDataDirectory.path,),onError: chromeErrorCompleter.complete,);return AppServer._(server, chrome, chromeErrorCompleter.future);}
2 unmodified lines34567898 unmodified lines181920212223244 unmodified lines293031323334353637383994 unmodified lines1341351361371381391401 unmodified line1421431441451461471481491501511521531541551561571581591601611621631641651661671681691703 unmodified lines1741751761771781791801812 unmodified lines1841851861871881891901911921931941951961976 unmodified lines2042052062072082092102112122132142152162172182192202212222232242252262272282292303 unmodified lines23423523623723823924024124236 unmodified lines2792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934942 unmodified lines// found in the LICENSE file.// To run this, from the root of the Flutter repository:// bin/cache/dart-sdk/bin/dart --enable-asserts dev/bots/check_code_sample_links.dartimport 'dart:io';8 unmodified linesfinal String _flutterRoot = path.dirname(path.dirname(path.dirname(_scriptLocation)));final String _exampleDirectoryPath = path.join(_flutterRoot, 'examples', 'api');final String _packageDirectoryPath = path.join(_flutterRoot, 'packages');final String _dartUIDirectoryPath = path.join(_flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib');final List<String> _knownUnlinkedExamples = <String>[// These are template files that aren't expected to be linked.4 unmodified linesvoid main(List<String> args) {final ArgParser argParser = ArgParser();argParser.addFlag('help',negatable: false,help: 'Print help for this command.',);argParser.addOption('examples',valueHelp: 'path',94 unmodified lines// Get a list of all the example link paths that appear in the source files.final (Set<String> exampleLinks, Set<LinkInfo> malformedLinks) = getExampleLinks(packages);// Also add in any that might be found in the dart:ui directory.final (Set<String> uiExampleLinks, Set<LinkInfo> uiMalformedLinks) = getExampleLinks(dartUIPath);exampleLinks.addAll(uiExampleLinks);malformedLinks.addAll(uiMalformedLinks);1 unmodified line// Get a list of the filenames that were not found in the source files.final List<String> missingFilenames = checkForMissingLinks(exampleFilenames, exampleLinks);// Get a list of any tests that are missing, as well as any that used to be// missing, but have been implemented.final (List<File> missingTests, List<File> noLongerMissing) = checkForMissingTests(exampleFilenames);// Remove any that we know are exceptions (examples that aren't expected to be// linked into any source files). These are typically template files used to// generate new examples.missingFilenames.removeWhere((String file) => _knownUnlinkedExamples.contains(file));if (missingFilenames.isEmpty && missingTests.isEmpty && noLongerMissing.isEmpty && malformedLinks.isEmpty) {return true;}if (noLongerMissing.isNotEmpty) {final StringBuffer buffer = StringBuffer('The following tests have been implemented! Huzzah!:\n');for (final File name in noLongerMissing) {buffer.writeln(' ${getRelativePath(name)}');}buffer.writeln('However, they now need to be removed from the _knownMissingTests');buffer.write('list in the script $_scriptLocation.');foundError(buffer.toString().split('\n'));}if (missingTests.isNotEmpty) {final StringBuffer buffer = StringBuffer('The following example test files are missing:\n');for (final File name in missingTests) {3 unmodified lines}if (missingFilenames.isNotEmpty) {final StringBuffer buffer =StringBuffer('The following examples are not linked from any source file API doc comments:\n');for (final String name in missingFilenames) {buffer.writeln(' $name');}2 unmodified lines}if (malformedLinks.isNotEmpty) {final StringBuffer buffer =StringBuffer('The following malformed links were found in API doc comments:\n');for (final LinkInfo link in malformedLinks) {buffer.writeln(' $link');}buffer.write('Correct the formatting of these links so that they match the exact pattern:\n'r" r'\*\* See code in (?<path>.+) \*\*'");foundError(buffer.toString().split('\n'));}6 unmodified lines}List<File> getFiles(Directory directory, [Pattern? filenamePattern]) {final List<File> filenames = directory.listSync(recursive: true).map((FileSystemEntity entity) {if (entity is File) {return entity;} else {return null;}}).where((File? filename) =>filename != null && (filenamePattern == null || filename.absolute.path.contains(filenamePattern))).map<File>((File? s) => s!).toList();return filenames;}List<File> getExampleFilenames(Directory directory) {return getFiles(directory.childDirectory('lib'),RegExp(r'\d+\.dart$'),);}(Set<String>, Set<LinkInfo>) getExampleLinks(Directory searchDirectory) {3 unmodified linesfinal RegExp validExampleRe = RegExp(r'\*\* See code in (?<path>.+) \*\*');// Looks for some common broken versions of example links. This looks for// something that is at minimum "///*seecode<something>*" to indicate that it// looks like an example link. It should be narrowed if we start gettting false// positives.final RegExp malformedLinkRe = RegExp(r'^(?<malformed>\s*///\s*\*\*?\s*[sS][eE][eE]\s*[Cc][Oo][Dd][Ee].+\*\*?)');for (final File file in files) {final String contents = file.readAsStringSync();final List<String> lines = contents.split('\n');36 unmodified linesreturn '${path.join(testPath, path.basenameWithoutExtension(example.path))}_test.dart';}(List<File>, List<File>) checkForMissingTests(List<File> exampleFilenames) {final List<File> missingTests = <File>[];final List<File> noLongerMissingTests = <File>[];for (final File example in exampleFilenames) {final File testFile = filesystem.file(getTestNameForExample(example, examples));final String name = path.relative(testFile.absolute.path, from: flutterRoot.absolute.path);if (!testFile.existsSync()) {missingTests.add(testFile);} else if (_knownMissingTests.contains(name.replaceAll(r'\', '/'))) {noLongerMissingTests.add(testFile);}}// Skip any that we know are missing.missingTests.removeWhere((File test) {final String name = path.relative(test.absolute.path, from: flutterRoot.absolute.path).replaceAll(r'\', '/');return _knownMissingTests.contains(name);},);return (missingTests, noLongerMissingTests);}}// These tests are known to be missing. They should all eventually be// implemented, but until they are we allow them, so that we can catch any new// examples that are added without tests.//// TODO(gspencergoog): implement the missing tests.// See https://github.com/flutter/flutter/issues/130459final Set<String> _knownMissingTests = <String>{'examples/api/test/material/bottom_app_bar/bottom_app_bar.2_test.dart','examples/api/test/material/bottom_app_bar/bottom_app_bar.1_test.dart','examples/api/test/material/theme/theme_extension.1_test.dart','examples/api/test/material/material_state/material_state_border_side.0_test.dart','examples/api/test/material/material_state/material_state_mouse_cursor.0_test.dart','examples/api/test/material/material_state/material_state_outlined_border.0_test.dart','examples/api/test/material/material_state/material_state_property.0_test.dart','examples/api/test/material/selectable_region/selectable_region.0_test.dart','examples/api/test/material/text_field/text_field.2_test.dart','examples/api/test/material/text_field/text_field.1_test.dart','examples/api/test/material/button_style/button_style.0_test.dart','examples/api/test/material/range_slider/range_slider.0_test.dart','examples/api/test/material/selection_container/selection_container_disabled.0_test.dart','examples/api/test/material/selection_container/selection_container.0_test.dart','examples/api/test/material/color_scheme/dynamic_content_color.0_test.dart','examples/api/test/material/platform_menu_bar/platform_menu_bar.0_test.dart','examples/api/test/material/menu_anchor/menu_anchor.2_test.dart','examples/api/test/material/stepper/stepper.controls_builder.0_test.dart','examples/api/test/material/flexible_space_bar/flexible_space_bar.0_test.dart','examples/api/test/material/floating_action_button_location/standard_fab_location.0_test.dart','examples/api/test/material/chip/deletable_chip_attributes.on_deleted.0_test.dart','examples/api/test/material/snack_bar/snack_bar.2_test.dart','examples/api/test/material/snack_bar/snack_bar.1_test.dart','examples/api/test/material/icon_button/icon_button.3_test.dart','examples/api/test/material/expansion_panel/expansion_panel_list.expansion_panel_list_radio.0_test.dart','examples/api/test/material/input_decorator/input_decoration.1_test.dart','examples/api/test/material/input_decorator/input_decoration.prefix_icon_constraints.0_test.dart','examples/api/test/material/input_decorator/input_decoration.material_state.0_test.dart','examples/api/test/material/input_decorator/input_decoration.2_test.dart','examples/api/test/material/input_decorator/input_decoration.0_test.dart','examples/api/test/material/input_decorator/input_decoration.label.0_test.dart','examples/api/test/material/input_decorator/input_decoration.suffix_icon_constraints.0_test.dart','examples/api/test/material/input_decorator/input_decoration.3_test.dart','examples/api/test/material/input_decorator/input_decoration.material_state.1_test.dart','examples/api/test/material/text_form_field/text_form_field.1_test.dart','examples/api/test/material/scrollbar/scrollbar.1_test.dart','examples/api/test/material/dropdown_menu/dropdown_menu.1_test.dart','examples/api/test/material/radio/radio.toggleable.0_test.dart','examples/api/test/material/search_anchor/search_anchor.0_test.dart','examples/api/test/material/search_anchor/search_anchor.1_test.dart','examples/api/test/material/search_anchor/search_anchor.2_test.dart','examples/api/test/material/about/about_list_tile.0_test.dart','examples/api/test/material/tab_controller/tab_controller.1_test.dart','examples/api/test/material/selection_area/selection_area.0_test.dart','examples/api/test/material/scaffold/scaffold.end_drawer.0_test.dart','examples/api/test/material/scaffold/scaffold.drawer.0_test.dart','examples/api/test/material/scaffold/scaffold.1_test.dart','examples/api/test/material/scaffold/scaffold.of.0_test.dart','examples/api/test/material/scaffold/scaffold_messenger.of.0_test.dart','examples/api/test/material/scaffold/scaffold_messenger.0_test.dart','examples/api/test/material/scaffold/scaffold.0_test.dart','examples/api/test/material/scaffold/scaffold_state.show_bottom_sheet.0_test.dart','examples/api/test/material/scaffold/scaffold.2_test.dart','examples/api/test/material/scaffold/scaffold_messenger_state.show_material_banner.0_test.dart','examples/api/test/material/scaffold/scaffold.of.1_test.dart','examples/api/test/material/scaffold/scaffold_messenger.of.1_test.dart','examples/api/test/material/scaffold/scaffold_messenger_state.show_snack_bar.0_test.dart','examples/api/test/material/segmented_button/segmented_button.0_test.dart','examples/api/test/material/app_bar/sliver_app_bar.2_test.dart','examples/api/test/material/app_bar/sliver_app_bar.3_test.dart','examples/api/test/material/banner/material_banner.1_test.dart','examples/api/test/material/banner/material_banner.0_test.dart','examples/api/test/material/checkbox/checkbox.1_test.dart','examples/api/test/material/checkbox/checkbox.0_test.dart','examples/api/test/material/navigation_rail/navigation_rail.extended_animation.0_test.dart','examples/api/test/material/text_button/text_button.0_test.dart','examples/api/test/rendering/growth_direction/growth_direction.0_test.dart','examples/api/test/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.0_test.dart','examples/api/test/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.1_test.dart','examples/api/test/rendering/scroll_direction/scroll_direction.0_test.dart','examples/api/test/painting/axis_direction/axis_direction.0_test.dart','examples/api/test/painting/linear_border/linear_border.0_test.dart','examples/api/test/painting/gradient/linear_gradient.0_test.dart','examples/api/test/painting/star_border/star_border.0_test.dart','examples/api/test/painting/borders/border_side.stroke_align.0_test.dart','examples/api/test/widgets/autocomplete/raw_autocomplete.focus_node.0_test.dart','examples/api/test/widgets/autocomplete/raw_autocomplete.2_test.dart','examples/api/test/widgets/autocomplete/raw_autocomplete.1_test.dart','examples/api/test/widgets/autocomplete/raw_autocomplete.0_test.dart','examples/api/test/widgets/navigator/navigator.restorable_push_and_remove_until.0_test.dart','examples/api/test/widgets/navigator/navigator.0_test.dart','examples/api/test/widgets/navigator/navigator.restorable_push.0_test.dart','examples/api/test/widgets/navigator/navigator_state.restorable_push_replacement.0_test.dart','examples/api/test/widgets/navigator/navigator_state.restorable_push_and_remove_until.0_test.dart','examples/api/test/widgets/navigator/navigator.restorable_push_replacement.0_test.dart','examples/api/test/widgets/navigator/restorable_route_future.0_test.dart','examples/api/test/widgets/navigator/navigator_state.restorable_push.0_test.dart','examples/api/test/widgets/focus_manager/focus_node.unfocus.0_test.dart','examples/api/test/widgets/focus_manager/focus_node.0_test.dart','examples/api/test/widgets/framework/build_owner.0_test.dart','examples/api/test/widgets/framework/error_widget.0_test.dart','examples/api/test/widgets/inherited_theme/inherited_theme.0_test.dart','examples/api/test/widgets/sliver/decorated_sliver.0_test.dart','examples/api/test/widgets/autofill/autofill_group.0_test.dart','examples/api/test/widgets/drag_target/draggable.0_test.dart','examples/api/test/widgets/shared_app_data/shared_app_data.1_test.dart','examples/api/test/widgets/shared_app_data/shared_app_data.0_test.dart','examples/api/test/widgets/form/form.0_test.dart','examples/api/test/widgets/nested_scroll_view/nested_scroll_view_state.0_test.dart','examples/api/test/widgets/nested_scroll_view/nested_scroll_view.2_test.dart','examples/api/test/widgets/nested_scroll_view/nested_scroll_view.1_test.dart','examples/api/test/widgets/nested_scroll_view/nested_scroll_view.0_test.dart','examples/api/test/widgets/scroll_position/scroll_metrics_notification.0_test.dart','examples/api/test/widgets/media_query/media_query_data.system_gesture_insets.0_test.dart','examples/api/test/widgets/async/stream_builder.0_test.dart','examples/api/test/widgets/async/future_builder.0_test.dart','examples/api/test/widgets/restoration_properties/restorable_value.0_test.dart','examples/api/test/widgets/animated_size/animated_size.0_test.dart','examples/api/test/widgets/table/table.0_test.dart','examples/api/test/widgets/animated_switcher/animated_switcher.0_test.dart','examples/api/test/widgets/transitions/relative_positioned_transition.0_test.dart','examples/api/test/widgets/transitions/positioned_transition.0_test.dart','examples/api/test/widgets/transitions/sliver_fade_transition.0_test.dart','examples/api/test/widgets/transitions/align_transition.0_test.dart','examples/api/test/widgets/transitions/fade_transition.0_test.dart','examples/api/test/widgets/transitions/animated_builder.0_test.dart','examples/api/test/widgets/transitions/rotation_transition.0_test.dart','examples/api/test/widgets/transitions/animated_widget.0_test.dart','examples/api/test/widgets/transitions/slide_transition.0_test.dart','examples/api/test/widgets/transitions/listenable_builder.2_test.dart','examples/api/test/widgets/transitions/scale_transition.0_test.dart','examples/api/test/widgets/transitions/default_text_style_transition.0_test.dart','examples/api/test/widgets/transitions/decorated_box_transition.0_test.dart','examples/api/test/widgets/transitions/size_transition.0_test.dart','examples/api/test/widgets/animated_list/animated_list.0_test.dart','examples/api/test/widgets/focus_traversal/focus_traversal_group.0_test.dart','examples/api/test/widgets/focus_traversal/ordered_traversal_policy.0_test.dart','examples/api/test/widgets/image/image.error_builder.0_test.dart','examples/api/test/widgets/image/image.frame_builder.0_test.dart','examples/api/test/widgets/image/image.loading_builder.0_test.dart','examples/api/test/widgets/shortcuts/logical_key_set.0_test.dart','examples/api/test/widgets/shortcuts/shortcuts.0_test.dart','examples/api/test/widgets/shortcuts/single_activator.single_activator.0_test.dart','examples/api/test/widgets/shortcuts/shortcuts.1_test.dart','examples/api/test/widgets/shortcuts/character_activator.0_test.dart','examples/api/test/widgets/shortcuts/callback_shortcuts.0_test.dart','examples/api/test/widgets/page_storage/page_storage.0_test.dart','examples/api/test/widgets/scrollbar/raw_scrollbar.1_test.dart','examples/api/test/widgets/scrollbar/raw_scrollbar.2_test.dart','examples/api/test/widgets/scrollbar/raw_scrollbar.desktop.0_test.dart','examples/api/test/widgets/scrollbar/raw_scrollbar.shape.0_test.dart','examples/api/test/widgets/scrollbar/raw_scrollbar.0_test.dart','examples/api/test/widgets/sliver_fill/sliver_fill_remaining.2_test.dart','examples/api/test/widgets/sliver_fill/sliver_fill_remaining.1_test.dart','examples/api/test/widgets/sliver_fill/sliver_fill_remaining.3_test.dart','examples/api/test/widgets/sliver_fill/sliver_fill_remaining.0_test.dart','examples/api/test/widgets/interactive_viewer/interactive_viewer.constrained.0_test.dart','examples/api/test/widgets/interactive_viewer/interactive_viewer.transformation_controller.0_test.dart','examples/api/test/widgets/interactive_viewer/interactive_viewer.0_test.dart','examples/api/test/widgets/notification_listener/notification.0_test.dart','examples/api/test/widgets/gesture_detector/gesture_detector.1_test.dart','examples/api/test/widgets/gesture_detector/gesture_detector.0_test.dart','examples/api/test/widgets/editable_text/text_editing_controller.0_test.dart','examples/api/test/widgets/editable_text/editable_text.on_changed.0_test.dart','examples/api/test/widgets/undo_history/undo_history_controller.0_test.dart','examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.1_test.dart','examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.0_test.dart','examples/api/test/widgets/tween_animation_builder/tween_animation_builder.0_test.dart','examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.1_test.dart','examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.0_test.dart','examples/api/test/widgets/overflow_bar/overflow_bar.0_test.dart','examples/api/test/widgets/restoration/restoration_mixin.0_test.dart','examples/api/test/widgets/actions/actions.0_test.dart','examples/api/test/widgets/actions/action_listener.0_test.dart','examples/api/test/widgets/actions/focusable_action_detector.0_test.dart','examples/api/test/widgets/color_filter/color_filtered.0_test.dart','examples/api/test/widgets/focus_scope/focus.2_test.dart','examples/api/test/widgets/focus_scope/focus.0_test.dart','examples/api/test/widgets/focus_scope/focus.1_test.dart','examples/api/test/widgets/focus_scope/focus_scope.0_test.dart','examples/api/test/widgets/implicit_animations/animated_fractionally_sized_box.0_test.dart','examples/api/test/widgets/implicit_animations/animated_align.0_test.dart','examples/api/test/widgets/implicit_animations/animated_positioned.0_test.dart','examples/api/test/widgets/implicit_animations/animated_padding.0_test.dart','examples/api/test/widgets/implicit_animations/sliver_animated_opacity.0_test.dart','examples/api/test/widgets/implicit_animations/animated_container.0_test.dart','examples/api/test/widgets/dismissible/dismissible.0_test.dart','examples/api/test/widgets/scroll_view/custom_scroll_view.1_test.dart','examples/api/test/widgets/preferred_size/preferred_size.0_test.dart','examples/api/test/widgets/inherited_notifier/inherited_notifier.0_test.dart','examples/api/test/animation/curves/curve2_d.0_test.dart','examples/api/test/gestures/pointer_signal_resolver/pointer_signal_resolver.0_test.dart',};2 unmodified lines34567898 unmodified lines18192021222324252627282930314 unmodified lines3637383940414294 unmodified lines1371381391401411421431441451 unmodified line1471481491501511521531541551561571581591601611621631643 unmodified lines1681691701711721731741751762 unmodified lines1791801811821831841851861871881891901911921936 unmodified lines2002012022032042052062072082092102112122132142152162172182192202212222232242252262273 unmodified lines23123223323423523623723823924024136 unmodified lines2782792802812822832842852862872882892902912 unmodified lines// found in the LICENSE file.// To run this, from the root of the Flutter repository:// bin/cache/dart-sdk/bin/dart --enable-asserts dev/bots/check_code_samples.dartimport 'dart:io';8 unmodified linesfinal String _flutterRoot = path.dirname(path.dirname(path.dirname(_scriptLocation)));final String _exampleDirectoryPath = path.join(_flutterRoot, 'examples', 'api');final String _packageDirectoryPath = path.join(_flutterRoot, 'packages');final String _dartUIDirectoryPath = path.join(_flutterRoot,'bin','cache','pkg','sky_engine','lib',);final List<String> _knownUnlinkedExamples = <String>[// These are template files that aren't expected to be linked.4 unmodified linesvoid main(List<String> args) {final ArgParser argParser = ArgParser();argParser.addFlag('help', negatable: false, help: 'Print help for this command.');argParser.addOption('examples',valueHelp: 'path',94 unmodified lines// Get a list of all the example link paths that appear in the source files.final (Set<String> exampleLinks, Set<LinkInfo> malformedLinks) = getExampleLinks(packages);// Also add in any that might be found in the dart:ui directory.final (Set<String> uiExampleLinks, Set<LinkInfo> uiMalformedLinks) = getExampleLinks(dartUIPath,);exampleLinks.addAll(uiExampleLinks);malformedLinks.addAll(uiMalformedLinks);1 unmodified line// Get a list of the filenames that were not found in the source files.final List<String> missingFilenames = checkForMissingLinks(exampleFilenames, exampleLinks);// Get a list of any tests that are missing.final List<File> missingTests = checkForMissingTests(exampleFilenames);// Remove any that we know are exceptions (examples that aren't expected to be// linked into any source files). These are typically template files used to// generate new examples.missingFilenames.removeWhere((String file) => _knownUnlinkedExamples.contains(file));if (missingFilenames.isEmpty && missingTests.isEmpty && malformedLinks.isEmpty) {return true;}if (missingTests.isNotEmpty) {final StringBuffer buffer = StringBuffer('The following example test files are missing:\n');for (final File name in missingTests) {3 unmodified lines}if (missingFilenames.isNotEmpty) {final StringBuffer buffer = StringBuffer('The following examples are not linked from any source file API doc comments:\n',);for (final String name in missingFilenames) {buffer.writeln(' $name');}2 unmodified lines}if (malformedLinks.isNotEmpty) {final StringBuffer buffer = StringBuffer('The following malformed links were found in API doc comments:\n',);for (final LinkInfo link in malformedLinks) {buffer.writeln(' $link');}buffer.write('Correct the formatting of these links so that they match the exact pattern:\n'r" r'\*\* See code in (?<path>.+) \*\*'",);foundError(buffer.toString().split('\n'));}6 unmodified lines}List<File> getFiles(Directory directory, [Pattern? filenamePattern]) {final List<File> filenames =directory.listSync(recursive: true).map((FileSystemEntity entity) {if (entity is File) {return entity;} else {return null;}}).where((File? filename) =>filename != null &&(filenamePattern == null || filename.absolute.path.contains(filenamePattern)),).map<File>((File? s) => s!).toList();return filenames;}List<File> getExampleFilenames(Directory directory) {return getFiles(directory.childDirectory('lib'), RegExp(r'\d+\.dart$'));}(Set<String>, Set<LinkInfo>) getExampleLinks(Directory searchDirectory) {3 unmodified linesfinal RegExp validExampleRe = RegExp(r'\*\* See code in (?<path>.+) \*\*');// Looks for some common broken versions of example links. This looks for// something that is at minimum "///*seecode<something>*" to indicate that it// looks like an example link. It should be narrowed if we start getting false// positives.final RegExp malformedLinkRe = RegExp(r'^(?<malformed>\s*///\s*\*\*?\s*[sS][eE][eE]\s*[Cc][Oo][Dd][Ee].+\*\*?)',);for (final File file in files) {final String contents = file.readAsStringSync();final List<String> lines = contents.split('\n');36 unmodified linesreturn '${path.join(testPath, path.basenameWithoutExtension(example.path))}_test.dart';}List<File> checkForMissingTests(List<File> exampleFilenames) {final List<File> missingTests = <File>[];for (final File example in exampleFilenames) {final File testFile = filesystem.file(getTestNameForExample(example, examples));if (!testFile.existsSync()) {missingTests.add(testFile);}}return missingTests;}}
28 unmodified lines2930313233343528 unmodified linesrm "$log_file"elseall_builds_ok=0echo "View https://github.com/flutter/flutter/blob/master/dev/bots/README.md for steps to resolve this failed build test." >> ${log_file}echoecho "Log left in $log_file."echo28 unmodified lines2930313233343528 unmodified linesrm "$log_file"elseall_builds_ok=0echo "View https://github.com/flutter/flutter/blob/main/dev/bots/README.md for steps to resolve this failed build test." >> ${log_file}echoecho "Log left in $log_file."echo
106 unmodified lines107108109110111112113114115116117118119120121122123124125126127128129106 unmodified linesfi}function generate_docs() {# Install and activate dartdoc.# When updating to a new dartdoc version, please also update# `dartdoc_options.yaml` to include newly introduced error and warning types."$DART" pub global activate dartdoc 8.0.2# Install and activate the snippets tool, which resides in the# assets-for-api-docs repo:# https://github.com/flutter/assets-for-api-docs/tree/master/packages/snippets"$DART" pub global activate snippets 0.4.0# This script generates a unified doc set, and creates# a custom index.html, placing everything into DOC_DIR.# Make sure that create_api_docs.dart has all the dependencies it needs.(cd "$FLUTTER_ROOT/dev/tools" && "$FLUTTER" pub get)(cd "$FLUTTER_ROOT" && "$DART" --disable-dart-dev --enable-asserts "$FLUTTER_ROOT/dev/tools/create_api_docs.dart" --output-dir="$DOC_DIR")}function main() {106 unmodified lines107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138106 unmodified linesfi}function build_snippets_tool() (local snippets_dir="$FLUTTER_ROOT/dev/snippets"local output_dir="$FLUTTER_BIN/cache/artifacts/snippets"echo "Building snippets tool executable."command cd "$snippets_dir"mkdir -p "$output_dir"dart pub getdart compile exe -o "$output_dir/snippets" bin/snippets.dart)function generate_docs() {# Install and activate dartdoc.# When updating to a new dartdoc version, please also update# `dartdoc_options.yaml` to include newly introduced error and warning types."$DART" pub global activate dartdoc 8.3.0# Build and install the snippets tool, which resides in# the dev/docs/snippets directory.build_snippets_tool# This script generates a unified doc set, and creates# a custom index.html, placing everything into DOC_DIR.# Make sure that create_api_docs.dart has all the dependencies it needs.(cd "$FLUTTER_ROOT/dev/tools" && "$FLUTTER" pub get)(cd "$FLUTTER_ROOT" && "$DART" --enable-asserts "$FLUTTER_ROOT/dev/tools/create_api_docs.dart" --output-dir="$DOC_DIR")}function main() {
31 unmodified lines32333435363738394041424344454647484950515253545556575859606162636419 unmodified lines848586878889905 unmodified lines9697989910010110210319 unmodified lines12312412512612712812913013113213313413513613713813914014114214331 unmodified lines}final String checkoutPath = Platform.environment['SDK_CHECKOUT_PATH']!;final String docsPath = path.join(checkoutPath, 'dev', 'docs');await runProcessWithValidations(<String>['curl','-L','https://storage.googleapis.com/flutter_infra_release/flutter/$revision/api_docs.zip','--output',zipDestination,'--fail',],docsPath,);// Unzip to docs folder.await runProcessWithValidations(<String>['unzip','-o',zipDestination,],docsPath,);// Generate versions file.await runProcessWithValidations(<String>['flutter', '--version'],docsPath,);final File versionFile = File('version');final String version = versionFile.readAsStringSync();// Recreate footer19 unmodified linesif (fullLength) {return gitRevision;}return gitRevision.length > kGitRevisionLength ? gitRevision.substring(0, kGitRevisionLength) : gitRevision;}/// Wrapper function to run a subprocess checking exit code and printing stderr and stdout.5 unmodified lines@visibleForTesting ProcessManager processManager = const LocalProcessManager(),bool verbose = true,}) async {final ProcessResult result =processManager.runSync(command, stdoutEncoding: utf8, workingDirectory: workingDirectory);if (result.exitCode == 0) {if (verbose) {print('stdout: ${result.stdout}');19 unmodified linesif (luciBranch != null && luciBranch.trim().isNotEmpty) {return luciBranch.trim();}final ProcessResult gitResult = processManager.runSync(<String>['git', 'status', '-b', '--porcelain']);if (gitResult.exitCode != 0) {throw 'git status exit with non-zero exit code: ${gitResult.exitCode}';}final RegExpMatch? gitBranchMatch = gitBranchRegexp.firstMatch((gitResult.stdout as String).trim().split('\n').first);return gitBranchMatch == null ? '' : gitBranchMatch.group(1)!.split('...').first;}/// Updates the footer of the api documentation with the correct branch and versions./// [footerPath] is the path to the location of the footer js file and [version] is a/// string with the version calculated by the flutter tool.Future<void> createFooter(File footerFile, String version,{@visibleForTesting String? timestampParam,@visibleForTesting String? branchParam,@visibleForTesting String? revisionParam}) async {final String timestamp = timestampParam ?? DateFormat('yyyy-MM-dd HH:mm').format(DateTime.now());final String gitBranch = branchParam ?? await getBranchName();final String revision = revisionParam ?? await gitRevision();31 unmodified lines323334353637383940414243444546474849505119 unmodified lines7172737475767778795 unmodified lines858687888990919293949519 unmodified lines11511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414531 unmodified lines}final String checkoutPath = Platform.environment['SDK_CHECKOUT_PATH']!;final String docsPath = path.join(checkoutPath, 'dev', 'docs');await runProcessWithValidations(<String>['curl','-L','https://storage.googleapis.com/flutter_infra_release/flutter/$revision/api_docs.zip','--output',zipDestination,'--fail',], docsPath);// Unzip to docs folder.await runProcessWithValidations(<String>['unzip', '-o', zipDestination], docsPath);// Generate versions file.await runProcessWithValidations(<String>['flutter', '--version'], docsPath);final File versionFile = File('version');final String version = versionFile.readAsStringSync();// Recreate footer19 unmodified linesif (fullLength) {return gitRevision;}return gitRevision.length > kGitRevisionLength? gitRevision.substring(0, kGitRevisionLength): gitRevision;}/// Wrapper function to run a subprocess checking exit code and printing stderr and stdout.5 unmodified lines@visibleForTesting ProcessManager processManager = const LocalProcessManager(),bool verbose = true,}) async {final ProcessResult result = processManager.runSync(command,stdoutEncoding: utf8,workingDirectory: workingDirectory,);if (result.exitCode == 0) {if (verbose) {print('stdout: ${result.stdout}');19 unmodified linesif (luciBranch != null && luciBranch.trim().isNotEmpty) {return luciBranch.trim();}final ProcessResult gitResult = processManager.runSync(<String>['git','status','-b','--porcelain',]);if (gitResult.exitCode != 0) {throw 'git status exit with non-zero exit code: ${gitResult.exitCode}';}final RegExpMatch? gitBranchMatch = gitBranchRegexp.firstMatch((gitResult.stdout as String).trim().split('\n').first,);return gitBranchMatch == null ? '' : gitBranchMatch.group(1)!.split('...').first;}/// Updates the footer of the api documentation with the correct branch and versions./// [footerPath] is the path to the location of the footer js file and [version] is a/// string with the version calculated by the flutter tool.Future<void> createFooter(File footerFile,String version, {@visibleForTesting String? timestampParam,@visibleForTesting String? branchParam,@visibleForTesting String? revisionParam,}) async {final String timestamp = timestampParam ?? DateFormat('yyyy-MM-dd HH:mm').format(DateTime.now());final String gitBranch = branchParam ?? await getBranchName();final String revision = revisionParam ?? await gitRevision();
25 unmodified lines2627282930313233343536373839401 unmodified line424344454647484950515253545556575859606162636465666768697071727325 unmodified linesfinal ArgParser argParser = ArgParser();argParser.addOption('temp_dir',help: 'A location where temporary files may be written. Defaults to a ''directory in the system temp folder. Will write a few GiB of data, ''so it should have sufficient free space. If a temp_dir is not ''specified, then the default temp_dir will be created, used, and ''removed automatically.',);argParser.addOption('revision',help: 'The Flutter git repo revision to build the ''archive with. Must be the full 40-character hash. Required.');argParser.addOption('branch',allowed: Branch.values.map<String>((Branch branch) => branch.name),1 unmodified line);argParser.addOption('output',help: 'The path to the directory where the output archive should be ''written. If --output is not specified, the archive will be written to '"the current directory. If the output directory doesn't exist, it, and "'the path to it, will be created.',);argParser.addFlag('publish',help: 'If set, will publish the archive to Google Cloud Storage upon ''successful creation of the archive. Will publish under this ''directory: $baseUrl$releaseFolder',);argParser.addFlag('force',abbr: 'f',help: 'Overwrite a previously uploaded package.',);argParser.addFlag('dry_run',negatable: false,help: 'Prints gsutil commands instead of executing them.',);argParser.addFlag('help',negatable: false,help: 'Print help for this command.',);final ArgResults parsedArguments = argParser.parse(rawArguments);25 unmodified lines262728293031323334353637383940414243441 unmodified line464748495051525354555657585960616263646566676869707125 unmodified linesfinal ArgParser argParser = ArgParser();argParser.addOption('temp_dir',help:'A location where temporary files may be written. Defaults to a ''directory in the system temp folder. Will write a few GiB of data, ''so it should have sufficient free space. If a temp_dir is not ''specified, then the default temp_dir will be created, used, and ''removed automatically.',);argParser.addOption('revision',help:'The Flutter git repo revision to build the ''archive with. Must be the full 40-character hash. Required.',);argParser.addOption('branch',allowed: Branch.values.map<String>((Branch branch) => branch.name),1 unmodified line);argParser.addOption('output',help:'The path to the directory where the output archive should be ''written. If --output is not specified, the archive will be written to '"the current directory. If the output directory doesn't exist, it, and "'the path to it, will be created.',);argParser.addFlag('publish',help:'If set, will publish the archive to Google Cloud Storage upon ''successful creation of the archive. Will publish under this ''directory: $baseUrl$releaseFolder',);argParser.addFlag('force', abbr: 'f', help: 'Overwrite a previously uploaded package.');argParser.addFlag('dry_run',negatable: false,help: 'Prints gsutil commands instead of executing them.',);argParser.addFlag('help', negatable: false, help: 'Print help for this command.');final ArgResults parsedArguments = argParser.parse(rawArguments);
1 unmodified line234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677781 unmodified linedescription: Scripts which run on bots.environment:sdk: '>=3.2.0-0 <4.0.0'dependencies:analyzer: 6.3.0args: 2.4.2crypto: 3.0.3intl: 0.18.1file: 7.0.0flutter_devicelab:path: ../devicelabhttp_parser: 4.0.2meta: 1.11.0path: 1.9.0platform: 3.1.4process: 5.0.2test: 1.24.9_discoveryapis_commons: 1.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"_fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"archive: 3.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"checked_yaml: 2.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"gcloud: 0.8.11 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"googleapis: 3.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"googleapis_auth: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http: 0.13.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"json_annotation: 4.8.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"metrics_center: 1.0.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"petitparser: 6.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pubspec_parse: 1.2.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"retry: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"standard_message_codec: 0.0.1+4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"xml: 6.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"dev_dependencies:test_api: 0.6.1# PUBSPEC CHECKSUM: 65d51 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879801 unmodified linedescription: Scripts which run on bots.environment:sdk: ^3.7.0-0dependencies:analyzer: 7.3.0args: 2.7.0crypto: 3.0.6intl: 0.20.2file: 7.0.1flutter_devicelab:path: ../devicelabhttp_parser: 4.1.2meta: 1.16.0path: 1.9.1platform: 3.1.6process: 5.0.3test: 1.25.15_discoveryapis_commons: 1.0.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"_fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"archive: 3.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"checked_yaml: 2.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"gcloud: 0.8.18 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"google_identity_services_web: 0.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"googleapis: 12.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"googleapis_auth: 1.6.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"json_annotation: 4.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"metrics_center: 1.0.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"petitparser: 6.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pubspec_parse: 1.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"retry: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"standard_message_codec: 0.0.1+4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"xml: 6.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"dev_dependencies:test_api: 0.7.4# PUBSPEC CHECKSUM: e365
17 unmodified lines1819202122232457 unmodified lines828384858687881 unmodified line909192939495969798991001011 unmodified line10310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713811 unmodified lines1501511521531541551563 unmodified lines1601611621631641651661671681698 unmodified lines1781791801811821831845 unmodified lines1901911921931941951961972 unmodified lines20020120220320420520620720820921017 unmodified lines/// If `expectNonZeroExit` is false and the process exits with a non-zero exit/// code fails the test immediately by exiting the test process with exit code/// 1.Stream<String> runAndGetStdout(String executable, List<String> arguments, {String? workingDirectory,Map<String, String>? environment,bool expectNonZeroExit = false,57 unmodified lines////// `outputMode` controls where the standard output from the command process/// goes. See [OutputMode].Future<Command> startCommand(String executable, List<String> arguments, {String? workingDirectory,Map<String, String>? environment,OutputMode outputMode = OutputMode.print,1 unmodified linevoid Function(String, io.Process)? outputListener,}) async {final String relativeWorkingDir = path.relative(workingDirectory ?? io.Directory.current.path);final String commandDescription = '${path.relative(executable, from: workingDirectory)} ${arguments.join(' ')}';print('RUNNING: cd $cyan$relativeWorkingDir$reset; $green$commandDescription$reset');final Stopwatch time = Stopwatch()..start();print('workingDirectory: $workingDirectory, executable: $executable, arguments: $arguments');final io.Process process = await io.Process.start(executable, arguments,workingDirectory: workingDirectory,environment: environment,);1 unmodified lineprocess,time,process.stdout.transform<String>(const Utf8Decoder()).transform(const LineSplitter()).where((String line) => removeLine == null || !removeLine(line)).map<String>((String line) {final String formattedLine = '$line\n';if (outputListener != null) {outputListener(formattedLine, process);}switch (outputMode) {case OutputMode.print:print(line);case OutputMode.capture:break;}return line;}).join('\n'),process.stderr.transform<String>(const Utf8Decoder()).transform(const LineSplitter()).map<String>((String line) {switch (outputMode) {case OutputMode.print:print(line);case OutputMode.capture:break;}return line;}).join('\n'),);}11 unmodified lines////// `outputMode` controls where the standard output from the command process/// goes. See [OutputMode].Future<CommandResult> runCommand(String executable, List<String> arguments, {String? workingDirectory,Map<String, String>? environment,bool expectNonZeroExit = false,3 unmodified linesbool Function(String)? removeLine,void Function(String, io.Process)? outputListener,}) async {final String commandDescription = '${path.relative(executable, from: workingDirectory)} ${arguments.join(' ')}';final String relativeWorkingDir = workingDirectory ?? path.relative(io.Directory.current.path);final Command command = await startCommand(executable, arguments,workingDirectory: workingDirectory,environment: environment,outputMode: outputMode,8 unmodified linesawait command._savedStderr,);if ((result.exitCode == 0) == expectNonZeroExit || (expectedExitCode != null && result.exitCode != expectedExitCode)) {// Print the output when we get unexpected results (unless output was// printed already).switch (outputMode) {5 unmodified lines}final String allOutput = '${result.flattenedStdout}\n${result.flattenedStderr}';foundError(<String>[if (failureMessage != null)failureMessage,'${bold}Command: $green$commandDescription$reset',if (failureMessage == null)'$bold${red}Command exited with exit code ${result.exitCode} but expected ${expectNonZeroExit ? (expectedExitCode ?? 'non-zero') : 'zero'} exit code.$reset',2 unmodified lines'${bold}stdout and stderr output:\n$allOutput',]);} else {print('ELAPSED TIME: ${prettyPrintDuration(result.elapsedTime)} for $green$commandDescription$reset in $cyan$relativeWorkingDir$reset');}return result;}/// Specifies what to do with the command output from [runCommand] and [startCommand].enum OutputMode {/// Forwards standard output and standard error streams to the test process'17 unmodified lines18192021222324252657 unmodified lines8485868788899091921 unmodified line9495969798991001011021031041051061071081 unmodified line11011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414511 unmodified lines1571581591601611621631641653 unmodified lines1691701711721731741751761771781791801811821831841851861871881891908 unmodified lines1992002012022032042052065 unmodified lines2122132142152162172182 unmodified lines22122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125217 unmodified lines/// If `expectNonZeroExit` is false and the process exits with a non-zero exit/// code fails the test immediately by exiting the test process with exit code/// 1.Stream<String> runAndGetStdout(String executable,List<String> arguments, {String? workingDirectory,Map<String, String>? environment,bool expectNonZeroExit = false,57 unmodified lines////// `outputMode` controls where the standard output from the command process/// goes. See [OutputMode].Future<Command> startCommand(String executable,List<String> arguments, {String? workingDirectory,Map<String, String>? environment,OutputMode outputMode = OutputMode.print,1 unmodified linevoid Function(String, io.Process)? outputListener,}) async {final String relativeWorkingDir = path.relative(workingDirectory ?? io.Directory.current.path);final String commandDescription ='${path.relative(executable, from: workingDirectory)} ${arguments.join(' ')}';print('RUNNING: cd $cyan$relativeWorkingDir$reset; $green$commandDescription$reset');final Stopwatch time = Stopwatch()..start();print('workingDirectory: $workingDirectory, executable: $executable, arguments: $arguments');final io.Process process = await io.Process.start(executable,arguments,workingDirectory: workingDirectory,environment: environment,);1 unmodified lineprocess,time,process.stdout.transform<String>(const Utf8Decoder()).transform(const LineSplitter()).where((String line) => removeLine == null || !removeLine(line)).map<String>((String line) {final String formattedLine = '$line\n';if (outputListener != null) {outputListener(formattedLine, process);}switch (outputMode) {case OutputMode.print:print(line);case OutputMode.capture:break;}return line;}).join('\n'),process.stderr.transform<String>(const Utf8Decoder()).transform(const LineSplitter()).map<String>((String line) {switch (outputMode) {case OutputMode.print:print(line);case OutputMode.capture:break;}return line;}).join('\n'),);}11 unmodified lines////// `outputMode` controls where the standard output from the command process/// goes. See [OutputMode].Future<CommandResult> runCommand(String executable,List<String> arguments, {String? workingDirectory,Map<String, String>? environment,bool expectNonZeroExit = false,3 unmodified linesbool Function(String)? removeLine,void Function(String, io.Process)? outputListener,}) async {final String commandDescription ='${path.relative(executable, from: workingDirectory)} ${arguments.join(' ')}';final String relativeWorkingDir = workingDirectory ?? path.relative(io.Directory.current.path);if (dryRun) {printProgress(_prettyPrintRunCommand(executable, arguments, workingDirectory));return CommandResult._(0,Duration.zero,'$executable ${arguments.join(' ')}','Simulated execution due to --dry-run',);}final Command command = await startCommand(executable,arguments,workingDirectory: workingDirectory,environment: environment,outputMode: outputMode,8 unmodified linesawait command._savedStderr,);if ((result.exitCode == 0) == expectNonZeroExit ||(expectedExitCode != null && result.exitCode != expectedExitCode)) {// Print the output when we get unexpected results (unless output was// printed already).switch (outputMode) {5 unmodified lines}final String allOutput = '${result.flattenedStdout}\n${result.flattenedStderr}';foundError(<String>[if (failureMessage != null) failureMessage,'${bold}Command: $green$commandDescription$reset',if (failureMessage == null)'$bold${red}Command exited with exit code ${result.exitCode} but expected ${expectNonZeroExit ? (expectedExitCode ?? 'non-zero') : 'zero'} exit code.$reset',2 unmodified lines'${bold}stdout and stderr output:\n$allOutput',]);} else {print('ELAPSED TIME: ${prettyPrintDuration(result.elapsedTime)} for $green$commandDescription$reset in $cyan$relativeWorkingDir$reset',);}return result;}final String _flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(io.Platform.script))),);String _prettyPrintRunCommand(String executable, List<String> arguments, String? workingDirectory) {final StringBuffer output = StringBuffer();// Print CWD relative to the root.output.write('|> ');output.write(path.relative(executable, from: _flutterRoot));if (workingDirectory != null) {output.write(' (${path.relative(workingDirectory, from: _flutterRoot)})');}output.writeln(': ');output.writeAll(arguments.map((String a) => ' $a'), '\n');return output.toString();}/// Specifies what to do with the command output from [runCommand] and [startCommand].enum OutputMode {/// Forwards standard output and standard error streams to the test process'
19 unmodified lines202122232425262724 unmodified lines5253545556575859606162636465667 unmodified lines74757677787980818283848586878889909192939495969798994 unmodified lines10410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816931 unmodified lines20120220320420520620720820921 unmodified lines2312322332342352362372382392402412422432447 unmodified lines2522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812827 unmodified lines2902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333342 unmodified lines3373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913 unmodified lines3953963973983994004014024034044054064074084094104114127 unmodified lines4204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554563 unmodified lines4604614624634644654663 unmodified lines4704714724734744754764774786 unmodified lines4854864874884894904917 unmodified lines49950050150250350450550650750850951051151251351451551651712 unmodified lines53053153253353453553653753853954054154254354454554654754840 unmodified lines5895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246252 unmodified lines62862963063163263363463563620 unmodified lines6576586596606616626636646656666676686696706716726736746756766776786796801 unmodified line6826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117122 unmodified lines7157167177187197207217227236 unmodified lines7307317327337347357367 unmodified lines7447457467477487497507517527537547557567577587597607618 unmodified lines7707717727737747757767777787797807817827837847857867877887897907917921 unmodified line7947957967977987998008018028038048058068078088098108118128138141 unmodified line81681781881982082182282382482582682782882983083183283383483583683719 unmodified linesfinal String _testAppWebDirectory = path.join(_testAppDirectory, 'web');final String _appBuildDirectory = path.join(_testAppDirectory, 'build', 'web');final String _target = path.join('lib', 'service_worker_test.dart');final String _targetWithCachedResources = path.join('lib', 'service_worker_test_cached_resources.dart');final String _targetWithBlockedServiceWorkers = path.join('lib', 'service_worker_test_blocked_service_workers.dart');final String _targetPath = path.join(_testAppDirectory, _target);enum ServiceWorkerTestType {24 unmodified lines// to LUCI.await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withoutFlutterJs);await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJs);await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJsShort);await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent);await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJsTrustedTypesOn);await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJsNonceOn);await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withoutFlutterJs);await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withFlutterJs);await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withFlutterJsShort);await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent);await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withFlutterJsTrustedTypesOn);await runWebServiceWorkerTestWithGeneratedEntrypoint(headless: false);await runWebServiceWorkerTestWithBlockedServiceWorkers(headless: false);await runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: false);7 unmodified lines// Regression test for https://github.com/flutter/flutter/issues/109093.//// Tests the entrypoint that's generated by `flutter create`.Future<void> runWebServiceWorkerTestWithGeneratedEntrypoint({required bool headless,}) async {await _generateEntrypoint();await runWebServiceWorkerTestWithCachingResources(headless: headless, testType: ServiceWorkerTestType.generatedEntrypoint);}Future<void> _generateEntrypoint() async {final Directory tempDirectory = Directory.systemTemp.createTempSync('flutter_web_generated_entrypoint.');await runCommand(_flutter,<String>[ 'create', 'generated_entrypoint_test' ],workingDirectory: tempDirectory.path,);final File generatedEntrypoint = File(path.join(tempDirectory.path, 'generated_entrypoint_test', 'web', 'index.html'));final String generatedEntrypointCode = generatedEntrypoint.readAsStringSync();final File testEntrypoint = File(path.join(_testAppWebDirectory,_testTypeToIndexFile(ServiceWorkerTestType.generatedEntrypoint),));testEntrypoint.writeAsStringSync(generatedEntrypointCode);tempDirectory.deleteSync(recursive: true);}4 unmodified lines(await targetFile.readAsString()).replaceFirst(RegExp(r'CLOSE\?version=\d+'),'CLOSE?version=$version',));}String _testTypeToIndexFile(ServiceWorkerTestType type) {return switch (type) {ServiceWorkerTestType.blockedServiceWorkers => 'index_with_blocked_service_workers.html',ServiceWorkerTestType.withFlutterJs => 'index_with_flutterjs.html',ServiceWorkerTestType.withoutFlutterJs => 'index_without_flutterjs.html',ServiceWorkerTestType.withFlutterJsShort => 'index_with_flutterjs_short.html',ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent => 'index_with_flutterjs_entrypoint_loaded.html',ServiceWorkerTestType.withFlutterJsTrustedTypesOn => 'index_with_flutterjs_el_tt_on.html',ServiceWorkerTestType.withFlutterJsNonceOn => 'index_with_flutterjs_el_nonce.html',ServiceWorkerTestType.withFlutterJsCustomServiceWorkerVersion => 'index_with_flutterjs_custom_sw_version.html',ServiceWorkerTestType.generatedEntrypoint => 'generated_entrypoint.html',};}Future<void> _rebuildApp({ required int version, required ServiceWorkerTestType testType, required String target }) async {await _setAppVersion(version);await runCommand(_flutter,<String>[ 'clean' ],workingDirectory: _testAppDirectory,);await runCommand('cp',<String>[_testTypeToIndexFile(testType),'index.html',],workingDirectory: _testAppWebDirectory,);await runCommand(_flutter,<String>['build', 'web', '--web-resources-cdn', '--profile', '-t', target],workingDirectory: _testAppDirectory,environment: <String, String>{'FLUTTER_WEB': 'true',},);}void _expectRequestCounts(Map<String, int> expectedCounts,Map<String, int> requestedPathCounts,) {expect(requestedPathCounts, expectedCounts);requestedPathCounts.clear();}Future<void> _waitForAppToLoad(Map<String, int> waitForCounts,Map<String, int> requestedPathCounts,AppServer? server) async {print('Waiting for app to load $waitForCounts');await Future.any(<Future<Object?>>[() async {while (!waitForCounts.entries.every((MapEntry<String, int> entry) => (requestedPathCounts[entry.key] ?? 0) >= entry.value)) {await Future<void>.delayed(const Duration(milliseconds: 100));}}(),31 unmodified linesString? reportedVersion;Future<void> startAppServer({required String cacheControl,}) async {final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests();final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests();server = await AppServer.start(21 unmodified lines}// Preserve old index.html as index_og.html so we can restore it later for other testsawait runCommand('mv',<String>['index.html','index_og.html',],workingDirectory: _testAppWebDirectory,);final bool shouldExpectFlutterJs = testType != ServiceWorkerTestType.withoutFlutterJs;7 unmodified linesprint('Call update() on the current web worker');await startAppServer(cacheControl: 'max-age=0');await waitForAppToLoad(<String, int> {if (shouldExpectFlutterJs)'flutter.js': 1,'CLOSE': 1,});expect(reportedVersion, '1');reportedVersion = null;await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int> {if (shouldExpectFlutterJs)'flutter.js': 2,'CLOSE': 2,});expect(reportedVersion, '1');reportedVersion = null;await _rebuildApp(version: 2, testType: testType, target: _target);await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{if (shouldExpectFlutterJs)'flutter.js': 3,'CLOSE': 3,});expect(reportedVersion, '2');reportedVersion = null;7 unmodified linesprint('With cache: test first page load');await startAppServer(cacheControl: 'max-age=3600');await waitForAppToLoad(<String, int>{'CLOSE': 1,'flutter_service_worker.js': 1,});expectRequestCounts(<String, int>{// Even though the server is caching index.html is downloaded twice,// once by the initial page load, and once by the service worker.// Other resources are loaded once only by the service worker.'index.html': 2,if (shouldExpectFlutterJs)'flutter.js': 1,'main.dart.js': 1,'flutter_service_worker.js': 1,'assets/FontManifest.json': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'.if (!headless)...<String, int>{'manifest.json': 1,'favicon.ico': 1,},});expect(reportedVersion, '1');reportedVersion = null;print('With cache: test page reload');await server!.chrome.reloadPage();await waitForAppToLoad(<String, int>{'CLOSE': 1,'flutter_service_worker.js': 1,});expectRequestCounts(<String, int>{'flutter_service_worker.js': 1,'CLOSE': 1,});expect(reportedVersion, '1');reportedVersion = null;2 unmodified lines// Since we're caching, we need to ignore cache when reloading the page.await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{'CLOSE': 1,'flutter_service_worker.js': 2,});expectRequestCounts(<String, int>{'index.html': 2,if (shouldExpectFlutterJs)'flutter.js': 1,'flutter_service_worker.js': 2,'main.dart.js': 1,'assets/AssetManifest.bin.json': 1,'assets/FontManifest.json': 1,'CLOSE': 1,if (!headless)'favicon.ico': 1,});expect(reportedVersion, '2');reportedVersion = null;await server!.stop();//////////////////////////////////////////////////////// Non-caching server//////////////////////////////////////////////////////print('No cache: test first page load');await _rebuildApp(version: 3, testType: testType, target: _target);await startAppServer(cacheControl: 'max-age=0');await waitForAppToLoad(<String, int>{'CLOSE': 1,'flutter_service_worker.js': 1,});expectRequestCounts(<String, int>{'index.html': 2,if (shouldExpectFlutterJs)'flutter.js': 1,'main.dart.js': 1,'assets/FontManifest.json': 1,'flutter_service_worker.js': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'.if (!headless)...<String, int>{'manifest.json': 1,'favicon.ico': 1,},});expect(reportedVersion, '3');3 unmodified linesawait server!.chrome.reloadPage();await waitForAppToLoad(<String, int>{'CLOSE': 1,if (shouldExpectFlutterJs)'flutter.js': 1,'flutter_service_worker.js': 1,});expectRequestCounts(<String, int>{if (shouldExpectFlutterJs)'flutter.js': 1,'flutter_service_worker.js': 1,'CLOSE': 1,if (!headless)'manifest.json': 1,});expect(reportedVersion, '3');reportedVersion = null;7 unmodified lines// this test I wasn't able to figure out what's wrong with the way we run// Chrome from tests.await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{'CLOSE': 1,'flutter_service_worker.js': 1,});expectRequestCounts(<String, int>{'index.html': 2,if (shouldExpectFlutterJs)'flutter.js': 1,'flutter_service_worker.js': 2,'main.dart.js': 1,'assets/AssetManifest.bin.json': 1,'assets/FontManifest.json': 1,'CLOSE': 1,if (!headless)...<String, int>{'manifest.json': 1,'favicon.ico': 1,},});expect(reportedVersion, '4');reportedVersion = null;} finally {await runCommand('mv',<String>['index_og.html','index.html',],workingDirectory: _testAppWebDirectory,);await _setAppVersion(1);await server?.stop();}3 unmodified linesFuture<void> runWebServiceWorkerTestWithCachingResources({required bool headless,required ServiceWorkerTestType testType}) async {final Map<String, int> requestedPathCounts = <String, int>{};void expectRequestCounts(Map<String, int> expectedCounts) =>3 unmodified linesFuture<void> waitForAppToLoad(Map<String, int> waitForCounts) async =>_waitForAppToLoad(waitForCounts, requestedPathCounts, server);Future<void> startAppServer({required String cacheControl,}) async {final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests();final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests();server = await AppServer.start(6 unmodified linesbrowserDebugPort: browserDebugPort,appDirectory: _appBuildDirectory,additionalRequestHandlers: <Handler>[(Request request) {final String requestedPath = request.url.path;requestedPathCounts.putIfAbsent(requestedPath, () => 0);requestedPathCounts[requestedPath] = requestedPathCounts[requestedPath]! + 1;7 unmodified lines}// Preserve old index.html as index_og.html so we can restore it later for other testsawait runCommand('mv',<String>['index.html','index_og.html',],workingDirectory: _testAppWebDirectory,);final bool shouldExpectFlutterJs = testType != ServiceWorkerTestType.withoutFlutterJs;print('BEGIN runWebServiceWorkerTestWithCachingResources(headless: $headless, testType: $testType)');try {//////////////////////////////////////////////////////// Caching server12 unmodified lines// once by the initial page load, and once by the service worker.// Other resources are loaded once only by the service worker.'index.html': 2,if (shouldExpectFlutterJs)'flutter.js': 1,'main.dart.js': 1,'flutter_service_worker.js': 1,'assets/FontManifest.json': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'.if (!headless)...<String, int>{'manifest.json': 1,'favicon.ico': 1,},});print('With cache: test first page reload');40 unmodified lines});expectRequestCounts(<String, int>{'index.html': 2,if (shouldExpectFlutterJs)'flutter.js': 1,'main.dart.js': 1,'flutter_service_worker.js': 2,'assets/FontManifest.json': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'.if (!headless)...<String, int>{'favicon.ico': 1,},});} finally {await runCommand('mv',<String>['index_og.html','index.html',],workingDirectory: _testAppWebDirectory,);await server?.stop();}print('END runWebServiceWorkerTestWithCachingResources(headless: $headless, testType: $testType)');}Future<void> runWebServiceWorkerTestWithBlockedServiceWorkers({required bool headless}) async {final Map<String, int> requestedPathCounts = <String, int>{};void expectRequestCounts(Map<String, int> expectedCounts) =>_expectRequestCounts(expectedCounts, requestedPathCounts);2 unmodified linesFuture<void> waitForAppToLoad(Map<String, int> waitForCounts) async =>_waitForAppToLoad(waitForCounts, requestedPathCounts, server);Future<void> startAppServer({required String cacheControl,}) async {final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests();final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests();server = await AppServer.start(20 unmodified lines}// Preserve old index.html as index_og.html so we can restore it later for other testsawait runCommand('mv',<String>['index.html','index_og.html',],workingDirectory: _testAppWebDirectory,);print('BEGIN runWebServiceWorkerTestWithBlockedServiceWorkers(headless: $headless)');try {await _rebuildApp(version: 1, testType: ServiceWorkerTestType.blockedServiceWorkers, target: _targetWithBlockedServiceWorkers);print('Ensure app starts (when service workers are blocked)');await startAppServer(cacheControl: 'max-age=3600');await waitForAppToLoad(<String, int>{'CLOSE': 1,});expectRequestCounts(<String, int>{'index.html': 1,'flutter.js': 1,1 unmodified line'assets/FontManifest.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'.if (!headless)...<String, int>{'manifest.json': 1,'favicon.ico': 1,},});} finally {await runCommand('mv',<String>['index_og.html','index.html',],workingDirectory: _testAppWebDirectory,);await server?.stop();}print('END runWebServiceWorkerTestWithBlockedServiceWorkers(headless: $headless)');}/// Regression test for https://github.com/flutter/flutter/issues/130212.Future<void> runWebServiceWorkerTestWithCustomServiceWorkerVersion({required bool headless,}) async {final Map<String, int> requestedPathCounts = <String, int>{};void expectRequestCounts(Map<String, int> expectedCounts) =>_expectRequestCounts(expectedCounts, requestedPathCounts);2 unmodified linesFuture<void> waitForAppToLoad(Map<String, int> waitForCounts) async =>_waitForAppToLoad(waitForCounts, requestedPathCounts, server);Future<void> startAppServer({required String cacheControl,}) async {final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests();final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests();server = await AppServer.start(6 unmodified linesbrowserDebugPort: browserDebugPort,appDirectory: _appBuildDirectory,additionalRequestHandlers: <Handler>[(Request request) {final String requestedPath = request.url.path;requestedPathCounts.putIfAbsent(requestedPath, () => 0);requestedPathCounts[requestedPath] = requestedPathCounts[requestedPath]! + 1;7 unmodified lines}// Preserve old index.html as index_og.html so we can restore it later for other testsawait runCommand('mv',<String>['index.html','index_og.html',],workingDirectory: _testAppWebDirectory,);print('BEGIN runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: $headless)');try {await _rebuildApp(version: 1, testType: ServiceWorkerTestType.withFlutterJsCustomServiceWorkerVersion, target: _target);print('Test page load');await startAppServer(cacheControl: 'max-age=0');8 unmodified lines'main.dart.js': 1,'CLOSE': 1,'flutter_service_worker.js': 1,'assets/FontManifest.json': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'.if (!headless)...<String, int>{'manifest.json': 1,'favicon.ico': 1,},});print('Test page reload, ensure service worker is not reloaded');await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{'CLOSE': 1,'flutter.js': 1,});expectRequestCounts(<String, int>{'index.html': 1,'flutter.js': 1,1 unmodified line'assets/FontManifest.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'.if (!headless)...<String, int>{'manifest.json': 1,'favicon.ico': 1,},});print('Test page reload after rebuild, ensure service worker is not reloaded');await _rebuildApp(version: 1, testType: ServiceWorkerTestType.withFlutterJsCustomServiceWorkerVersion, target: _target);await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{'CLOSE': 1,'flutter.js': 1,});expectRequestCounts(<String, int>{'index.html': 1,'flutter.js': 1,1 unmodified line'assets/FontManifest.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'.if (!headless)...<String, int>{'manifest.json': 1,'favicon.ico': 1,},});} finally {await runCommand('mv',<String>['index_og.html','index.html',],workingDirectory: _testAppWebDirectory,);await server?.stop();}print('END runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: $headless)');19 unmodified lines202122232425262728293031323324 unmodified lines5859606162636465666768697071727374757677787980818283848586878889909192939495969798997 unmodified lines1071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371384 unmodified lines14314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620731 unmodified lines23924024124224324424521 unmodified lines2672682692702712722732742752767 unmodified lines2842852862872882892902912922932942952962972982993003013027 unmodified lines3103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403412 unmodified lines3443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863 unmodified lines3903913923933943953963973983994004014024034047 unmodified lines4124134144154164174184194204214224234244254264274284294304314324334344354364373 unmodified lines4414424434444454464473 unmodified lines4514524534544554564576 unmodified lines4644654664674684694707 unmodified lines47847948048148248348448548648748848949049149249349449512 unmodified lines50850951051151251351451551651751851952052152240 unmodified lines5635645655665675685695705715725735745755765775785795805815825835845855865875885895905915922 unmodified lines59559659759859960060120 unmodified lines6226236246256266276286296306316326336346356366376386396406416426431 unmodified line6456466476486496506516526536546556566576586596606616626636646652 unmodified lines6686696706716726736746 unmodified lines6816826836846856866877 unmodified lines6956966976986997007017027037047057067077087097107117128 unmodified lines7217227237247257267277287297307317327337347357367371 unmodified line7397407417427437447457467477487497507517527537547557561 unmodified line75875976076176276376476576676776876977077119 unmodified linesfinal String _testAppWebDirectory = path.join(_testAppDirectory, 'web');final String _appBuildDirectory = path.join(_testAppDirectory, 'build', 'web');final String _target = path.join('lib', 'service_worker_test.dart');final String _targetWithCachedResources = path.join('lib','service_worker_test_cached_resources.dart',);final String _targetWithBlockedServiceWorkers = path.join('lib','service_worker_test_blocked_service_workers.dart',);final String _targetPath = path.join(_testAppDirectory, _target);enum ServiceWorkerTestType {24 unmodified lines// to LUCI.await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withoutFlutterJs);await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJs);await runWebServiceWorkerTest(headless: false,testType: ServiceWorkerTestType.withFlutterJsShort,);await runWebServiceWorkerTest(headless: false,testType: ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent,);await runWebServiceWorkerTest(headless: false,testType: ServiceWorkerTestType.withFlutterJsTrustedTypesOn,);await runWebServiceWorkerTest(headless: false,testType: ServiceWorkerTestType.withFlutterJsNonceOn,);await runWebServiceWorkerTestWithCachingResources(headless: false,testType: ServiceWorkerTestType.withoutFlutterJs,);await runWebServiceWorkerTestWithCachingResources(headless: false,testType: ServiceWorkerTestType.withFlutterJs,);await runWebServiceWorkerTestWithCachingResources(headless: false,testType: ServiceWorkerTestType.withFlutterJsShort,);await runWebServiceWorkerTestWithCachingResources(headless: false,testType: ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent,);await runWebServiceWorkerTestWithCachingResources(headless: false,testType: ServiceWorkerTestType.withFlutterJsTrustedTypesOn,);await runWebServiceWorkerTestWithGeneratedEntrypoint(headless: false);await runWebServiceWorkerTestWithBlockedServiceWorkers(headless: false);await runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: false);7 unmodified lines// Regression test for https://github.com/flutter/flutter/issues/109093.//// Tests the entrypoint that's generated by `flutter create`.Future<void> runWebServiceWorkerTestWithGeneratedEntrypoint({required bool headless}) async {await _generateEntrypoint();await runWebServiceWorkerTestWithCachingResources(headless: headless,testType: ServiceWorkerTestType.generatedEntrypoint,);}Future<void> _generateEntrypoint() async {final Directory tempDirectory = Directory.systemTemp.createTempSync('flutter_web_generated_entrypoint.',);await runCommand(_flutter, <String>['create','generated_entrypoint_test',], workingDirectory: tempDirectory.path);final File generatedEntrypoint = File(path.join(tempDirectory.path, 'generated_entrypoint_test', 'web', 'index.html'),);final String generatedEntrypointCode = generatedEntrypoint.readAsStringSync();final File testEntrypoint = File(path.join(_testAppWebDirectory,_testTypeToIndexFile(ServiceWorkerTestType.generatedEntrypoint),),);testEntrypoint.writeAsStringSync(generatedEntrypointCode);tempDirectory.deleteSync(recursive: true);}4 unmodified lines(await targetFile.readAsString()).replaceFirst(RegExp(r'CLOSE\?version=\d+'),'CLOSE?version=$version',),);}String _testTypeToIndexFile(ServiceWorkerTestType type) {return switch (type) {ServiceWorkerTestType.blockedServiceWorkers => 'index_with_blocked_service_workers.html',ServiceWorkerTestType.withFlutterJs => 'index_with_flutterjs.html',ServiceWorkerTestType.withoutFlutterJs => 'index_without_flutterjs.html',ServiceWorkerTestType.withFlutterJsShort => 'index_with_flutterjs_short.html',ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent =>'index_with_flutterjs_entrypoint_loaded.html',ServiceWorkerTestType.withFlutterJsTrustedTypesOn => 'index_with_flutterjs_el_tt_on.html',ServiceWorkerTestType.withFlutterJsNonceOn => 'index_with_flutterjs_el_nonce.html',ServiceWorkerTestType.withFlutterJsCustomServiceWorkerVersion =>'index_with_flutterjs_custom_sw_version.html',ServiceWorkerTestType.generatedEntrypoint => 'generated_entrypoint.html',};}Future<void> _rebuildApp({required int version,required ServiceWorkerTestType testType,required String target,}) async {await _setAppVersion(version);await runCommand(_flutter, <String>['clean'], workingDirectory: _testAppDirectory);await runCommand('cp', <String>[_testTypeToIndexFile(testType),'index.html',], workingDirectory: _testAppWebDirectory);await runCommand(_flutter,<String>['build', 'web', '--web-resources-cdn', '--profile', '-t', target],workingDirectory: _testAppDirectory,environment: <String, String>{'FLUTTER_WEB': 'true'},);}void _expectRequestCounts(Map<String, int> expectedCounts, Map<String, int> requestedPathCounts) {expect(requestedPathCounts, expectedCounts);requestedPathCounts.clear();}Future<void> _waitForAppToLoad(Map<String, int> waitForCounts,Map<String, int> requestedPathCounts,AppServer? server,) async {print('Waiting for app to load $waitForCounts');await Future.any(<Future<Object?>>[() async {int tries = 1;while (!waitForCounts.entries.every((MapEntry<String, int> entry) => (requestedPathCounts[entry.key] ?? 0) >= entry.value,)) {if (tries++ % 20 == 0) {print('Still waiting. Requested so far: $requestedPathCounts');}await Future<void>.delayed(const Duration(milliseconds: 100));}}(),31 unmodified linesString? reportedVersion;Future<void> startAppServer({required String cacheControl}) async {final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests();final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests();server = await AppServer.start(21 unmodified lines}// Preserve old index.html as index_og.html so we can restore it later for other testsawait runCommand('mv', <String>['index.html','index_og.html',], workingDirectory: _testAppWebDirectory);final bool shouldExpectFlutterJs = testType != ServiceWorkerTestType.withoutFlutterJs;7 unmodified linesprint('Call update() on the current web worker');await startAppServer(cacheControl: 'max-age=0');await waitForAppToLoad(<String, int>{if (shouldExpectFlutterJs) 'flutter.js': 1, 'CLOSE': 1});expect(reportedVersion, '1');reportedVersion = null;await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{if (shouldExpectFlutterJs) 'flutter.js': 2, 'CLOSE': 2});expect(reportedVersion, '1');reportedVersion = null;await _rebuildApp(version: 2, testType: testType, target: _target);await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{if (shouldExpectFlutterJs) 'flutter.js': 3, 'CLOSE': 3});expect(reportedVersion, '2');reportedVersion = null;7 unmodified linesprint('With cache: test first page load');await startAppServer(cacheControl: 'max-age=3600');await waitForAppToLoad(<String, int>{'CLOSE': 1, 'flutter_service_worker.js': 1});expectRequestCounts(<String, int>{// Even though the server is caching index.html is downloaded twice,// once by the initial page load, and once by the service worker.// Other resources are loaded once only by the service worker.'index.html': 2,if (shouldExpectFlutterJs) 'flutter.js': 1,'main.dart.js': 1,'flutter_service_worker.js': 1,'flutter_bootstrap.js': 1,'assets/FontManifest.json': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.png'.if (!headless) ...<String, int>{'manifest.json': 1, 'favicon.png': 1},});expect(reportedVersion, '1');reportedVersion = null;print('With cache: test page reload');await server!.chrome.reloadPage();await waitForAppToLoad(<String, int>{'CLOSE': 1, 'flutter_service_worker.js': 1});expectRequestCounts(<String, int>{'flutter_service_worker.js': 1, 'CLOSE': 1});expect(reportedVersion, '1');reportedVersion = null;2 unmodified lines// Since we're caching, we need to ignore cache when reloading the page.await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{'CLOSE': 1, 'flutter_service_worker.js': 2});expectRequestCounts(<String, int>{'index.html': 2,if (shouldExpectFlutterJs) 'flutter.js': 1,'flutter_service_worker.js': 2,'flutter_bootstrap.js': 1,'main.dart.js': 1,'assets/AssetManifest.bin.json': 1,'assets/FontManifest.json': 1,'CLOSE': 1,if (!headless) 'favicon.png': 1,});expect(reportedVersion, '2');reportedVersion = null;await server!.stop();//////////////////////////////////////////////////////// Non-caching server//////////////////////////////////////////////////////print('No cache: test first page load');await _rebuildApp(version: 3, testType: testType, target: _target);await startAppServer(cacheControl: 'max-age=0');await waitForAppToLoad(<String, int>{'CLOSE': 1, 'flutter_service_worker.js': 1});expectRequestCounts(<String, int>{'index.html': 2,if (shouldExpectFlutterJs) 'flutter.js': 1,'main.dart.js': 1,'assets/FontManifest.json': 1,'flutter_service_worker.js': 1,'flutter_bootstrap.js': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.png'.if (!headless) ...<String, int>{'manifest.json': 1, 'favicon.png': 1},});expect(reportedVersion, '3');3 unmodified linesawait server!.chrome.reloadPage();await waitForAppToLoad(<String, int>{'CLOSE': 1,if (shouldExpectFlutterJs) 'flutter.js': 1,'flutter_service_worker.js': 1,});expectRequestCounts(<String, int>{if (shouldExpectFlutterJs) 'flutter.js': 1,'flutter_service_worker.js': 1,'CLOSE': 1,if (!headless) 'manifest.json': 1,});expect(reportedVersion, '3');reportedVersion = null;7 unmodified lines// this test I wasn't able to figure out what's wrong with the way we run// Chrome from tests.await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{'CLOSE': 1, 'flutter_service_worker.js': 1});expectRequestCounts(<String, int>{'index.html': 2,if (shouldExpectFlutterJs) 'flutter.js': 1,'flutter_service_worker.js': 2,'flutter_bootstrap.js': 1,'main.dart.js': 1,'assets/AssetManifest.bin.json': 1,'assets/FontManifest.json': 1,'CLOSE': 1,if (!headless) ...<String, int>{'manifest.json': 1, 'favicon.png': 1},});expect(reportedVersion, '4');reportedVersion = null;} finally {await runCommand('mv', <String>['index_og.html','index.html',], workingDirectory: _testAppWebDirectory);await _setAppVersion(1);await server?.stop();}3 unmodified linesFuture<void> runWebServiceWorkerTestWithCachingResources({required bool headless,required ServiceWorkerTestType testType,}) async {final Map<String, int> requestedPathCounts = <String, int>{};void expectRequestCounts(Map<String, int> expectedCounts) =>3 unmodified linesFuture<void> waitForAppToLoad(Map<String, int> waitForCounts) async =>_waitForAppToLoad(waitForCounts, requestedPathCounts, server);Future<void> startAppServer({required String cacheControl}) async {final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests();final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests();server = await AppServer.start(6 unmodified linesbrowserDebugPort: browserDebugPort,appDirectory: _appBuildDirectory,additionalRequestHandlers: <Handler>[(Request request) {final String requestedPath = request.url.path;requestedPathCounts.putIfAbsent(requestedPath, () => 0);requestedPathCounts[requestedPath] = requestedPathCounts[requestedPath]! + 1;7 unmodified lines}// Preserve old index.html as index_og.html so we can restore it later for other testsawait runCommand('mv', <String>['index.html','index_og.html',], workingDirectory: _testAppWebDirectory);final bool usesFlutterBootstrapJs = testType == ServiceWorkerTestType.generatedEntrypoint;final bool shouldExpectFlutterJs =!usesFlutterBootstrapJs && testType != ServiceWorkerTestType.withoutFlutterJs;print('BEGIN runWebServiceWorkerTestWithCachingResources(headless: $headless, testType: $testType)',);try {//////////////////////////////////////////////////////// Caching server12 unmodified lines// once by the initial page load, and once by the service worker.// Other resources are loaded once only by the service worker.'index.html': 2,if (shouldExpectFlutterJs) 'flutter.js': 1,'main.dart.js': 1,'flutter_service_worker.js': 1,'flutter_bootstrap.js': usesFlutterBootstrapJs ? 2 : 1,'assets/FontManifest.json': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.png'.if (!headless) ...<String, int>{'manifest.json': 1, 'favicon.png': 1},});print('With cache: test first page reload');40 unmodified lines});expectRequestCounts(<String, int>{'index.html': 2,if (shouldExpectFlutterJs) 'flutter.js': 1,'main.dart.js': 1,'flutter_service_worker.js': 2,'flutter_bootstrap.js': usesFlutterBootstrapJs ? 2 : 1,'assets/FontManifest.json': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.png'.if (!headless) ...<String, int>{'favicon.png': 1},});} finally {await runCommand('mv', <String>['index_og.html','index.html',], workingDirectory: _testAppWebDirectory);await server?.stop();}print('END runWebServiceWorkerTestWithCachingResources(headless: $headless, testType: $testType)',);}Future<void> runWebServiceWorkerTestWithBlockedServiceWorkers({required bool headless}) async {final Map<String, int> requestedPathCounts = <String, int>{};void expectRequestCounts(Map<String, int> expectedCounts) =>_expectRequestCounts(expectedCounts, requestedPathCounts);2 unmodified linesFuture<void> waitForAppToLoad(Map<String, int> waitForCounts) async =>_waitForAppToLoad(waitForCounts, requestedPathCounts, server);Future<void> startAppServer({required String cacheControl}) async {final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests();final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests();server = await AppServer.start(20 unmodified lines}// Preserve old index.html as index_og.html so we can restore it later for other testsawait runCommand('mv', <String>['index.html','index_og.html',], workingDirectory: _testAppWebDirectory);print('BEGIN runWebServiceWorkerTestWithBlockedServiceWorkers(headless: $headless)');try {await _rebuildApp(version: 1,testType: ServiceWorkerTestType.blockedServiceWorkers,target: _targetWithBlockedServiceWorkers,);print('Ensure app starts (when service workers are blocked)');await startAppServer(cacheControl: 'max-age=3600');await waitForAppToLoad(<String, int>{'CLOSE': 1});expectRequestCounts(<String, int>{'index.html': 1,'flutter.js': 1,1 unmodified line'assets/FontManifest.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.png'.if (!headless) ...<String, int>{'manifest.json': 1, 'favicon.png': 1},});} finally {await runCommand('mv', <String>['index_og.html','index.html',], workingDirectory: _testAppWebDirectory);await server?.stop();}print('END runWebServiceWorkerTestWithBlockedServiceWorkers(headless: $headless)');}/// Regression test for https://github.com/flutter/flutter/issues/130212.Future<void> runWebServiceWorkerTestWithCustomServiceWorkerVersion({required bool headless}) async {final Map<String, int> requestedPathCounts = <String, int>{};void expectRequestCounts(Map<String, int> expectedCounts) =>_expectRequestCounts(expectedCounts, requestedPathCounts);2 unmodified linesFuture<void> waitForAppToLoad(Map<String, int> waitForCounts) async =>_waitForAppToLoad(waitForCounts, requestedPathCounts, server);Future<void> startAppServer({required String cacheControl}) async {final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests();final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests();server = await AppServer.start(6 unmodified linesbrowserDebugPort: browserDebugPort,appDirectory: _appBuildDirectory,additionalRequestHandlers: <Handler>[(Request request) {final String requestedPath = request.url.path;requestedPathCounts.putIfAbsent(requestedPath, () => 0);requestedPathCounts[requestedPath] = requestedPathCounts[requestedPath]! + 1;7 unmodified lines}// Preserve old index.html as index_og.html so we can restore it later for other testsawait runCommand('mv', <String>['index.html','index_og.html',], workingDirectory: _testAppWebDirectory);print('BEGIN runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: $headless)');try {await _rebuildApp(version: 1,testType: ServiceWorkerTestType.withFlutterJsCustomServiceWorkerVersion,target: _target,);print('Test page load');await startAppServer(cacheControl: 'max-age=0');8 unmodified lines'main.dart.js': 1,'CLOSE': 1,'flutter_service_worker.js': 1,'flutter_bootstrap.js': 1,'assets/FontManifest.json': 1,'assets/AssetManifest.bin.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.png'.if (!headless) ...<String, int>{'manifest.json': 1, 'favicon.png': 1},});print('Test page reload, ensure service worker is not reloaded');await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{'CLOSE': 1, 'flutter.js': 1});expectRequestCounts(<String, int>{'index.html': 1,'flutter.js': 1,1 unmodified line'assets/FontManifest.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.png'.if (!headless) ...<String, int>{'manifest.json': 1, 'favicon.png': 1},});print('Test page reload after rebuild, ensure service worker is not reloaded');await _rebuildApp(version: 1,testType: ServiceWorkerTestType.withFlutterJsCustomServiceWorkerVersion,target: _target,);await server!.chrome.reloadPage(ignoreCache: true);await waitForAppToLoad(<String, int>{'CLOSE': 1, 'flutter.js': 1});expectRequestCounts(<String, int>{'index.html': 1,'flutter.js': 1,1 unmodified line'assets/FontManifest.json': 1,'assets/fonts/MaterialIcons-Regular.otf': 1,'CLOSE': 1,// In headless mode Chrome does not load 'manifest.json' and 'favicon.png'.if (!headless) ...<String, int>{'manifest.json': 1, 'favicon.png': 1},});} finally {await runCommand('mv', <String>['index_og.html','index.html',], workingDirectory: _testAppWebDirectory);await server?.stop();}print('END runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: $headless)');
5 unmodified lines67891011121314151617181920212223242526272829303132333435363738394015 unmodified lines565758596061622 unmodified lines65666768697071727374757677787980818283848586878889905 unmodified linesimport 'dart:io';class TestSpecs {TestSpecs({required this.path,required this.startTime,});final String path;int startTime;int? _endTime;int get milliseconds {return endTime - startTime;}set endTime(int value) {_endTime = value;}int get endTime {if (_endTime == null) {return 0;}return _endTime!;}String toJson() {return json.encode(<String, String>{'path': path, 'runtime': milliseconds.toString()});}}15 unmodified linesfinal List<String> errors = <String>[];for (final String metric in metrics.readAsLinesSync()) {final Map<String, Object?> entry = json.decode(metric) as Map<String, Object?>;if (entry.containsKey('suite')) {final Map<String, Object?> suite = entry['suite']! as Map<String, Object?>;addTestSpec(suite, entry['time']! as int, testSpecs);2 unmodified linesfinal int suiteID = group['suiteID']! as int;addMetricDone(suiteID, entry['time']! as int, testSpecs);} else if (entry.containsKey('error')) {final String stackTrace = entry.containsKey('stackTrace') ? entry['stackTrace']! as String : '';errors.add('${entry['error']}\n $stackTrace');} else if (entry.containsKey('success') && entry['success'] == true) {hasFailedTests = false;}}return TestFileReporterResults._(allTestSpecs: testSpecs, hasFailedTests: hasFailedTests, errors: errors);}final Map<int, TestSpecs> allTestSpecs;final bool hasFailedTests;final List<String> errors;static void addTestSpec(Map<String, Object?> suite, int time, Map<int, TestSpecs> allTestSpecs) {allTestSpecs[suite['id']! as int] = TestSpecs(path: suite['path']! as String,startTime: time,);}static void addMetricDone(int suiteID, int time, Map<int, TestSpecs> allTestSpecs) {5 unmodified lines678910111213141516171819202122232425262715 unmodified lines43444546474849505152535455562 unmodified lines5960616263646566676869707172737475767778798081828384855 unmodified linesimport 'dart:io';class TestSpecs {TestSpecs({required this.path, required this.startTime});final String path;int startTime;int? _endTime;int get milliseconds => endTime - startTime;set endTime(int value) {_endTime = value;}int get endTime => _endTime ?? 0;String toJson() {return json.encode(<String, String>{'path': path, 'runtime': milliseconds.toString()});}}15 unmodified linesfinal List<String> errors = <String>[];for (final String metric in metrics.readAsLinesSync()) {/// Using print within a test adds the printed content to the json file report/// as \u0000 making the file parsing step fail. The content of the json file/// is expected to be a json dictionary per line and the following line removes/// all the additional content at the beginning of the line until it finds the/// first opening curly bracket.// TODO(godofredoc): remove when https://github.com/flutter/flutter/issues/145553 is fixed.final String sanitizedMetric = metric.replaceAll(RegExp(r'$.*{'), '{');final Map<String, Object?> entry = json.decode(sanitizedMetric) as Map<String, Object?>;if (entry.containsKey('suite')) {final Map<String, Object?> suite = entry['suite']! as Map<String, Object?>;addTestSpec(suite, entry['time']! as int, testSpecs);2 unmodified linesfinal int suiteID = group['suiteID']! as int;addMetricDone(suiteID, entry['time']! as int, testSpecs);} else if (entry.containsKey('error')) {final String stackTrace =entry.containsKey('stackTrace') ? entry['stackTrace']! as String : '';errors.add('${entry['error']}\n $stackTrace');} else if (entry.containsKey('success') && entry['success'] == true) {hasFailedTests = false;}}return TestFileReporterResults._(allTestSpecs: testSpecs,hasFailedTests: hasFailedTests,errors: errors,);}final Map<int, TestSpecs> allTestSpecs;final bool hasFailedTests;final List<String> errors;static void addTestSpec(Map<String, Object?> suite, int time, Map<int, TestSpecs> allTestSpecs) {allTestSpecs[suite['id']! as int] = TestSpecs(path: suite['path']! as String, startTime: time);}static void addMetricDone(int suiteID, int time, Map<int, TestSpecs> allTestSpecs) {
49 unmodified lines505152535455565758596061626364653 unmodified lines6970717273747576777879808182838465 unmodified lines1501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901918 unmodified lines2002012022032042052062072082092102112 unmodified lines2142152162172182192202212222232242252262272282292301 unmodified line2322332342352362372382392402412422432442452462472482492502512522535 unmodified lines25926026126226326426526626726826927027127227327427527616 unmodified lines2932942952962972982993003013023033045 unmodified lines31031131231331431531631731831932051 unmodified lines3723733743753763773783793803813823833843853863873883893903913923933943953962 unmodified lines39940040140240340440540640740840941041141241341441541641741841942042142214 unmodified lines43743843944044144244314 unmodified lines45845946046146246346446546646746846947047147224 unmodified lines49749849950050150250349 unmodified linesString getChannelName(Channel channel) {return switch (channel) {Channel.beta => 'beta',Channel.dev => 'dev',Channel.stable => 'stable',};}Channel fromChannelName(String? name) {return switch (name) {'beta' => Channel.beta,'dev' => Channel.dev,'stable' => Channel.stable,_ => throw ArgumentError('Invalid channel name.'),};3 unmodified linesString getPublishedPlatform(PublishedPlatform platform) {return switch (platform) {PublishedPlatform.linux => 'linux',PublishedPlatform.macos => 'macos',PublishedPlatform.windows => 'windows',};}PublishedPlatform fromPublishedPlatform(String name) {return switch (name) {'linux' => PublishedPlatform.linux,'macos' => PublishedPlatform.macos,'windows' => PublishedPlatform.windows,_ => throw ArgumentError('Invalid published platform name.'),};65 unmodified linesworkingDirectory: workingDirectory.absolute.path,environment: environment,);process.stdout.listen((List<int> event) {output.addAll(event);if (subprocessOutput) {stdout.add(event);}},onDone: () async => stdoutComplete.complete(),);if (subprocessOutput) {process.stderr.listen((List<int> event) {stderr.add(event);},onDone: () async => stderrComplete.complete(),);} else {stderrComplete.complete();}} on ProcessException catch (e) {final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} ''failed with:\n$e';throw UnpublishException(message);} on ArgumentError catch (e) {final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} ''failed with:\n$e';throw UnpublishException(message);}final int exitCode = await allComplete();if (exitCode != 0 && !failOk) {final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} failed';throw UnpublishException(message,ProcessResult(0, exitCode, null, 'returned $exitCode'),);}return utf8.decoder.convert(output).trim();}8 unmodified linesthis.confirmed = false,ProcessManager? processManager,bool subprocessOutput = true,}) : assert(revisionsBeingRemoved.length == 40),metadataGsPath = '$gsReleaseFolder/${getMetadataFilename(platform)}',_processRunner = ProcessRunner(processManager: processManager ?? const LocalProcessManager(),subprocessOutput: subprocessOutput,);final PublishedPlatform platform;final String metadataGsPath;2 unmodified linesfinal bool confirmed;final Directory tempDir;final ProcessRunner _processRunner;static String getMetadataFilename(PublishedPlatform platform) => 'releases_${getPublishedPlatform(platform)}.json';/// Remove the archive from Google Storage.Future<void> unpublishArchive() async {final Map<String, dynamic> jsonData = await _loadMetadata();final List<Map<String, String>> releases = (jsonData['releases'] as List<dynamic>).map<Map<String, String>>((dynamic entry) {final Map<String, dynamic> mapEntry = entry as Map<String, dynamic>;return mapEntry.cast<String, String>();}).toList();final Map<Channel, Map<String, String>> paths = await _getArchivePaths(releases);releases.removeWhere((Map<String, String> value) => revisionsBeingRemoved.contains(value['hash']) && channels.contains(fromChannelName(value['channel'])));releases.sort((Map<String, String> a, Map<String, String> b) {final DateTime aDate = DateTime.parse(a['release_date']!);final DateTime bDate = DateTime.parse(b['release_date']!);1 unmodified line});jsonData['releases'] = releases;for (final Channel channel in channels) {if (!revisionsBeingRemoved.contains((jsonData['current_release'] as Map<String, dynamic>)[getChannelName(channel)])) {// Don't replace the current release if it's not one of the revisions we're removing.continue;}final Map<String, String> replacementRelease = releases.firstWhere((Map<String, String> value) => value['channel'] == getChannelName(channel));(jsonData['current_release'] as Map<String, dynamic>)[getChannelName(channel)] = replacementRelease['hash'];print('${confirmed ? 'Reverting' : 'Would revert'} current ${getChannelName(channel)} ''${getPublishedPlatform(platform)} release to ${replacementRelease['hash']} (version ${replacementRelease['version']}).');}await _cloudRemoveArchive(paths);await _updateMetadata(jsonData);}Future<Map<Channel, Map<String, String>>> _getArchivePaths(List<Map<String, String>> releases) async {final Set<String> hashes = <String>{};final Map<Channel, Map<String, String>> paths = <Channel, Map<String, String>>{};for (final Map<String, String> revision in releases) {5 unmodified linespaths[channel]![hash] = revision['archive']!;}}final Set<String> missingRevisions = revisionsBeingRemoved.difference(hashes.intersection(revisionsBeingRemoved));if (missingRevisions.isNotEmpty) {final bool plural = missingRevisions.length > 1;throw UnpublishException('Revision${plural ? 's' : ''} $missingRevisions ${plural ? 'are' : 'is'} not present in the server metadata.');}return paths;}Future<Map<String, dynamic>> _loadMetadata() async {final File metadataFile = File(path.join(tempDir.absolute.path, getMetadataFilename(platform)),);// Always run this, even in dry runs.await _runGsUtil(<String>['cp', metadataGsPath, metadataFile.absolute.path], confirm: true);final String currentMetadata = metadataFile.readAsStringSync();16 unmodified lines// Windows wants to echo the commands that execute in gsutil.bat to the// stdout when we do that. So, we copy the file locally and then read it// back in.final File metadataFile = File(path.join(tempDir.absolute.path, getMetadataFilename(platform)),);const JsonEncoder encoder = JsonEncoder.withIndent(' ');metadataFile.writeAsStringSync(encoder.convert(jsonData));print('${confirmed ? 'Overwriting' : 'Would overwrite'} $metadataGsPath with contents of ${metadataFile.absolute.path}');await _cloudReplaceDest(metadataFile.absolute.path, metadataGsPath);}5 unmodified lines}) async {final List<String> command = <String>['gsutil', '--', ...args];if (confirm) {return _processRunner.runProcess(command,workingDirectory: workingDirectory,failOk: failOk,);} else {print('Would run: ${command.join(' ')}');return '';51 unmodified lines/// Prepares a flutter git repo to be removed from the published cloud storage.Future<void> main(List<String> rawArguments) async {final List<String> allowedChannelValues = Channel.values.map<String>((Channel channel) => getChannelName(channel)).toList();final List<String> allowedPlatformNames = PublishedPlatform.values.map<String>((PublishedPlatform platform) => getPublishedPlatform(platform)).toList();final ArgParser argParser = ArgParser();argParser.addOption('temp_dir',help: 'A location where temporary files may be written. Defaults to a ''directory in the system temp folder. If a temp_dir is not ''specified, then by default a generated temporary directory will be ''created, used, and removed automatically when the script exits.',);argParser.addMultiOption('revision',help: 'The Flutter git repo revisions to remove from the published site. ''Must be full 40-character hashes. More than one may be specified, ''either by giving the option more than once, or by giving a comma ''separated list. Required.');argParser.addMultiOption('channel',allowed: allowedChannelValues,help: 'The Flutter channels to remove the archives corresponding to the ''revisions given with --revision. More than one may be specified, ''either by giving the option more than once, or by giving a ''comma separated list. If not specified, then the archives from all '2 unmodified linesargParser.addMultiOption('platform',allowed: allowedPlatformNames,help: 'The Flutter platforms to remove the archive from. May specify more ''than one, either by giving the option more than once, or by giving a ''comma separated list. If not specified, then the archives from all ''platforms that a revision appears in will be removed.',);argParser.addFlag('confirm',help: 'If set, will actually remove the archive from Google Cloud Storage ''upon successful execution of this script. Published archives will be ''removed from this directory: $baseUrl$releaseFolder. This option ''must be set to perform any action on the server, otherwise only a dry ''run is performed.',);argParser.addFlag('help',negatable: false,help: 'Print help for this command.',);final ArgResults parsedArguments = argParser.parse(rawArguments);14 unmodified lines}for (final String revision in revisions) {if (revision.length != 40) {errorExit('Invalid argument: --revision "$revision" must be the entire hash, not just a prefix.');}if (revision.contains(RegExp(r'[^a-fA-F0-9]'))) {errorExit('Invalid argument: --revision "$revision" contains non-hex characters.');14 unmodified lines}if (!(parsedArguments['confirm'] as bool)) {_printBanner('This will be just a dry run. To actually perform the changes below, re-run with --confirm argument.');}final List<String> channelArg = parsedArguments['channel'] as List<String>;final List<String> channelOptions = channelArg.isNotEmpty ? channelArg : allowedChannelValues;final Set<Channel> channels = channelOptions.map<Channel>((String value) => fromChannelName(value)).toSet();final List<String> platformArg = parsedArguments['platform'] as List<String>;final List<String> platformOptions = platformArg.isNotEmpty ? platformArg : allowedPlatformNames;final List<PublishedPlatform> platforms = platformOptions.map<PublishedPlatform>((String value) => fromPublishedPlatform(value)).toList();int exitCode = 0;late String message;late String stack;24 unmodified lineserrorExit('$message\n$stack', exitCode: exitCode);}if (!(parsedArguments['confirm'] as bool)) {_printBanner('This was just a dry run. To actually perform the above changes, re-run with --confirm argument.');}exit(0);}49 unmodified lines505152535455565758596061626364653 unmodified lines6970717273747576777879808182838465 unmodified lines1501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841858 unmodified lines1941951961971981992002012022032042052 unmodified lines2082092102112122132142152162172182192202212222232242252262272282292301 unmodified line2322332342352362372382392402412422432442452462472482492502512522532542552562572582592605 unmodified lines26626726826927027127227327427527627727827928028128228328428516 unmodified lines3023033043053063073083093103113123135 unmodified lines31932032132232332432551 unmodified lines3773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094102 unmodified lines41341441541641741841942042142242342442542642742842943043143243343414 unmodified lines44945045145245345445545645714 unmodified lines47247347447547647747847948048148248348448548648748848949049149224 unmodified lines51751851952052152252352452549 unmodified linesString getChannelName(Channel channel) {return switch (channel) {Channel.beta => 'beta',Channel.dev => 'dev',Channel.stable => 'stable',};}Channel fromChannelName(String? name) {return switch (name) {'beta' => Channel.beta,'dev' => Channel.dev,'stable' => Channel.stable,_ => throw ArgumentError('Invalid channel name.'),};3 unmodified linesString getPublishedPlatform(PublishedPlatform platform) {return switch (platform) {PublishedPlatform.linux => 'linux',PublishedPlatform.macos => 'macos',PublishedPlatform.windows => 'windows',};}PublishedPlatform fromPublishedPlatform(String name) {return switch (name) {'linux' => PublishedPlatform.linux,'macos' => PublishedPlatform.macos,'windows' => PublishedPlatform.windows,_ => throw ArgumentError('Invalid published platform name.'),};65 unmodified linesworkingDirectory: workingDirectory.absolute.path,environment: environment,);process.stdout.listen((List<int> event) {output.addAll(event);if (subprocessOutput) {stdout.add(event);}}, onDone: () async => stdoutComplete.complete());if (subprocessOutput) {process.stderr.listen((List<int> event) {stderr.add(event);}, onDone: () async => stderrComplete.complete());} else {stderrComplete.complete();}} on ProcessException catch (e) {final String message ='Running "${commandLine.join(' ')}" in ${workingDirectory.path} ''failed with:\n$e';throw UnpublishException(message);} on ArgumentError catch (e) {final String message ='Running "${commandLine.join(' ')}" in ${workingDirectory.path} ''failed with:\n$e';throw UnpublishException(message);}final int exitCode = await allComplete();if (exitCode != 0 && !failOk) {final String message ='Running "${commandLine.join(' ')}" in ${workingDirectory.path} failed';throw UnpublishException(message, ProcessResult(0, exitCode, null, 'returned $exitCode'));}return utf8.decoder.convert(output).trim();}8 unmodified linesthis.confirmed = false,ProcessManager? processManager,bool subprocessOutput = true,}) : assert(revisionsBeingRemoved.length == 40),metadataGsPath = '$gsReleaseFolder/${getMetadataFilename(platform)}',_processRunner = ProcessRunner(processManager: processManager ?? const LocalProcessManager(),subprocessOutput: subprocessOutput,);final PublishedPlatform platform;final String metadataGsPath;2 unmodified linesfinal bool confirmed;final Directory tempDir;final ProcessRunner _processRunner;static String getMetadataFilename(PublishedPlatform platform) =>'releases_${getPublishedPlatform(platform)}.json';/// Remove the archive from Google Storage.Future<void> unpublishArchive() async {final Map<String, dynamic> jsonData = await _loadMetadata();final List<Map<String, String>> releases =(jsonData['releases'] as List<dynamic>).map<Map<String, String>>((dynamic entry) {final Map<String, dynamic> mapEntry = entry as Map<String, dynamic>;return mapEntry.cast<String, String>();}).toList();final Map<Channel, Map<String, String>> paths = await _getArchivePaths(releases);releases.removeWhere((Map<String, String> value) =>revisionsBeingRemoved.contains(value['hash']) &&channels.contains(fromChannelName(value['channel'])),);releases.sort((Map<String, String> a, Map<String, String> b) {final DateTime aDate = DateTime.parse(a['release_date']!);final DateTime bDate = DateTime.parse(b['release_date']!);1 unmodified line});jsonData['releases'] = releases;for (final Channel channel in channels) {if (!revisionsBeingRemoved.contains((jsonData['current_release'] as Map<String, dynamic>)[getChannelName(channel)],)) {// Don't replace the current release if it's not one of the revisions we're removing.continue;}final Map<String, String> replacementRelease = releases.firstWhere((Map<String, String> value) => value['channel'] == getChannelName(channel),);(jsonData['current_release'] as Map<String, dynamic>)[getChannelName(channel)] =replacementRelease['hash'];print('${confirmed ? 'Reverting' : 'Would revert'} current ${getChannelName(channel)} ''${getPublishedPlatform(platform)} release to ${replacementRelease['hash']} (version ${replacementRelease['version']}).',);}await _cloudRemoveArchive(paths);await _updateMetadata(jsonData);}Future<Map<Channel, Map<String, String>>> _getArchivePaths(List<Map<String, String>> releases,) async {final Set<String> hashes = <String>{};final Map<Channel, Map<String, String>> paths = <Channel, Map<String, String>>{};for (final Map<String, String> revision in releases) {5 unmodified linespaths[channel]![hash] = revision['archive']!;}}final Set<String> missingRevisions = revisionsBeingRemoved.difference(hashes.intersection(revisionsBeingRemoved),);if (missingRevisions.isNotEmpty) {final bool plural = missingRevisions.length > 1;throw UnpublishException('Revision${plural ? 's' : ''} $missingRevisions ${plural ? 'are' : 'is'} not present in the server metadata.',);}return paths;}Future<Map<String, dynamic>> _loadMetadata() async {final File metadataFile = File(path.join(tempDir.absolute.path, getMetadataFilename(platform)));// Always run this, even in dry runs.await _runGsUtil(<String>['cp', metadataGsPath, metadataFile.absolute.path], confirm: true);final String currentMetadata = metadataFile.readAsStringSync();16 unmodified lines// Windows wants to echo the commands that execute in gsutil.bat to the// stdout when we do that. So, we copy the file locally and then read it// back in.final File metadataFile = File(path.join(tempDir.absolute.path, getMetadataFilename(platform)));const JsonEncoder encoder = JsonEncoder.withIndent(' ');metadataFile.writeAsStringSync(encoder.convert(jsonData));print('${confirmed ? 'Overwriting' : 'Would overwrite'} $metadataGsPath with contents of ${metadataFile.absolute.path}',);await _cloudReplaceDest(metadataFile.absolute.path, metadataGsPath);}5 unmodified lines}) async {final List<String> command = <String>['gsutil', '--', ...args];if (confirm) {return _processRunner.runProcess(command, workingDirectory: workingDirectory, failOk: failOk);} else {print('Would run: ${command.join(' ')}');return '';51 unmodified lines/// Prepares a flutter git repo to be removed from the published cloud storage.Future<void> main(List<String> rawArguments) async {final List<String> allowedChannelValues =Channel.values.map<String>((Channel channel) => getChannelName(channel)).toList();final List<String> allowedPlatformNames =PublishedPlatform.values.map<String>((PublishedPlatform platform) => getPublishedPlatform(platform)).toList();final ArgParser argParser = ArgParser();argParser.addOption('temp_dir',help:'A location where temporary files may be written. Defaults to a ''directory in the system temp folder. If a temp_dir is not ''specified, then by default a generated temporary directory will be ''created, used, and removed automatically when the script exits.',);argParser.addMultiOption('revision',help:'The Flutter git repo revisions to remove from the published site. ''Must be full 40-character hashes. More than one may be specified, ''either by giving the option more than once, or by giving a comma ''separated list. Required.',);argParser.addMultiOption('channel',allowed: allowedChannelValues,help:'The Flutter channels to remove the archives corresponding to the ''revisions given with --revision. More than one may be specified, ''either by giving the option more than once, or by giving a ''comma separated list. If not specified, then the archives from all '2 unmodified linesargParser.addMultiOption('platform',allowed: allowedPlatformNames,help:'The Flutter platforms to remove the archive from. May specify more ''than one, either by giving the option more than once, or by giving a ''comma separated list. If not specified, then the archives from all ''platforms that a revision appears in will be removed.',);argParser.addFlag('confirm',help:'If set, will actually remove the archive from Google Cloud Storage ''upon successful execution of this script. Published archives will be ''removed from this directory: $baseUrl$releaseFolder. This option ''must be set to perform any action on the server, otherwise only a dry ''run is performed.',);argParser.addFlag('help', negatable: false, help: 'Print help for this command.');final ArgResults parsedArguments = argParser.parse(rawArguments);14 unmodified lines}for (final String revision in revisions) {if (revision.length != 40) {errorExit('Invalid argument: --revision "$revision" must be the entire hash, not just a prefix.',);}if (revision.contains(RegExp(r'[^a-fA-F0-9]'))) {errorExit('Invalid argument: --revision "$revision" contains non-hex characters.');14 unmodified lines}if (!(parsedArguments['confirm'] as bool)) {_printBanner('This will be just a dry run. To actually perform the changes below, re-run with --confirm argument.',);}final List<String> channelArg = parsedArguments['channel'] as List<String>;final List<String> channelOptions = channelArg.isNotEmpty ? channelArg : allowedChannelValues;final Set<Channel> channels =channelOptions.map<Channel>((String value) => fromChannelName(value)).toSet();final List<String> platformArg = parsedArguments['platform'] as List<String>;final List<String> platformOptions = platformArg.isNotEmpty ? platformArg : allowedPlatformNames;final List<PublishedPlatform> platforms =platformOptions.map<PublishedPlatform>((String value) => fromPublishedPlatform(value)).toList();int exitCode = 0;late String message;late String stack;24 unmodified lineserrorExit('$message\n$stack', exitCode: exitCode);}if (!(parsedArguments['confirm'] as bool)) {_printBanner('This was just a dry run. To actually perform the above changes, re-run with --confirm argument.',);}exit(0);}
2 unmodified lines345678910111213141516171819202122232425262728293031323 unmodified lines363738394041424 unmodified lines4748495051525354555634 unmodified lines91929394959636 unmodified lines13313413513613713813914014114214314414514614714836 unmodified lines18518618718818919019119219319419519619719819920020120220320420522 unmodified lines22822923023123223323418 unmodified lines2532542552 unmodified lines// found in the LICENSE file.import 'dart:async';import 'dart:core' hide print;import 'dart:io' as system show exit;import 'dart:io' hide exit;import 'dart:math' as math;import 'package:meta/meta.dart';const Duration _quietTimeout = Duration(minutes: 10); // how long the output should be hidden between calls to printProgress before just being verbose// If running from LUCI set to False.final bool isLuci = Platform.environment['LUCI_CI'] == 'True';final bool hasColor = stdout.supportsAnsiEscapes && !isLuci;final String bold = hasColor ? '\x1B[1m' : ''; // shard titlesfinal String red = hasColor ? '\x1B[31m' : ''; // errorsfinal String green = hasColor ? '\x1B[32m' : ''; // section titles, commandsfinal String yellow = hasColor ? '\x1B[33m' : ''; // indications that a test was skipped (usually renders orange or brown)final String cyan = hasColor ? '\x1B[36m' : ''; // pathsfinal String reverse = hasColor ? '\x1B[7m' : ''; // clocksfinal String gray = hasColor ? '\x1B[30m' : ''; // subtle decorative items (usually renders as dark gray)final String white = hasColor ? '\x1B[37m' : ''; // last log line (usually renders as light gray)final String reset = hasColor ? '\x1B[0m' : '';const int kESC = 0x1B;const int kOpenSquareBracket = 0x5B;const int kCSIParameterRangeStart = 0x30;3 unmodified linesconst int kCSIFinalRangeStart = 0x40;const int kCSIFinalRangeEnd = 0x7E;String get redLine {if (hasColor) {return '$red${'━' * stdout.terminalColumns}$reset';4 unmodified linesString get clock {final DateTime now = DateTime.now();return '$reverse▌''${now.hour.toString().padLeft(2, "0")}:''${now.minute.toString().padLeft(2, "0")}:''${now.second.toString().padLeft(2, "0")}''▐$reset';}String prettyPrintDuration(Duration duration) {34 unmodified linesTimer? _hideTimer; // When this is null, the output is verbose.void foundError(List<String> messages) {assert(messages.isNotEmpty);// Make the error message easy to notice in the logs by// wrapping it in a red box.36 unmodified lines_hideTimer = null;print('$clock $message$reset');print(redLine);print('${red}For your convenience, the error messages reported above are repeated here:$reset');final bool printSeparators = _errorMessages.any((List<String> messages) => messages.length > 1);if (printSeparators) {print(' 🙙 🙛 ');}for (int index = 0; index < _errorMessages.length * 2 - 1; index += 1) {if (index.isEven) {_errorMessages[index ~/ 2].forEach(print);} else if (printSeparators) {print(' 🙙 🙛 ');}}print(redLine);36 unmodified linesint index = start;int length = 0;while (index < line.length && length < stdout.terminalColumns) {if (line.codeUnitAt(index) == kESC) { // 0x1Bindex += 1;if (index < line.length && line.codeUnitAt(index) == kOpenSquareBracket) { // 0x5B, [// That was the start of a CSI sequence.index += 1;while (index < line.length && line.codeUnitAt(index) >= kCSIParameterRangeStart&& line.codeUnitAt(index) <= kCSIParameterRangeEnd) { // 0x30..0x3Findex += 1; // ...parameter bytes...}while (index < line.length && line.codeUnitAt(index) >= kCSIIntermediateRangeStart&& line.codeUnitAt(index) <= kCSIIntermediateRangeEnd) { // 0x20..0x2Findex += 1; // ...intermediate bytes...}if (index < line.length && line.codeUnitAt(index) >= kCSIFinalRangeStart&& line.codeUnitAt(index) <= kCSIFinalRangeEnd) { // 0x40..0x7Eindex += 1; // ...final byte.}}22 unmodified lines// THE FOLLOWING CODE IS A VIOLATION OF OUR STYLE GUIDE// BECAUSE IT INTRODUCES A VERY FLAKY RACE CONDITION// https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#never-check-if-a-port-is-available-before-using-it-never-add-timeouts-and-other-race-conditions// DO NOT USE THE FOLLOWING FUNCTIONS// DO NOT WRITE CODE LIKE THE FOLLOWING FUNCTIONS// https://github.com/flutter/flutter/issues/10947418 unmodified linesreturn true;}}2 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021033 unmodified lines1071081091101111124 unmodified lines11711811912012112212312412512634 unmodified lines16116216316416516616716816917036 unmodified lines20720820921021121221321421521621721821922022122236 unmodified lines25926026126226326426526626726826927027127227327427527627727827928028128228328428528628722 unmodified lines31031131231331431531618 unmodified lines3353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447452 unmodified lines// found in the LICENSE file.import 'dart:async';import 'dart:convert';import 'dart:core' hide print;import 'dart:io' as system show exit;import 'dart:io' hide exit;import 'dart:math' as math;import 'package:analyzer/dart/analysis/results.dart';import 'package:analyzer/dart/ast/ast.dart';import 'package:analyzer/source/line_info.dart';import 'package:collection/collection.dart';import 'package:file/file.dart' as fs;import 'package:file/local.dart';import 'package:meta/meta.dart';import 'package:path/path.dart' as path;import 'run_command.dart';import 'tool_subsharding.dart';typedef ShardRunner = Future<void> Function();/// A function used to validate the output of a test.////// If the output matches expectations, the function shall return null.////// If the output does not match expectations, the function shall return an/// appropriate error message.typedef OutputChecker = String? Function(CommandResult);const Duration _quietTimeout = Duration(minutes: 10,); // how long the output should be hidden between calls to printProgress before just being verbose// If running from LUCI set to False.final bool isLuci = Platform.environment['LUCI_CI'] == 'True';final bool hasColor = stdout.supportsAnsiEscapes && !isLuci;final bool _isRandomizationOff =bool.tryParse(Platform.environment['TEST_RANDOMIZATION_OFF'] ?? '') ?? false;final String bold = hasColor ? '\x1B[1m' : ''; // shard titlesfinal String red = hasColor ? '\x1B[31m' : ''; // errorsfinal String green = hasColor ? '\x1B[32m' : ''; // section titles, commandsfinal String yellow =hasColor? '\x1B[33m': ''; // indications that a test was skipped (usually renders orange or brown)final String cyan = hasColor ? '\x1B[36m' : ''; // pathsfinal String reverse = hasColor ? '\x1B[7m' : ''; // clocksfinal String gray =hasColor ? '\x1B[30m' : ''; // subtle decorative items (usually renders as dark gray)final String white = hasColor ? '\x1B[37m' : ''; // last log line (usually renders as light gray)final String reset = hasColor ? '\x1B[0m' : '';final String exe = Platform.isWindows ? '.exe' : '';final String bat = Platform.isWindows ? '.bat' : '';final String flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(Platform.script))));final String flutter = path.join(flutterRoot, 'bin', 'flutter$bat');final String dart = path.join(flutterRoot, 'bin', 'cache', 'dart-sdk', 'bin', 'dart$exe');final String pubCache = path.join(flutterRoot, '.pub-cache');final String engineVersionFile = path.join(flutterRoot, 'bin', 'cache', 'engine.stamp');final String luciBotId = Platform.environment['SWARMING_BOT_ID'] ?? '';final bool runningInDartHHHBot =luciBotId.startsWith('luci-dart-') || luciBotId.startsWith('dart-tests-');const String kShardKey = 'SHARD';const String kSubshardKey = 'SUBSHARD';const String kTestHarnessShardName = 'test_harness_tests';/// Environment variables to override the local engine when running `pub test`,/// if such flags are provided to `test.dart`.final Map<String, String> localEngineEnv = <String, String>{};/// The arguments to pass to `flutter test` (typically the local engine/// configuration) -- prefilled with the arguments passed to test.dart.final List<String> flutterTestArgs = <String>[];/// Whether execution should be simulated for debugging purposes.////// When `true`, calls to [runCommand] print to [io.stdout] instead of running/// the process. This is useful for determining what an invocation of `test.dart`/// _might_ due if not invoked with `--dry-run`, or otherwise determine what the/// different test shards and sub-shards are configured as.bool get dryRun => _dryRun ?? false;/// Switches [dryRun] to `true`.////// Expected to be called at most once during execution of a process.void enableDryRun() {if (_dryRun != null) {throw StateError('Should only be called at most once');}_dryRun = true;}bool? _dryRun;const int kESC = 0x1B;const int kOpenSquareBracket = 0x5B;const int kCSIParameterRangeStart = 0x30;3 unmodified linesconst int kCSIFinalRangeStart = 0x40;const int kCSIFinalRangeEnd = 0x7E;String get redLine {if (hasColor) {return '$red${'━' * stdout.terminalColumns}$reset';4 unmodified linesString get clock {final DateTime now = DateTime.now();return '$reverse▌''${now.hour.toString().padLeft(2, "0")}:''${now.minute.toString().padLeft(2, "0")}:''${now.second.toString().padLeft(2, "0")}''▐$reset';}String prettyPrintDuration(Duration duration) {34 unmodified linesTimer? _hideTimer; // When this is null, the output is verbose.void foundError(List<String> messages) {if (dryRun) {printProgress(messages.join('\n'));return;}assert(messages.isNotEmpty);// Make the error message easy to notice in the logs by// wrapping it in a red box.36 unmodified lines_hideTimer = null;print('$clock $message$reset');print(redLine);print('${red}The error messages reported above are repeated here:$reset');final bool printSeparators = _errorMessages.any((List<String> messages) => messages.length > 1);if (printSeparators) {print(' -- This line intentionally left blank -- ');}for (int index = 0; index < _errorMessages.length * 2 - 1; index += 1) {if (index.isEven) {_errorMessages[index ~/ 2].forEach(print);} else if (printSeparators) {print(' -- This line intentionally left blank -- ');}}print(redLine);36 unmodified linesint index = start;int length = 0;while (index < line.length && length < stdout.terminalColumns) {if (line.codeUnitAt(index) == kESC) {// 0x1Bindex += 1;if (index < line.length && line.codeUnitAt(index) == kOpenSquareBracket) {// 0x5B, [// That was the start of a CSI sequence.index += 1;while (index < line.length &&line.codeUnitAt(index) >= kCSIParameterRangeStart &&line.codeUnitAt(index) <= kCSIParameterRangeEnd) {// 0x30..0x3Findex += 1; // ...parameter bytes...}while (index < line.length &&line.codeUnitAt(index) >= kCSIIntermediateRangeStart &&line.codeUnitAt(index) <= kCSIIntermediateRangeEnd) {// 0x20..0x2Findex += 1; // ...intermediate bytes...}if (index < line.length &&line.codeUnitAt(index) >= kCSIFinalRangeStart &&line.codeUnitAt(index) <= kCSIFinalRangeEnd) {// 0x40..0x7Eindex += 1; // ...final byte.}}22 unmodified lines// THE FOLLOWING CODE IS A VIOLATION OF OUR STYLE GUIDE// BECAUSE IT INTRODUCES A VERY FLAKY RACE CONDITION// https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#never-check-if-a-port-is-available-before-using-it-never-add-timeouts-and-other-race-conditions// DO NOT USE THE FOLLOWING FUNCTIONS// DO NOT WRITE CODE LIKE THE FOLLOWING FUNCTIONS// https://github.com/flutter/flutter/issues/10947418 unmodified linesreturn true;}}String locationInFile(ResolvedUnitResult unit, AstNode node, String workingDirectory) {return '${path.relative(path.relative(unit.path, from: workingDirectory))}:${unit.lineInfo.getLocation(node.offset).lineNumber}';}/// Whether the given [AstNode] within the `compilationUnit` is under the effect/// of an inline ignore directive described by `ignoreDirectivePattern`.////// The `compilationUnit` parameter is the parsed dart file containing the given/// [AstNode]. The `ignoreDirectivePattern` is a [Pattern] that should precisely/// match the ignore directive of interest (including the slashes, example:/// `// flutter_ignore: deprecation_syntax`).////// The implementation assumes the `ignoreDirectivePattern` matches no more than/// one line. It searches for the given `ignoreDirectivePattern` in the/// `compilationUnit`, that either starts the line above the given `node`, or/// appears after `node` but on the same line, such that the ignore directive/// works the same way as dart's "ignore" comment: it can either be added above/// or after the line that needs to be exemped.bool hasInlineIgnore(AstNode node,ParseStringResult compilationUnit,Pattern ignoreDirectivePattern,) {final LineInfo lineInfo = compilationUnit.lineInfo;// In case the node has multiple lines, match from its start offset.final String textAfterNode = compilationUnit.content.substring(node.offset,// This assumes every line ends with a newline character (including the last// line) and the new line character is not included to match the given pattern.lineInfo.getOffsetOfLineAfter(node.offset) - 1,);if (textAfterNode.contains(ignoreDirectivePattern)) {return true;}// The lineNumber getter uses one-based index while everything else uses zero-based index.final int lineNumber = lineInfo.getLocation(node.offset).lineNumber - 1;if (lineNumber <= 0) {return false;}return compilationUnit.content.substring(lineInfo.getOffsetOfLine(lineNumber - 1), lineInfo.getOffsetOfLine(lineNumber)).trimLeft().contains(ignoreDirectivePattern);}// The seed used to shuffle tests. If not passed with// --test-randomize-ordering-seed=<seed> on the command line, it will be set the// first time it is accessed. Pass zero to turn off shuffling.String? _shuffleSeed;set shuffleSeed(String? newSeed) {_shuffleSeed = newSeed;}String get shuffleSeed {if (_shuffleSeed != null) {return _shuffleSeed!;}// Attempt to load from the command-line argumentfinal String? seedArg = Platform.environment['--test-randomize-ordering-seed'];if (seedArg != null) {return seedArg;}// Fallback to the original time-based seed generationfinal DateTime seedTime = DateTime.now().toUtc().subtract(const Duration(hours: 7));_shuffleSeed = '${seedTime.year * 10000 + seedTime.month * 100 + seedTime.day}';return _shuffleSeed!;}// TODO(sigmund): includeLocalEngineEnv should default to true. Currently we// only enable it on flutter-web test because some test suites do not work// properly when overriding the local engine (for example, because some platform// dependent targets are only built on some engines).// See https://github.com/flutter/flutter/issues/72368Future<void> runDartTest(String workingDirectory, {List<String>? testPaths,bool enableFlutterToolAsserts = true,bool useBuildRunner = false,String? coverage,bool forceSingleCore = false,Duration? perTestTimeout,bool includeLocalEngineEnv = false,bool ensurePrecompiledTool = true,bool shuffleTests = true,bool collectMetrics = false,List<String>? tags,bool runSkipped = false,}) async {// TODO(matanlurey): Consider Platform.numberOfProcessors instead.// See https://github.com/flutter/flutter/issues/161399.int cpus = 2;// Integration tests that depend on external processes like chrome// can get stuck if there are multiple instances running at once.if (forceSingleCore) {cpus = 1;}const LocalFileSystem fileSystem = LocalFileSystem();final String suffix = DateTime.now().microsecondsSinceEpoch.toString();final File metricFile = fileSystem.systemTempDirectory.childFile('metrics_$suffix.json');final List<String> args = <String>['run','test','--reporter=expanded','--file-reporter=json:${metricFile.path}',if (shuffleTests) '--test-randomize-ordering-seed=$shuffleSeed','-j$cpus',if (!hasColor) '--no-color',if (coverage != null) '--coverage=$coverage',if (perTestTimeout != null) '--timeout=${perTestTimeout.inMilliseconds}ms',if (runSkipped) '--run-skipped',if (tags != null) ...tags.map((String t) => '--tags=$t'),if (testPaths != null)for (final String testPath in testPaths) testPath,];final Map<String, String> environment = <String, String>{'FLUTTER_ROOT': flutterRoot,if (includeLocalEngineEnv) ...localEngineEnv,if (Directory(pubCache).existsSync()) 'PUB_CACHE': pubCache,};if (enableFlutterToolAsserts) {adjustEnvironmentToEnableFlutterAsserts(environment);}if (ensurePrecompiledTool) {// We rerun the `flutter` tool here just to make sure that it is compiled// before tests run, because the tests might time out if they have to rebuild// the tool themselves.await runCommand(flutter, <String>['--version'], environment: environment);}await runCommand(dart,args,workingDirectory: workingDirectory,environment: environment,removeLine: useBuildRunner ? (String line) => line.startsWith('[INFO]') : null,);if (dryRun) {return;}final TestFileReporterResults test = TestFileReporterResults.fromFile(metricFile,); // --file-reporter namefinal File info = fileSystem.file(path.join(flutterRoot, 'error.log'));info.writeAsStringSync(json.encode(test.errors));if (collectMetrics) {try {final List<String> testList = <String>[];final Map<int, TestSpecs> allTestSpecs = test.allTestSpecs;for (final TestSpecs testSpecs in allTestSpecs.values) {testList.add(testSpecs.toJson());}if (testList.isNotEmpty) {final String testJson = json.encode(testList);final File testResults = fileSystem.file(path.join(flutterRoot, 'test_results.json'));testResults.writeAsStringSync(testJson);}} on fs.FileSystemException catch (e) {print('Failed to generate metrics: $e');}}// metriciFile is a transitional file that needs to be deleted once it is parsed.// TODO(godofredoc): Ensure metricFile is parsed and aggregated before deleting.// https://github.com/flutter/flutter/issues/146003metricFile.deleteSync();}Future<void> runFlutterTest(String workingDirectory, {String? script,bool expectFailure = false,bool printOutput = true,OutputChecker? outputChecker,List<String> options = const <String>[],Map<String, String>? environment,List<String> tests = const <String>[],bool shuffleTests = true,bool fatalWarnings = true,}) async {assert(!printOutput || outputChecker == null,'Output either can be printed or checked but not both',);final List<String> tags = <String>[];// Recipe-configured reduced test shards will only execute tests with the// appropriate tag.if (Platform.environment['REDUCED_TEST_SET'] == 'True') {tags.addAll(<String>['-t', 'reduced-test-set']);}const LocalFileSystem fileSystem = LocalFileSystem();final String suffix = DateTime.now().microsecondsSinceEpoch.toString();final File metricFile = fileSystem.systemTempDirectory.childFile('metrics_$suffix.json');final List<String> args = <String>['test','--reporter=expanded','--file-reporter=json:${metricFile.path}',if (shuffleTests && !_isRandomizationOff) '--test-randomize-ordering-seed=$shuffleSeed',if (fatalWarnings) '--fatal-warnings',...options,...tags,...flutterTestArgs,];if (script != null) {final String fullScriptPath = path.join(workingDirectory, script);if (!FileSystemEntity.isFileSync(fullScriptPath)) {foundError(<String>['${red}Could not find test$reset: $green$fullScriptPath$reset','Working directory: $cyan$workingDirectory$reset','Script: $green$script$reset',if (!printOutput) 'This is one of the tests that does not normally print output.',]);return;}args.add(script);}args.addAll(tests);final OutputMode outputMode =outputChecker == null && printOutput ? OutputMode.print : OutputMode.capture;final CommandResult result = await runCommand(flutter,args,workingDirectory: workingDirectory,expectNonZeroExit: expectFailure,outputMode: outputMode,environment: environment,);// metriciFile is a transitional file that needs to be deleted once it is parsed.// TODO(godofredoc): Ensure metricFile is parsed and aggregated before deleting.// https://github.com/flutter/flutter/issues/146003if (!dryRun) {metricFile.deleteSync();}if (outputChecker != null) {final String? message = outputChecker(result);if (message != null) {foundError(<String>[message]);}}}/// This will force the next run of the Flutter tool (if it uses the provided/// environment) to have asserts enabled, by setting an environment variable.void adjustEnvironmentToEnableFlutterAsserts(Map<String, String> environment) {// If an existing env variable exists append to it, but only if// it doesn't appear to already include enable-asserts.String toolsArgs = Platform.environment['FLUTTER_TOOL_ARGS'] ?? '';if (!toolsArgs.contains('--enable-asserts')) {toolsArgs += ' --enable-asserts';}environment['FLUTTER_TOOL_ARGS'] = toolsArgs.trim();}Future<void> selectShard(Map<String, ShardRunner> shards) =>_runFromList(shards, kShardKey, 'shard', 0);Future<void> selectSubshard(Map<String, ShardRunner> subshards) =>_runFromList(subshards, kSubshardKey, 'subshard', 1);Future<void> runShardRunnerIndexOfTotalSubshard(List<ShardRunner> tests) async {final List<ShardRunner> sublist = selectIndexOfTotalSubshard<ShardRunner>(tests);for (final ShardRunner test in sublist) {await test();}}/// Parse (one-)index/total-named subshards from environment variable SUBSHARD/// and equally distribute [tests] between them./// The format of SUBSHARD is "{index}_{total number of shards}"./// The scheduler can change the number of total shards without needing an additional/// commit in this repository.////// Examples:/// 1_3/// 2_3/// 3_3List<T> selectIndexOfTotalSubshard<T>(List<T> tests, {String subshardKey = kSubshardKey}) {// Example: "1_3" means the first (one-indexed) shard of three total shards.final String? subshardName = Platform.environment[subshardKey];if (subshardName == null) {print('$kSubshardKey environment variable is missing, skipping sharding');return tests;}printProgress('$bold$subshardKey=$subshardName$reset');final RegExp pattern = RegExp(r'^(\d+)_(\d+)$');final Match? match = pattern.firstMatch(subshardName);if (match == null || match.groupCount != 2) {foundError(<String>['${red}Invalid subshard name "$subshardName". Expected format "[int]_[int]" ex. "1_3"',]);throw Exception('Invalid subshard name: $subshardName');}// One-indexed.final int index = int.parse(match.group(1)!);final int total = int.parse(match.group(2)!);if (index > total) {foundError(<String>['${red}Invalid subshard name "$subshardName". Index number must be greater or equal to total.',]);return <T>[];}final (int start, int end) = selectTestsForSubShard(testCount: tests.length,subShardIndex: index,subShardCount: total,);print('Selecting subshard $index of $total (tests ${start + 1}-$end of ${tests.length})');return tests.sublist(start, end);}/// Finds the interval of tests that a subshard is responsible for testing.@visibleForTesting(int start, int end) selectTestsForSubShard({required int testCount,required int subShardIndex,required int subShardCount,}) {// While there exists a closed formula figuring out the range of tests the// subshard is responsible for, modeling this as a simulation of distributing// items equally into buckets is more intuitive.//// A bucket represents how many tests a subshard should be allocated.final List<int> buckets = List<int>.filled(subShardCount, 0);// First, allocate an equal number of items to each bucket.for (int i = 0; i < buckets.length; i++) {buckets[i] = (testCount / subShardCount).floor();}// For the N leftover items, put one into each of the first N buckets.final int remainingItems = testCount % buckets.length;for (int i = 0; i < remainingItems; i++) {buckets[i] += 1;}// Lastly, compute the indices of the items in buckets[index].// We derive this from the toal number items in previous buckets and the number// of items in this bucket.final int numberOfItemsInPreviousBuckets =subShardIndex == 0 ? 0 : buckets.sublist(0, subShardIndex - 1).sum;final int start = numberOfItemsInPreviousBuckets;final int end = start + buckets[subShardIndex - 1];return (start, end);}Future<void> _runFromList(Map<String, ShardRunner> items,String key,String name,int positionInTaskName,) async {try {final String? item = Platform.environment[key];if (item == null) {for (final String currentItem in items.keys) {printProgress('$bold$key=$currentItem$reset');await items[currentItem]!();}} else {printProgress('$bold$key=$item$reset');if (!items.containsKey(item)) {foundError(<String>['${red}Invalid $name: $item$reset','The available ${name}s are: ${items.keys.join(", ")}',]);return;}await items[item]!();}} catch (_) {if (!dryRun) {rethrow;}}}/// Checks the given file's contents to determine if they match the allowed/// pattern for version strings.////// Returns null if the contents are good. Returns a string if they are bad./// The string is an error message.Future<String?> verifyVersion(File file) async {final RegExp pattern = RegExp(r'^(\d+)\.(\d+)\.(\d+)((-\d+\.\d+)?\.pre(\.\d+)?)?$');if (!file.existsSync()) {return 'The version logic failed to create the Flutter version file.';}final String version = await file.readAsString();if (version == '0.0.0-unknown') {return 'The version logic failed to determine the Flutter version.';}if (!version.contains(pattern)) {return 'The version logic generated an invalid version string: "$version".';}return null;}
12345678910111213141516175 unmodified lines2324252627286 unmodified lines3536373839404142434445464729 unmodified lines777879808182838485868788899091929394959697989910010110213 unmodified lines116117118# Flutter ConductorCommand-line tool for managing a release of the Flutter SDK. Also seehttps://github.com/flutter/flutter/wiki/Release-process for more information onthe release process.## RequirementsSome basic requirements to conduct a release are:- a Linux or macOS computer set up for Flutter development. The conductor doesnot support Windows.- git- Mirrors on GitHub of the Flutter[framework](https://github.com/flutter/flutter) and[engine](https://github.com/flutter/engine) repositories.5 unmodified linesattempts to interact with a remote, the user will be prompted to enter their sshkey password.## UsageThe main entrypoint for the conductor is [bin/conductor](bin/conductor). For6 unmodified linesReleases are initialized with the `start` sub-command, like:```conductor start \--candidate-branch=flutter-2.2-candidate.10 \--release-channel=beta \--github-username=kingOfDevelopers \--engine-cherrypicks=72114dafe28c8700f1d5d629c6ae9d34172ba395 \--framework-cherrypicks=a3e66b396746f6581b2b7efd1b0d0f0074215128,d8d853436206e86f416236b930e97779b143a100 \--dart-revision=4511eb2a779a612d9d6b2012123575013e0aef12 \```29 unmodified lines`conductor next`### Apply Engine CherrypicksThe tool will attempt to auto-apply all engine cherrypicks. However, anycherrypicks that result in a merge conflict will be reverted and it is left tothe user to manually cherry-pick them (with the command `git cherry-pick$REVISION`) and resolve the merge conflict in their checkout.Once a PR is opened, the user must validate CI builds. If there are regressions(or if the `licenses_check` fails, then`//engine/ci/licenses_golden/licenses_third_party` must be updated to match theoutput of the failing test), then the user must fix these tests in their localcheckout and push their changes again.### Apply Framework CherrypicksThe tool will attempt to auto-apply all framework cherrypicks. However, anycherrypicks that result in a merge conflict will be reverted and it is left tothe user to manually cherry-pick them (with the command `git cherry-pick$REVISION`) and resolve the merge conflict in their checkout.### Publish VersionThis step will add a version git tag to the final Framework commit and push it13 unmodified linesfinished successfully. The SDK compressed archives will not be available fromthe website until the packaging build has finished. The conductor will producelinks to the dashboards for monitoring CI builds.12345678910111213141516175 unmodified lines23242526272829306 unmodified lines373839404142434445464729 unmodified lines77787980818213 unmodified lines96979899100101102# Flutter ConductorCommand-line tool for managing a release of the Flutter SDK. Also see[Release Process](../../docs/releases/Release-process.md) for more information onthe release process.## Conductor RequirementsSome basic requirements to run conductor are:- a Linux or macOS computer set up for Flutter development. The conductor doesnot support Windows.- git- Mirrors on GitHub of the Flutter **[framework](https://github.com/flutter/flutter) and[engine](https://github.com/flutter/engine) repositories.5 unmodified linesattempts to interact with a remote, the user will be prompted to enter their sshkey password.** Confirm that your personal GitHub clone of flutter/flutter is named flutter and flutter/engine is named engine. If not you will need to use flags to override the defaults.## UsageThe main entrypoint for the conductor is [bin/conductor](bin/conductor). For6 unmodified linesReleases are initialized with the `start` sub-command, like:```shconductor start \--candidate-branch=flutter-2.2-candidate.10 \--release-channel=beta \--github-username=kingOfDevelopers \--dart-revision=4511eb2a779a612d9d6b2012123575013e0aef12 \```29 unmodified lines`conductor next`### Publish VersionThis step will add a version git tag to the final Framework commit and push it13 unmodified linesfinished successfully. The SDK compressed archives will not be available fromthe website until the packaging build has finished. The conductor will producelinks to the dashboards for monitoring CI builds.### Post verificaion steps (mostly communication)Googler instructions for post release documented at go/flutter-release-workflow#notify
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071# Release engineer/manager onboarding
Googler facing documentation can be found at go/flutter-release-workflow.
### Responsibility
Release engineer is responsible for:* Branch alignment and/or shepherding cherry picks* Decision making related to cherry pick risk* Verification that pre and post submits pass prior to publishing* Contributor facing communication* Some public facing post release communication
In the past (and possibly in the future) there was a distinction between a release engineer and release manager.For now the responsibilities are the same and we will refer to the person managing the release as a release engineer.
## Onboarding
One time setup instructions for new or returning release engineers.
### Groups/Permissions
#### Join flutter-hackers on GitHub
https://github.com/orgs/flutter/teams/flutter-hackers/members
#### [Googler only] Join mdb/flutter-infra
Possibly not requiredhttps://ganpati2.corp.google.com/propose_membership?parent=9147533327&child=$me.prod
#### Join the flutter-announce google group
Ping any current release engineer to add you as an owner and give you publish access.https://groups.google.com/g/flutter-announce/members?q=role:owner&pli=1
TODO include screenshot
#### [Googler only] Install tool-proxy-client
From a glinux machine run `sudo apt install tool-proxy-client`.
`tool-proxy-client` is the tool that enables/enforces 2 party authorization for controlled builds.
#### [Googler only] Confirm access to release calendar
Public and Beta releases and timelinesgo/dash-team-releases
#### [Googler only] Join release chatroom
Release hotline https://chat.google.com/room/AAAA6RKcK2k?cls=7
#### [Googler only] join mdb/flutter-release-team
Controls who can approve 2 party auth requests.https://ganpati2.corp.google.com/propose_membership?parent=100213927583&child=$me.prod
#### Setup conductor
Conductor is a dart command line interface for common release tasks.Its instructions are in README.md.
#### [Googler only] Confirm access to Apple signing cert update doc
go/flutter-signing-apple-contractsAlso confirm access to valentine entries listed in that doc.
#### [Googler only] Access release engineer doc
Confirm access to go/release-eng-retros12345678910111213141516# customer_testing
This tool checks out <https://github.com/flutter/tests> at the commit SHAspecified in [`tests.version`](tests.version), and runs the tests registered toverify that end-user apps and libraries are working at the current tip-of-treeof Flutter.
To (locally) test a specific SHA, use `ci.dart`:
```shcd dev/customer_testingdart ci.dart [sha]```
Or, to update the SHA for our CI, edit and send a PR for[`tests.version`](tests.version).5 unmodified lines67891011121314151617181920212223242526275 unmodified linesREM This should match the ci.sh file in this directory.REM This is called from the LUCI recipes:REM https://flutter.googlesource.com/recipes/+/refs/heads/master/recipe_modules/adhoc_validation/resources/customer_testing.batECHO.ECHO Updating pub packages...CALL dart pub getCD ..\toolsCALL dart pub getCD ..\customer_testingECHO.ECHO Finding correct version of customer tests...CMD /S /C "IF EXIST "..\..\bin\cache\pkg\tests\" RMDIR /S /Q ..\..\bin\cache\pkg\tests"git clone https://github.com/flutter/tests.git ..\..\bin\cache\pkg\testsFOR /F "usebackq tokens=*" %%a IN (`dart --enable-asserts ..\tools\bin\find_commit.dart . master ..\..\bin\cache\pkg\tests main`) DO git -C ..\..\bin\cache\pkg\tests checkout %%aECHO.ECHO Running tests...CD ..\..\bin\cache\pkg\testsCALL dart --enable-asserts ..\..\..\..\dev\customer_testing\run_tests.dart --verbose --skip-on-fetch-failure --skip-template registry/*.test5 unmodified lines678910111213141516171819202122235 unmodified linesREM This should match the ci.sh file in this directory.REM This is called from the LUCI recipes:REM https://github.com/flutter/flutter/blob/main/dev/bots/suite_runners/run_customer_testing_tests.dartREM This script does not assume that "flutter update-packages" has beenREM run, to allow CIs to save time by skipping that steps since it'sREM largely not needed to run the flutter/tests tests.REMREM However, we do need to update this directory.SETLOCALcd /d %~dp0ECHO.ECHO Updating pub packages...CALL dart pub getREM Run the cross-platform script.CALL ..\..\bin\dart.bat ci.dart
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091// Copyright 2014 The Flutter Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.
import 'dart:io' as io;
import 'package:path/path.dart' as p;
/// To run this script, either:////// ```sh/// cd dev/customer_testing/// dart ci.dart [sha]/// ```////// Or:////// ```sh/// ./dev/customer_testing/ci.sh/// ./dev/customer_testing/ci.bat/// ```void main(List<String> args) async { final String sha; if (args.isEmpty) { sha = io.File('tests.version').readAsStringSync().trim(); } else if (args.length == 1) { sha = args.first; } else { io.stderr.writeln('Usage: dart ci.dart [sha]'); io.exitCode = 1; return; }
final String flutterRootPath = p.canonicalize('../../'); final io.Directory testsCacheDir = io.Directory( p.join(flutterRootPath, 'bin', 'cache', 'pkg', 'tests'), );
if (testsCacheDir.existsSync()) { io.stderr.writeln('Cleaning up existing repo: ${testsCacheDir.path}'); testsCacheDir.deleteSync(recursive: true); }
io.stderr.writeln('Cloning flutter/tests'); final io.Process clone = await io.Process.start('git', <String>[ 'clone', '--depth', '1', 'https://github.com/flutter/tests.git', testsCacheDir.path, ], mode: io.ProcessStartMode.inheritStdio); if ((await clone.exitCode) != 0) { io.exitCode = 1; return; }
io.stderr.writeln('Fetching/checking out $sha'); final io.Process fetch = await io.Process.start( 'git', <String>['fetch', 'origin', sha], mode: io.ProcessStartMode.inheritStdio, workingDirectory: testsCacheDir.path, ); if ((await fetch.exitCode) != 0) { io.exitCode = 1; return; } final io.Process checkout = await io.Process.start( 'git', <String>['checkout', sha], mode: io.ProcessStartMode.inheritStdio, workingDirectory: testsCacheDir.path, ); if ((await checkout.exitCode) != 0) { io.exitCode = 1; return; }
io.stderr.writeln('Running tests...'); final io.Process test = await io.Process.start('dart', <String>[ '--enable-asserts', 'run_tests.dart', '--skip-on-fetch-failure', '--skip-template', p.posix.joinAll(<String>[...p.split(testsCacheDir.path), 'registry', '*.test']), ], mode: io.ProcessStartMode.inheritStdio); if ((await test.exitCode) != 0) { io.exitCode = 1; return; }}4 unmodified lines56789101112131415161718192021222324252627282930313233343536374 unmodified lines# This should match the ci.bat file in this directory.# This is called from .cirrus.yml and the LUCI recipes:# https://flutter.googlesource.com/recipes/+/refs/heads/master/recipe_modules/adhoc_validation/resources/customer_testing.shset -ex# This script does not assume that "flutter update-packages" has been# run, to allow CIs to save time by skipping that steps since it's# largely not needed to run the flutter/tests tests.## However, we do need to update this directory and the tools directory.dart pub get(cd ../tools; dart pub get) # used for find_commit.dart below# Next we need to update the flutter/tests checkout.## We use find_commit.dart so that we pull the version of flutter/tests# that was contemporary when the branch we are on was created. That# way, we can still run the tests on long-lived branches without being# affected by breaking changes on trunk causing changes to the tests# that wouldn't work on the long-lived branch.## (This also prevents trunk from suddenly failing when tests are# revved on flutter/tests -- if you rerun a passing customer_tests# shard, it should still pass, even if we rolled one of the tests.)rm -rf ../../bin/cache/pkg/testsgit clone https://github.com/flutter/tests.git ../../bin/cache/pkg/testsgit -C ../../bin/cache/pkg/tests checkout `dart --enable-asserts ../tools/bin/find_commit.dart . master ../../bin/cache/pkg/tests main`# Finally, run the tests.dart --enable-asserts run_tests.dart --verbose --skip-on-fetch-failure --skip-template ../../bin/cache/pkg/tests/registry/*.test4 unmodified lines5678910111213141516171819202122232425262728293031323334354 unmodified lines# This should match the ci.bat file in this directory.# This is called from the LUCI recipes:# https://github.com/flutter/flutter/blob/main/dev/bots/suite_runners/run_customer_testing_tests.dartset -efunction script_location() {local script_location="${BASH_SOURCE[0]}"# Resolve symlinkswhile [[ -h "$script_location" ]]; doDIR="$(cd -P "$( dirname "$script_location")" >/dev/null && pwd)"script_location="$(readlink "$script_location")"[[ "$script_location" != /* ]] && script_location="$DIR/$script_location"donecd -P "$(dirname "$script_location")" >/dev/null && pwd}# So that users can run this script from anywhere and it will work as expected.cd "$(script_location)"# This script does not assume that "flutter update-packages" has been# run, to allow CIs to save time by skipping that steps since it's# largely not needed to run the flutter/tests tests.## However, we do need to update this directory.dart pub get# Run the cross-platform script.../../bin/dart run ci.dart
1 unmodified line2345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758591 unmodified linedescription: Tool to run the tests listed in the flutter/tests repository.environment:sdk: '>=3.2.0-0 <4.0.0'dependencies:args: 2.4.2path: 1.9.0glob: 2.1.2meta: 1.11.0async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"dev_dependencies:test: 1.24.9_fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"# PUBSPEC CHECKSUM: fb601 unmodified line234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859601 unmodified linedescription: Tool to run the tests listed in the flutter/tests repository.environment:sdk: ^3.7.0-0dependencies:args: 2.7.0path: 1.9.1glob: 2.1.3meta: 1.16.0async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"dev_dependencies:test: 1.25.15_fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"# PUBSPEC CHECKSUM: c1ed
16 unmodified lines171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656615 unmodified lines82838485868788899091929394952 unmodified lines98991001011021031041051061071081091101111121131142 unmodified lines11711811912012112212316 unmodified lines// Return true if successful, false if failed.Future<bool> run(List<String> arguments) async {final ArgParser argParser = ArgParser(allowTrailingOptions: false,usageLineLength: 72,)..addOption('repeat',defaultsTo: '1',help: 'How many times to run each test. Set to a high value to look for flakes. If a test specifies a number of iterations, the lower of the two values is used.',valueHelp: 'count',)..addOption('shards',defaultsTo: '1',help: 'How many shards to split the tests into. Used in continuous integration.',valueHelp: 'count',)..addOption('shard-index',defaultsTo: '0',help: 'The current shard to run the tests with the range [0 .. shards - 1]. Used in continuous integration.',valueHelp: 'count',)..addFlag('skip-on-fetch-failure',help: 'Whether to skip tests that we fail to download.',)..addFlag('skip-template',help: 'Whether to skip tests named "template.test".',)..addFlag('verbose',help: 'Describe what is happening in detail.',)..addFlag('help',negatable: false,help: 'Print this help message.',);void printHelp() {print('run_tests.dart [options...] path/to/file1.test path/to/file2.test...');print('For details on the test registry format, see:');print(' https://github.com/flutter/tests/blob/master/registry/template.test');print('');print(argParser.usage);print('');15 unmodified linesfinal bool help = parsedArguments['help'] as bool;final int? numberShards = int.tryParse(parsedArguments['shards'] as String);final int? shardIndex = int.tryParse(parsedArguments['shard-index'] as String);final List<File> files = parsedArguments.rest.expand((String path) => Glob(path).listFileSystemSync(const LocalFileSystem())).whereType<File>().where((File file) => !skipTemplate || path.basename(file.path) != 'template.test').toList();if (help || repeat == null || files.isEmpty || numberShards == null || numberShards <= 0 || shardIndex == null || shardIndex < 0) {printHelp();if (verbose) {if (repeat == null) {2 unmodified linesif (numberShards == null) {print('Error: Could not parse shards count ("${parsedArguments['shards']}")');} else if (numberShards < 1) {print('Error: The specified shards count ($numberShards) is less than 1. It must be greater than zero.');}if (shardIndex == null) {print('Error: Could not parse shard index ("${parsedArguments['shard-index']}")');} else if (shardIndex < 0) {print('Error: The specified shard index ($shardIndex) is negative. It must be in the range [0 .. shards - 1].');}if (parsedArguments.rest.isEmpty) {print('Error: No file arguments specified.');} else if (files.isEmpty) {print('Error: File arguments ("${parsedArguments.rest.join('", "')}") did not identify any real files.');}}return help;2 unmodified linesif (shardIndex > numberShards - 1) {print('Error: The specified shard index ($shardIndex) is more than the specified number of shards ($numberShards). ''It must be in the range [0 .. shards - 1].');return false;}16 unmodified lines1718192021222324252627282930313233343536373839404142434445464748495051525315 unmodified lines6970717273747576777879808182838485868788899091922 unmodified lines95969798991001011021031041051061071081091101111121131141151161172 unmodified lines12012112212312412512616 unmodified lines// Return true if successful, false if failed.Future<bool> run(List<String> arguments) async {final ArgParser argParser =ArgParser(allowTrailingOptions: false, usageLineLength: 72)..addOption('repeat',defaultsTo: '1',help:'How many times to run each test. Set to a high value to look for flakes. If a test specifies a number of iterations, the lower of the two values is used.',valueHelp: 'count',)..addOption('shards',defaultsTo: '1',help: 'How many shards to split the tests into. Used in continuous integration.',valueHelp: 'count',)..addOption('shard-index',defaultsTo: '0',help:'The current shard to run the tests with the range [0 .. shards - 1]. Used in continuous integration.',valueHelp: 'count',)..addFlag('skip-on-fetch-failure', help: 'Whether to skip tests that we fail to download.')..addFlag('skip-template', help: 'Whether to skip tests named "template.test".')..addFlag('verbose', help: 'Describe what is happening in detail.')..addFlag('help', negatable: false, help: 'Print this help message.');void printHelp() {print('run_tests.dart [options...] path/to/file1.test path/to/file2.test...');print('For details on the test registry format, see:');print(' https://github.com/flutter/tests/blob/main/registry/template.test');print('');print(argParser.usage);print('');15 unmodified linesfinal bool help = parsedArguments['help'] as bool;final int? numberShards = int.tryParse(parsedArguments['shards'] as String);final int? shardIndex = int.tryParse(parsedArguments['shard-index'] as String);final List<File> files =parsedArguments.rest.expand((String path) => Glob(path).listFileSystemSync(const LocalFileSystem())).whereType<File>().where((File file) => !skipTemplate || path.basename(file.path) != 'template.test').toList();if (files.isEmpty && parsedArguments.rest.isNotEmpty) {print('No files resolved from glob(s): ${parsedArguments.rest}');}if (help ||repeat == null ||files.isEmpty ||numberShards == null ||numberShards <= 0 ||shardIndex == null ||shardIndex < 0) {printHelp();if (verbose) {if (repeat == null) {2 unmodified linesif (numberShards == null) {print('Error: Could not parse shards count ("${parsedArguments['shards']}")');} else if (numberShards < 1) {print('Error: The specified shards count ($numberShards) is less than 1. It must be greater than zero.',);}if (shardIndex == null) {print('Error: Could not parse shard index ("${parsedArguments['shard-index']}")');} else if (shardIndex < 0) {print('Error: The specified shard index ($shardIndex) is negative. It must be in the range [0 .. shards - 1].',);}if (parsedArguments.rest.isEmpty) {print('Error: No file arguments specified.');} else if (files.isEmpty) {print('Error: File arguments ("${parsedArguments.rest.join('", "')}") did not identify any real files.',);}}return help;2 unmodified linesif (shardIndex > numberShards - 1) {print('Error: The specified shard index ($shardIndex) is more than the specified number of shards ($numberShards). ''It must be in the range [0 .. shards - 1].',);return false;}
13566ea0e688123cecc2b605bda13732adc1e610a27 unmodified lines2829303132333421 unmodified lines56575859606162636413 unmodified lines787980818283133 unmodified lines2172182192202212222231 unmodified line2252262272282292302312324 unmodified lines23723823924024124224327 unmodified linesTasks specify the type of device they are to run on (`linux_android`, `mac_ios`,`mac_android`, `windows_android`, etc). When a device in the lab is free, itwill pickup tasks that need to be completed.1. If the task succeeds, the test runner reports the success and uploads itsperformance metrics to Flutter's infrastructure. Not all tasks record21 unmodified lines### WarningsRunning the devicelab will do things to your environment.Notably, it will start and stop Gradle, for instance.### Running specific tests13 unmodified lines../../bin/cache/dart-sdk/bin/dart bin/run.dart -t test1 -t test2 -t test3```### Running tests against a local engine buildTo run device lab tests against a local engine build, pass the appropriate133 unmodified linesfile in `bin/tasks` without the `.dart` extension.1. Add target to[.ci.yaml](https://github.com/flutter/flutter/blob/master/.ci.yaml)* Mirror an existing one that has the recipe `devicelab_drone`If your test needs to run on multiple operating systems, create a separate1 unmodified line## Adding tests to presubmitFlutter's DeviceLab has a limited capacity in presubmit. File an infra ticketto investigate feasibility of adding a test to presubmit.## Migrating to build and test model4 unmodified linesSteps:1. Update the task class to extend [`BuildTestTask`](https://github.com/flutter/flutter/blob/master/dev/devicelab/lib/tasks/build_test_task.dart)- Override function `getBuildArgs`- Override function `getTestArgs`- Override function `parseTaskResult`27 unmodified lines2829303132333421 unmodified lines5657585960616263646566676869707113 unmodified lines8586878889909192939495969798133 unmodified lines2322332342352362372381 unmodified line2402412422432442452462474 unmodified lines25225325425525625725827 unmodified linesTasks specify the type of device they are to run on (`linux_android`, `mac_ios`,`mac_android`, `windows_android`, etc). When a device in the lab is free, itwill pick up tasks that need to be completed.1. If the task succeeds, the test runner reports the success and uploads itsperformance metrics to Flutter's infrastructure. Not all tasks record21 unmodified lines### WarningsRunning DeviceLab tests locally will do things to your environment.Notably:- It will automatically start and stop Gradle on your machine- It will automatically reboot your target Android or iOS device after a certain amount of tests before running any additional tests on it. See the `checkForRebootRequired()` in `flutter/dev/devicelab/lib/framework/framework.dart` and `device.reboot()` in `flutter/dev/devicelab/lib/framework/devices.dart` for more.### Running tests in `test/...``dart test test/{NAME_OF_TEST}`### Running specific tests13 unmodified lines../../bin/cache/dart-sdk/bin/dart bin/run.dart -t test1 -t test2 -t test3```### Running tests without automatic retriesBy default, DeviceLab tests have an automatic retry logic built in. Any failing tests will be retried 2 additional times. This can be skipped by specifying the `--exit` option:```sh../../bin/cache/dart-sdk/bin/dart bin/test_runner.dart test --exit -t {NAME_OF_TEST}```### Running tests against a local engine buildTo run device lab tests against a local engine build, pass the appropriate133 unmodified linesfile in `bin/tasks` without the `.dart` extension.1. Add target to[.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml)* Mirror an existing one that has the recipe `devicelab_drone`If your test needs to run on multiple operating systems, create a separate1 unmodified line## Adding tests to presubmitFlutter's DeviceLab has a limited capacity in presubmit. File a `team-infra`issue to investigate feasibility of adding a test to presubmit.## Migrating to build and test model4 unmodified linesSteps:1. Update the task class to extend [`BuildTestTask`](https://github.com/flutter/flutter/blob/main/dev/devicelab/lib/tasks/build_test_task.dart)- Override function `getBuildArgs`- Override function `getTestArgs`- Override function `parseTaskResult`
2 unmodified lines3456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475762 unmodified lineshomepage: https://github.com/flutter/flutterenvironment:sdk: '>=3.2.0-0 <4.0.0'dependencies:archive: 3.3.2args: 2.4.2file: 7.0.0http: 0.13.6logging: 1.2.0meta: 1.11.0metrics_center: 1.0.12path: 1.9.0platform: 3.1.4process: 5.0.2pubspec_parse: 1.2.3shelf: 1.4.1shelf_static: 1.1.2stack_trace: 1.11.1vm_service: 13.0.0web: 0.4.0webkit_inspection_protocol: 1.2.1xml: 6.5.0standard_message_codec: 0.0.1+4_discoveryapis_commons: 1.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"checked_yaml: 2.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"gcloud: 0.8.11 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"googleapis: 3.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"googleapis_auth: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"json_annotation: 4.8.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"petitparser: 6.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"retry: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"dev_dependencies:test: 1.24.9_fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"# PUBSPEC CHECKSUM: ba432 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677782 unmodified lineshomepage: https://github.com/flutter/flutterenvironment:sdk: ^3.7.0-0dependencies:archive: 3.6.1args: 2.7.0file: 7.0.1http: 1.3.0logging: 1.3.0meta: 1.16.0metrics_center: 1.0.13path: 1.9.1platform: 3.1.6process: 5.0.3pubspec_parse: 1.5.0shelf: 1.4.2shelf_static: 1.1.3stack_trace: 1.12.1vm_service: 15.0.0web: 1.1.1webkit_inspection_protocol: 1.2.1xml: 6.5.0standard_message_codec: 0.0.1+4_discoveryapis_commons: 1.0.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"checked_yaml: 2.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"gcloud: 0.8.18 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"google_identity_services_web: 0.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"googleapis: 12.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"googleapis_auth: 1.6.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"json_annotation: 4.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"petitparser: 6.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"retry: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"dev_dependencies:test: 1.25.15_fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"# PUBSPEC CHECKSUM: 00d7
24 unmodified lines2526272829303124 unmodified lines* [Web Embedder](dart-ui_web/dart-ui_web-library.html)* [Installation](https://flutter.dev/docs/get-started/install)* [Codelabs](https://flutter.dev/docs/codelabs)* [Contributing to Flutter](https://github.com/flutter/flutter/blob/master/CONTRIBUTING.md)## Offline Documentation24 unmodified lines2526272829303124 unmodified lines* [Web Embedder](dart-ui_web/dart-ui_web-library.html)* [Installation](https://flutter.dev/docs/get-started/install)* [Codelabs](https://flutter.dev/docs/codelabs)* [Contributing to Flutter](https://github.com/flutter/flutter/blob/main/CONTRIBUTING.md)## Offline Documentation
1 unmodified line2341 unmodified line<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-ND4LWWZ"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- End Google Tag Manager (noscript) -->1 unmodified line234567891 unmodified line<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-ND4LWWZ"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- End Google Tag Manager (noscript) --><!-- Cookie Banner --><div class="glue-footer"></div><button aria-hidden="true" class="glue-footer__link glue-cookie-notification-bar-control">Cookies management controls</button><script src="https://www.gstatic.com/glue/cookienotificationbar/cookienotificationbar.min.js" data-glue-cookie-notification-bar-category="2B"></script><!-- End Cookie Banner -->
4 unmodified lines5674 unmodified lines'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f)})(window,document,'script','dataLayer','GTM-ND4LWWZ');</script><!-- End Google Tag Manager -->4 unmodified lines56789104 unmodified lines'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f)})(window,document,'script','dataLayer','GTM-ND4LWWZ');</script><!-- End Google Tag Manager --><!-- Cookie Banner --><link rel="stylesheet" href="https://www.gstatic.com/glue/cookienotificationbar/cookienotificationbar.min.css"><!-- End Cookie Banner -->
1 unmodified line23456789101112131415161718191 unmodified linepublish_to: 'none'environment:sdk: '>=3.2.0-0 <4.0.0'dependencies:args: 2.4.2file: 7.0.0package_config: 2.1.0path: 1.9.0process: 5.0.2vm_snapshot_analysis: 0.7.6collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"platform: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"# PUBSPEC CHECKSUM: 018d1 unmodified line23456789101112131415161718191 unmodified linepublish_to: 'none'environment:sdk: ^3.7.0-0dependencies:args: 2.7.0file: 7.0.1package_config: 2.2.0path: 1.9.1process: 5.0.3vm_snapshot_analysis: 0.7.6collection: 1.19.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"meta: 1.16.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"platform: 3.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"# PUBSPEC CHECKSUM: 069b
8 unmodified lines91011121314152 unmodified lines1819208 unmodified linesIf you want to run a driver test locally, to debug a problem with a test, youcan use this command from the appropriate subdirectory:```shellflutter drive -t <test> --driver <driver>```2 unmodified lines```shflutter drive -t lib/keyboard_resize.dart --driver test_driver/keyboard_resize_test.dart```8 unmodified lines91011121314152 unmodified lines181920212223248 unmodified linesIf you want to run a driver test locally, to debug a problem with a test, youcan use this command from the appropriate subdirectory:```shflutter drive -t <test> --driver <driver>```2 unmodified lines```shflutter drive -t lib/keyboard_resize.dart --driver test_driver/keyboard_resize_test.dart```## New tests require new CI runnerAdding code to this directory will not automatically cause it to be run by any already existing ci tooling.This directory is intentinally a "choose your own adventure" piece of tooling.
5 unmodified lines6789101112131415161718192021222324252627285 unmodified lines// To update all the build.gradle files in the Flutter repo,// See dev/tools/bin/generate_gradle_lockfiles.dart.buildscript {ext.kotlin_version = '1.7.10'repositories {google()mavenCentral()}dependencies {classpath 'com.android.tools.build:gradle:7.3.0'classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"}configurations.classpath {resolutionStrategy.activateDependencyLocking()}}allprojects {repositories {google()5 unmodified lines678910115 unmodified lines// To update all the build.gradle files in the Flutter repo,// See dev/tools/bin/generate_gradle_lockfiles.dart.allprojects {repositories {google()
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263641 unmodified line666768697071727374757677787980818283848586878889909192932 unmodified lines96979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152# This is a Gradle generated file for dependency locking.# Manual edits can break the build and are not advised.# This file is expected to be part of source control.androidx.databinding:databinding-common:7.3.0=classpathandroidx.databinding:databinding-compiler-common:7.3.0=classpathcom.android.databinding:baseLibrary:7.3.0=classpathcom.android.tools.analytics-library:crash:30.3.0=classpathcom.android.tools.analytics-library:protos:30.3.0=classpathcom.android.tools.analytics-library:shared:30.3.0=classpathcom.android.tools.analytics-library:tracker:30.3.0=classpathcom.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpathcom.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpathcom.android.tools.build:aapt2-proto:7.3.0-8691043=classpathcom.android.tools.build:aaptcompiler:7.3.0=classpathcom.android.tools.build:apksig:7.3.0=classpathcom.android.tools.build:apkzlib:7.3.0=classpathcom.android.tools.build:builder-model:7.3.0=classpathcom.android.tools.build:builder-test-api:7.3.0=classpathcom.android.tools.build:builder:7.3.0=classpathcom.android.tools.build:bundletool:1.9.0=classpathcom.android.tools.build:gradle-api:7.3.0=classpathcom.android.tools.build:gradle:7.3.0=classpathcom.android.tools.build:manifest-merger:30.3.0=classpathcom.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpathcom.android.tools.ddms:ddmlib:30.3.0=classpathcom.android.tools.layoutlib:layoutlib-api:30.3.0=classpathcom.android.tools.lint:lint-model:30.3.0=classpathcom.android.tools.lint:lint-typedef-remover:30.3.0=classpathcom.android.tools.utp:android-device-provider-ddmlib-proto:30.3.0=classpathcom.android.tools.utp:android-device-provider-gradle-proto:30.3.0=classpathcom.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.3.0=classpathcom.android.tools.utp:android-test-plugin-host-coverage-proto:30.3.0=classpathcom.android.tools.utp:android-test-plugin-host-retention-proto:30.3.0=classpathcom.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.3.0=classpathcom.android.tools:annotations:30.3.0=classpathcom.android.tools:common:30.3.0=classpathcom.android.tools:dvlib:30.3.0=classpathcom.android.tools:repository:30.3.0=classpathcom.android.tools:sdk-common:30.3.0=classpathcom.android.tools:sdklib:30.3.0=classpathcom.android:signflinger:7.3.0=classpathcom.android:zipflinger:7.3.0=classpathcom.github.gundy:semver4j:0.16.4=classpathcom.google.android:annotations:4.1.1.4=classpathcom.google.api.grpc:proto-google-common-protos:2.0.1=classpathcom.google.auto.value:auto-value-annotations:1.6.2=classpathcom.google.code.findbugs:jsr305:3.0.2=classpathcom.google.code.gson:gson:2.8.9=classpathcom.google.crypto.tink:tink:1.3.0-rc2=classpathcom.google.dagger:dagger:2.28.3=classpathcom.google.errorprone:error_prone_annotations:2.4.0=classpathcom.google.flatbuffers:flatbuffers-java:1.12.0=classpathcom.google.guava:failureaccess:1.0.1=classpathcom.google.guava:guava:30.1-jre=classpathcom.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpathcom.google.j2objc:j2objc-annotations:1.3=classpathcom.google.jimfs:jimfs:1.1=classpathcom.google.protobuf:protobuf-java-util:3.17.2=classpathcom.google.protobuf:protobuf-java:3.17.2=classpathcom.google.testing.platform:core-proto:0.0.8-alpha07=classpathcom.googlecode.json-simple:json-simple:1.1=classpathcom.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpathcom.squareup:javapoet:1.10.0=classpathcom.squareup:javawriter:2.5.0=classpath1 unmodified linecom.sun.istack:istack-commons-runtime:3.0.8=classpathcom.sun.xml.fastinfoset:FastInfoset:1.2.16=classpathcommons-codec:commons-codec:1.11=classpathcommons-io:commons-io:2.4=classpathcommons-logging:commons-logging:1.2=classpathde.undercouch:gradle-download-task:4.1.1=classpathio.grpc:grpc-api:1.39.0=classpathio.grpc:grpc-context:1.39.0=classpathio.grpc:grpc-core:1.39.0=classpathio.grpc:grpc-netty:1.39.0=classpathio.grpc:grpc-protobuf-lite:1.39.0=classpathio.grpc:grpc-protobuf:1.39.0=classpathio.grpc:grpc-stub:1.39.0=classpathio.netty:netty-buffer:4.1.52.Final=classpathio.netty:netty-codec-http2:4.1.52.Final=classpathio.netty:netty-codec-http:4.1.52.Final=classpathio.netty:netty-codec-socks:4.1.52.Final=classpathio.netty:netty-codec:4.1.52.Final=classpathio.netty:netty-common:4.1.52.Final=classpathio.netty:netty-handler-proxy:4.1.52.Final=classpathio.netty:netty-handler:4.1.52.Final=classpathio.netty:netty-resolver:4.1.52.Final=classpathio.netty:netty-transport:4.1.52.Final=classpathio.perfmark:perfmark-api:0.23.0=classpathit.unimi.dsi:fastutil:8.4.0=classpathjakarta.activation:jakarta.activation-api:1.2.1=classpathjakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpathjavax.annotation:javax.annotation-api:1.3.2=classpath2 unmodified linesnet.java.dev.jna:jna:5.6.0=classpathnet.sf.jopt-simple:jopt-simple:4.9=classpathnet.sf.kxml:kxml2:2.3.0=classpathorg.apache.commons:commons-compress:1.20=classpathorg.apache.httpcomponents:httpclient:4.5.13=classpathorg.apache.httpcomponents:httpcore:4.4.13=classpathorg.apache.httpcomponents:httpmime:4.5.6=classpathorg.bitbucket.b_c:jose4j:0.7.0=classpathorg.bouncycastle:bcpkix-jdk15on:1.67=classpathorg.bouncycastle:bcprov-jdk15on:1.67=classpathorg.checkerframework:checker-qual:3.5.0=classpathorg.codehaus.mojo:animal-sniffer-annotations:1.19=classpathorg.glassfish.jaxb:jaxb-runtime:2.3.2=classpathorg.glassfish.jaxb:txw2:2.3.2=classpathorg.jdom:jdom2:2.0.6=classpathorg.jetbrains.intellij.deps:trove4j:1.0.20200330=classpathorg.jetbrains.kotlin:kotlin-android-extensions:1.7.10=classpathorg.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.7.10=classpathorg.jetbrains.kotlin:kotlin-build-common:1.7.10=classpathorg.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=classpathorg.jetbrains.kotlin:kotlin-compiler-runner:1.7.10=classpathorg.jetbrains.kotlin:kotlin-daemon-client:1.7.10=classpathorg.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.7.10=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin-model:1.7.10=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10=classpathorg.jetbrains.kotlin:kotlin-klib-commonizer-api:1.7.10=classpathorg.jetbrains.kotlin:kotlin-native-utils:1.7.10=classpathorg.jetbrains.kotlin:kotlin-project-model:1.7.10=classpathorg.jetbrains.kotlin:kotlin-reflect:1.5.31=classpathorg.jetbrains.kotlin:kotlin-scripting-common:1.7.10=classpathorg.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.7.10=classpathorg.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.7.10=classpathorg.jetbrains.kotlin:kotlin-scripting-jvm:1.7.10=classpathorg.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpathorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpathorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpathorg.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpathorg.jetbrains.kotlin:kotlin-tooling-core:1.7.10=classpathorg.jetbrains.kotlin:kotlin-tooling-metadata:1.7.10=classpathorg.jetbrains.kotlin:kotlin-util-io:1.7.10=classpathorg.jetbrains.kotlin:kotlin-util-klib:1.7.10=classpathorg.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpathorg.jetbrains:annotations:13.0=classpathorg.json:json:20180813=classpathorg.jvnet.staxex:stax-ex:1.8.1=classpathorg.ow2.asm:asm-analysis:9.1=classpathorg.ow2.asm:asm-commons:9.1=classpathorg.ow2.asm:asm-tree:9.1=classpathorg.ow2.asm:asm-util:9.1=classpathorg.ow2.asm:asm:9.1=classpathorg.slf4j:slf4j-api:1.7.30=classpathorg.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpathxerces:xercesImpl:2.12.0=classpathxml-apis:xml-apis:1.4.01=classpathempty=12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667681 unmodified line7071727374757677787980818283848586878889909192939495962 unmodified lines99100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158# This is a Gradle generated file for dependency locking.# Manual edits can break the build and are not advised.# This file is expected to be part of source control.androidx.databinding:databinding-common:8.7.0=classpathandroidx.databinding:databinding-compiler-common:8.7.0=classpathcom.android.application:com.android.application.gradle.plugin:8.7.0=classpathcom.android.databinding:baseLibrary:8.7.0=classpathcom.android.tools.analytics-library:crash:31.7.0=classpathcom.android.tools.analytics-library:protos:31.7.0=classpathcom.android.tools.analytics-library:shared:31.7.0=classpathcom.android.tools.analytics-library:tracker:31.7.0=classpathcom.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpathcom.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpathcom.android.tools.build:aapt2-proto:8.7.0-12006047=classpathcom.android.tools.build:aaptcompiler:8.7.0=classpathcom.android.tools.build:apksig:8.7.0=classpathcom.android.tools.build:apkzlib:8.7.0=classpathcom.android.tools.build:builder-model:8.7.0=classpathcom.android.tools.build:builder-test-api:8.7.0=classpathcom.android.tools.build:builder:8.7.0=classpathcom.android.tools.build:bundletool:1.17.1=classpathcom.android.tools.build:gradle-api:8.7.0=classpathcom.android.tools.build:gradle-settings-api:8.7.0=classpathcom.android.tools.build:gradle:8.7.0=classpathcom.android.tools.build:manifest-merger:31.7.0=classpathcom.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpathcom.android.tools.ddms:ddmlib:31.7.0=classpathcom.android.tools.layoutlib:layoutlib-api:31.7.0=classpathcom.android.tools.lint:lint-model:31.7.0=classpathcom.android.tools.lint:lint-typedef-remover:31.7.0=classpathcom.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=classpathcom.android.tools.utp:android-device-provider-gradle-proto:31.7.0=classpathcom.android.tools.utp:android-device-provider-profile-proto:31.7.0=classpathcom.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=classpathcom.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=classpathcom.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=classpathcom.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=classpathcom.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=classpathcom.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=classpathcom.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=classpathcom.android.tools:annotations:31.7.0=classpathcom.android.tools:common:31.7.0=classpathcom.android.tools:dvlib:31.7.0=classpathcom.android.tools:repository:31.7.0=classpathcom.android.tools:sdk-common:31.7.0=classpathcom.android.tools:sdklib:31.7.0=classpathcom.android:signflinger:8.7.0=classpathcom.android:zipflinger:8.7.0=classpathcom.google.android:annotations:4.1.1.4=classpathcom.google.api.grpc:proto-google-common-protos:2.17.0=classpathcom.google.auto.value:auto-value-annotations:1.6.2=classpathcom.google.code.findbugs:jsr305:3.0.2=classpathcom.google.code.gson:gson:2.10.1=classpathcom.google.crypto.tink:tink:1.7.0=classpathcom.google.dagger:dagger:2.28.3=classpathcom.google.errorprone:error_prone_annotations:2.18.0=classpathcom.google.flatbuffers:flatbuffers-java:1.12.0=classpathcom.google.guava:failureaccess:1.0.1=classpathcom.google.guava:guava:32.0.1-jre=classpathcom.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpathcom.google.j2objc:j2objc-annotations:2.8=classpathcom.google.jimfs:jimfs:1.1=classpathcom.google.protobuf:protobuf-java-util:3.22.3=classpathcom.google.protobuf:protobuf-java:3.22.3=classpathcom.google.testing.platform:core-proto:0.0.9-alpha02=classpathcom.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpathcom.squareup:javapoet:1.10.0=classpathcom.squareup:javawriter:2.5.0=classpath1 unmodified linecom.sun.istack:istack-commons-runtime:3.0.8=classpathcom.sun.xml.fastinfoset:FastInfoset:1.2.16=classpathcommons-codec:commons-codec:1.11=classpathcommons-io:commons-io:2.13.0=classpathcommons-logging:commons-logging:1.2=classpathio.grpc:grpc-api:1.57.0=classpathio.grpc:grpc-context:1.57.0=classpathio.grpc:grpc-core:1.57.0=classpathio.grpc:grpc-netty:1.57.0=classpathio.grpc:grpc-protobuf-lite:1.57.0=classpathio.grpc:grpc-protobuf:1.57.0=classpathio.grpc:grpc-stub:1.57.0=classpathio.netty:netty-buffer:4.1.93.Final=classpathio.netty:netty-codec-http2:4.1.93.Final=classpathio.netty:netty-codec-http:4.1.93.Final=classpathio.netty:netty-codec-socks:4.1.93.Final=classpathio.netty:netty-codec:4.1.93.Final=classpathio.netty:netty-common:4.1.93.Final=classpathio.netty:netty-handler-proxy:4.1.93.Final=classpathio.netty:netty-handler:4.1.93.Final=classpathio.netty:netty-resolver:4.1.93.Final=classpathio.netty:netty-transport-native-unix-common:4.1.93.Final=classpathio.netty:netty-transport:4.1.93.Final=classpathio.perfmark:perfmark-api:0.26.0=classpathjakarta.activation:jakarta.activation-api:1.2.1=classpathjakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpathjavax.annotation:javax.annotation-api:1.3.2=classpath2 unmodified linesnet.java.dev.jna:jna:5.6.0=classpathnet.sf.jopt-simple:jopt-simple:4.9=classpathnet.sf.kxml:kxml2:2.3.0=classpathorg.apache.commons:commons-compress:1.21=classpathorg.apache.httpcomponents:httpclient:4.5.14=classpathorg.apache.httpcomponents:httpcore:4.4.16=classpathorg.apache.httpcomponents:httpmime:4.5.6=classpathorg.bitbucket.b_c:jose4j:0.9.5=classpathorg.bouncycastle:bcpkix-jdk18on:1.77=classpathorg.bouncycastle:bcprov-jdk18on:1.77=classpathorg.bouncycastle:bcutil-jdk18on:1.77=classpathorg.checkerframework:checker-qual:3.33.0=classpathorg.codehaus.mojo:animal-sniffer-annotations:1.23=classpathorg.glassfish.jaxb:jaxb-runtime:2.3.2=classpathorg.glassfish.jaxb:txw2:2.3.2=classpathorg.jdom:jdom2:2.0.6=classpathorg.jetbrains.intellij.deps:trove4j:1.0.20200330=classpathorg.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.8.10=classpathorg.jetbrains.kotlin:kotlin-android-extensions:1.8.10=classpathorg.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.8.10=classpathorg.jetbrains.kotlin:kotlin-build-common:1.8.10=classpathorg.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.10=classpathorg.jetbrains.kotlin:kotlin-compiler-runner:1.8.10=classpathorg.jetbrains.kotlin:kotlin-daemon-client:1.8.10=classpathorg.jetbrains.kotlin:kotlin-daemon-embeddable:1.8.10=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin-api:1.8.10=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin-idea-proto:1.8.10=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.8.10=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin-model:1.8.10=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10=classpathorg.jetbrains.kotlin:kotlin-klib-commonizer-api:1.8.10=classpathorg.jetbrains.kotlin:kotlin-native-utils:1.8.10=classpathorg.jetbrains.kotlin:kotlin-project-model:1.8.10=classpathorg.jetbrains.kotlin:kotlin-reflect:1.9.20=classpathorg.jetbrains.kotlin:kotlin-scripting-common:1.8.10=classpathorg.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.8.10=classpathorg.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.8.10=classpathorg.jetbrains.kotlin:kotlin-scripting-jvm:1.8.10=classpathorg.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=classpathorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=classpathorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=classpathorg.jetbrains.kotlin:kotlin-stdlib:1.9.20=classpathorg.jetbrains.kotlin:kotlin-tooling-core:1.8.10=classpathorg.jetbrains.kotlin:kotlin-util-io:1.8.10=classpathorg.jetbrains.kotlin:kotlin-util-klib:1.8.10=classpathorg.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpathorg.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.0=classpathorg.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0=classpathorg.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.0=classpathorg.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0=classpathorg.jetbrains:annotations:23.0.0=classpathorg.jvnet.staxex:stax-ex:1.8.1=classpathorg.ow2.asm:asm-analysis:9.6=classpathorg.ow2.asm:asm-commons:9.6=classpathorg.ow2.asm:asm-tree:9.6=classpathorg.ow2.asm:asm-util:9.6=classpathorg.ow2.asm:asm:9.6=classpathorg.slf4j:slf4j-api:1.7.30=classpathorg.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpathempty=
123org.gradle.jvmargs=-Xmx4Gandroid.useAndroidX=trueandroid.enableJetifier=true123org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryErrorandroid.useAndroidX=trueandroid.enableJetifier=true
123456789101112131415161718192021222324252627287 unmodified lines3637383940414 unmodified lines464748495051525354555657585960616263646566676869707172737475767778798081821 unmodified line84858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121# This is a Gradle generated file for dependency locking.# Manual edits can break the build and are not advised.# This file is expected to be part of source control.androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathcom.android.tools.analytics-library:protos:27.1.3=lintClassPathcom.android.tools.analytics-library:shared:27.1.3=lintClassPathcom.android.tools.analytics-library:tracker:27.1.3=lintClassPath7 unmodified linescom.android.tools.build:gradle-api:4.1.3=lintClassPathcom.android.tools.build:manifest-merger:27.1.3=lintClassPathcom.android.tools.ddms:ddmlib:27.1.3=lintClassPathcom.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPathcom.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPathcom.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath4 unmodified linescom.android.tools.lint:lint-gradle:27.1.3=lintClassPathcom.android.tools.lint:lint-model:27.1.3=lintClassPathcom.android.tools.lint:lint:27.1.3=lintClassPathcom.android.tools:annotations:27.1.3=lintClassPathcom.android.tools:common:27.1.3=lintClassPathcom.android.tools:dvlib:27.1.3=lintClassPathcom.android.tools:repository:27.1.3=lintClassPathcom.android.tools:sdk-common:27.1.3=lintClassPathcom.android.tools:sdklib:27.1.3=lintClassPathcom.android:signflinger:4.1.3=lintClassPathcom.android:zipflinger:4.1.3=lintClassPathcom.google.code.findbugs:jsr305:3.0.2=lintClassPathcom.google.code.gson:gson:2.8.5=lintClassPathcom.google.errorprone:error_prone_annotations:2.3.2=lintClassPathcom.google.guava:failureaccess:1.0.1=lintClassPathcom.google.guava:guava:28.1-jre=lintClassPathcom.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPathcom.google.j2objc:j2objc-annotations:1.3=lintClassPathcom.google.jimfs:jimfs:1.1=lintClassPathcom.google.protobuf:protobuf-java:3.10.0=lintClassPathcom.googlecode.json-simple:json-simple:1.1=lintClassPathcom.squareup:javawriter:2.5.0=lintClassPathcom.sun.activation:javax.activation:1.2.0=lintClassPathcom.sun.istack:istack-commons-runtime:3.0.7=lintClassPathcom.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPathcommons-codec:commons-codec:1.10=lintClassPathcommons-logging:commons-logging:1.2=lintClassPathit.unimi.dsi:fastutil:7.2.0=lintClassPathjavax.activation:javax.activation-api:1.2.0=lintClassPathjavax.inject:javax.inject:1=lintClassPathjavax.xml.bind:jaxb-api:2.3.1=lintClassPathnet.java.dev.jna:jna:5.6.0=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathnet.sf.jopt-simple:jopt-simple:4.9=lintClassPathnet.sf.kxml:kxml2:2.3.0=lintClassPathorg.apache.commons:commons-compress:1.12=lintClassPathorg.apache.httpcomponents:httpclient:4.5.6=lintClassPathorg.apache.httpcomponents:httpcore:4.4.10=lintClassPath1 unmodified lineorg.bouncycastle:bcpkix-jdk15on:1.56=lintClassPathorg.bouncycastle:bcprov-jdk15on:1.56=lintClassPathorg.checkerframework:checker-qual:2.8.1=lintClassPathorg.codehaus.groovy:groovy-all:2.4.15=lintClassPathorg.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPathorg.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPathorg.glassfish.jaxb:txw2:2.3.1=lintClassPathorg.jacoco:org.jacoco.agent:0.8.7=androidJacocoAntorg.jacoco:org.jacoco.ant:0.8.7=androidJacocoAntorg.jacoco:org.jacoco.core:0.8.7=androidJacocoAntorg.jacoco:org.jacoco.report:0.8.7=androidJacocoAntorg.jetbrains.intellij.deps:trove4j:1.0.20200330=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-compiler-embeddable:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-daemon-embeddable:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:1.7.10=kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-reflect:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-script-runtime:1.7.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugApiDependenciesMetadata,profileApiDependenciesMetadata,releaseApiDependenciesMetadataorg.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=debugAndroidTestCompileClasspath,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,implementationDependenciesMetadata,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugApiDependenciesMetadata,profileApiDependenciesMetadata,releaseApiDependenciesMetadataorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10=debugAndroidTestCompileClasspath,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,implementationDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugApiDependenciesMetadata,profileApiDependenciesMetadata,releaseApiDependenciesMetadataorg.jetbrains.kotlin:kotlin-stdlib:1.7.10=debugAndroidTestCompileClasspath,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,implementationDependenciesMetadata,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlinx:atomicfu:0.16.3=debugApiDependenciesMetadata,debugImplementationDependenciesMetadata,profileApiDependenciesMetadata,profileImplementationDependenciesMetadata,releaseApiDependenciesMetadata,releaseImplementationDependenciesMetadataorg.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.trove4j:trove4j:20160824=lintClassPathorg.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,implementationDependenciesMetadata,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,lintClassPath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jvnet.staxex:stax-ex:1.8=lintClassPathorg.ow2.asm:asm-analysis:7.0=lintClassPathorg.ow2.asm:asm-analysis:9.1=androidJacocoAnt1234567891011121314151617181920212223242526272829303132333435363738397 unmodified lines47484950515253544 unmodified lines59606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581 unmodified line160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219# This is a Gradle generated file for dependency locking.# Manual edits can break the build and are not advised.# This file is expected to be part of source control.androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspathandroidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugImplementationDependenciesMetadata,profileApiDependenciesMetadata,profileImplementationDependenciesMetadata,releaseApiDependenciesMetadata,releaseImplementationDependenciesMetadataandroidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspathandroidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspathandroidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathcom.android.tools.analytics-library:protos:27.1.3=lintClassPathcom.android.tools.analytics-library:shared:27.1.3=lintClassPathcom.android.tools.analytics-library:tracker:27.1.3=lintClassPath7 unmodified linescom.android.tools.build:gradle-api:4.1.3=lintClassPathcom.android.tools.build:manifest-merger:27.1.3=lintClassPathcom.android.tools.ddms:ddmlib:27.1.3=lintClassPathcom.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlibcom.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retentioncom.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPathcom.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPathcom.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath4 unmodified linescom.android.tools.lint:lint-gradle:27.1.3=lintClassPathcom.android.tools.lint:lint-model:27.1.3=lintClassPathcom.android.tools.lint:lint:27.1.3=lintClassPathcom.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlibcom.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlibcom.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradlecom.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradlecom.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradlecom.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradlecom.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-outputcom.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-outputcom.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installercom.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installercom.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coveragecom.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coveragecom.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-infocom.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-infocom.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-controlcom.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-controlcom.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcatcom.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcatcom.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retentioncom.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retentioncom.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retentioncom.android.tools:annotations:27.1.3=lintClassPathcom.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.android.tools:common:27.1.3=lintClassPathcom.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.android.tools:dvlib:27.1.3=lintClassPathcom.android.tools:repository:27.1.3=lintClassPathcom.android.tools:sdk-common:27.1.3=lintClassPathcom.android.tools:sdklib:27.1.3=lintClassPathcom.android:signflinger:4.1.3=lintClassPathcom.android:zipflinger:4.1.3=lintClassPathcom.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathcom.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPathcom.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.google.code.gson:gson:2.8.5=lintClassPathcom.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-controlcom.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.google.errorprone:error_prone_annotations:2.3.2=lintClassPathcom.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPathcom.google.guava:guava:28.1-jre=lintClassPathcom.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.google.guava:listenablefuture:1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspathcom.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPathcom.google.j2objc:j2objc-annotations:1.3=lintClassPathcom.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.google.jimfs:jimfs:1.1=lintClassPathcom.google.protobuf:protobuf-java:3.10.0=lintClassPathcom.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-controlcom.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugincom.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradlecom.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-corecom.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launchercom.googlecode.json-simple:json-simple:1.1=lintClassPathcom.squareup:javawriter:2.5.0=lintClassPathcom.sun.activation:javax.activation:1.2.0=lintClassPathcom.sun.istack:istack-commons-runtime:3.0.7=lintClassPathcom.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPathcommons-codec:commons-codec:1.10=lintClassPathcommons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retentioncommons-logging:commons-logging:1.2=lintClassPathio.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleio.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleit.unimi.dsi:fastutil:7.2.0=lintClassPathjavax.activation:javax.activation-api:1.2.0=lintClassPathjavax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlejavax.inject:javax.inject:1=lintClassPathjavax.xml.bind:jaxb-api:2.3.1=lintClassPathnet.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradlenet.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,kotlinCompilerClasspath,kotlinKlibCommonizerClasspathnet.sf.jopt-simple:jopt-simple:4.9=lintClassPathnet.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib,lintClassPathorg.apache.commons:commons-compress:1.12=lintClassPathorg.apache.httpcomponents:httpclient:4.5.6=lintClassPathorg.apache.httpcomponents:httpcore:4.4.10=lintClassPath1 unmodified lineorg.bouncycastle:bcpkix-jdk15on:1.56=lintClassPathorg.bouncycastle:bcprov-jdk15on:1.56=lintClassPathorg.checkerframework:checker-qual:2.8.1=lintClassPathorg.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleorg.codehaus.groovy:groovy-all:2.4.15=lintClassPathorg.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPathorg.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleorg.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPathorg.glassfish.jaxb:txw2:2.3.1=lintClassPathorg.jacoco:org.jacoco.agent:0.8.7=androidJacocoAntorg.jacoco:org.jacoco.ant:0.8.7=androidJacocoAntorg.jacoco:org.jacoco.core:0.8.7=androidJacocoAntorg.jacoco:org.jacoco.report:0.8.7=androidJacocoAntorg.jetbrains.intellij.deps:trove4j:1.0.20200330=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-build-common:1.9.20=kotlinBuildToolsApiClasspathorg.jetbrains.kotlin:kotlin-build-tools-api:1.9.20=kotlinBuildToolsApiClasspathorg.jetbrains.kotlin:kotlin-build-tools-impl:1.9.20=kotlinBuildToolsApiClasspathorg.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.20=kotlinBuildToolsApiClasspathorg.jetbrains.kotlin:kotlin-compiler-runner:1.9.20=kotlinBuildToolsApiClasspathorg.jetbrains.kotlin:kotlin-daemon-client:1.9.20=kotlinBuildToolsApiClasspathorg.jetbrains.kotlin:kotlin-daemon-embeddable:1.8.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-daemon-embeddable:1.9.20=kotlinBuildToolsApiClasspathorg.jetbrains.kotlin:kotlin-klib-commonizer-embeddable:1.8.10=kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-reflect:1.6.10=kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-script-runtime:1.8.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-script-runtime:1.9.20=kotlinBuildToolsApiClasspathorg.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-common:1.7.10=implementationDependenciesMetadataorg.jetbrains.kotlin:kotlin-stdlib-common:1.8.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10=implementationDependenciesMetadataorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleorg.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib:1.7.10=implementationDependenciesMetadataorg.jetbrains.kotlin:kotlin-stdlib:1.8.10=kotlinCompilerClasspath,kotlinKlibCommonizerClasspathorg.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,kotlinBuildToolsApiClasspathorg.jetbrains.kotlinx:atomicfu:0.20.2=debugApiDependenciesMetadata,debugImplementationDependenciesMetadata,profileApiDependenciesMetadata,profileImplementationDependenciesMetadata,releaseApiDependenciesMetadata,releaseImplementationDependenciesMetadataorg.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleorg.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=kotlinBuildToolsApiClasspathorg.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleorg.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradleorg.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugApiDependenciesMetadata,debugCompileClasspath,debugImplementationDependenciesMetadata,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileApiDependenciesMetadata,profileCompileClasspath,profileImplementationDependenciesMetadata,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseApiDependenciesMetadata,releaseCompileClasspath,releaseImplementationDependenciesMetadata,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.trove4j:trove4j:20160824=lintClassPathorg.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,debugApiDependenciesMetadata,debugImplementationDependenciesMetadata,implementationDependenciesMetadata,kotlinBuildToolsApiClasspath,kotlinCompilerClasspath,kotlinKlibCommonizerClasspath,lintClassPath,profileApiDependenciesMetadata,profileImplementationDependenciesMetadata,releaseApiDependenciesMetadata,releaseImplementationDependenciesMetadataorg.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jvnet.staxex:stax-ex:1.8=lintClassPathorg.ow2.asm:asm-analysis:7.0=lintClassPathorg.ow2.asm:asm-analysis:9.1=androidJacocoAnt
17 unmodified lines181920212223242526272817 unmodified linesincludeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")plugins {id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false}}include ":app"apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"17 unmodified lines18192021222324252627282930313233343536373839404117 unmodified linesincludeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")repositories {google()mavenCentral()gradlePluginPortal()}}buildscript {dependencyLocking {lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile")lockAllConfigurations()}}plugins {id "dev.flutter.flutter-plugin-loader" version "1.0.0"id "com.android.application" version "8.7.0" apply falseid "org.jetbrains.kotlin.android" version "1.8.10" apply false}include ":app"
9 unmodified lines101112131415161718192 unmodified lines2223242526272829303132157 unmodified lines19019119219319419519626 unmodified lines223224225226227228229230231232233234235236237238239240143 unmodified lines3843853863873883893903912 unmodified lines3943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604619 unmodified linesimport 'package:flutter/services.dart';void main() {runApp(const MaterialApp(title: 'Actions Demo',home: FocusDemo(),));}/// A class that can hold invocation information that an [UndoableAction] can2 unmodified lines/// Instances of this class are returned from [UndoableAction]s and placed on/// the undo stack when they are invoked.class Memento extends Object with Diagnosticable {const Memento({required this.name,required this.undo,required this.redo,});/// Returns true if this Memento can be used to undo.///157 unmodified linesif (buildContext == null) {return;}final UndoableActionDispatcher manager = Actions.of(primaryFocus?.context ?? FocusDemo.appKey.currentContext!) as UndoableActionDispatcher;manager.undo();}}26 unmodified lines}/// An action that can be undone.abstract class UndoableAction<T extends Intent> extends Action<T> { }class UndoableFocusActionBase<T extends Intent> extends UndoableAction<T> {@override@mustCallSuperMemento invoke(T intent) {final FocusNode? previousFocus = primaryFocus;return Memento(name: previousFocus!.debugLabel!, undo: () {previousFocus.requestFocus();}, redo: () {return invoke(intent);});}}143 unmodified linespolicy: ReadingOrderTraversalPolicy(),child: Shortcuts(shortcuts: <ShortcutActivator, Intent>{SingleActivator(LogicalKeyboardKey.keyZ, meta: Platform.isMacOS, control: !Platform.isMacOS, shift: true): const RedoIntent(),SingleActivator(LogicalKeyboardKey.keyZ, meta: Platform.isMacOS, control: !Platform.isMacOS): const UndoIntent(),},child: FocusScope(key: FocusDemo.appKey,2 unmodified lineschild: DefaultTextStyle(style: textTheme.headlineMedium!,child: Scaffold(appBar: AppBar(title: const Text('Actions Demo'),),body: Center(child: Builder(builder: (BuildContext context) {return Column(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'One'),DemoButton(name: 'Two'),DemoButton(name: 'Three'),],),const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'Four'),DemoButton(name: 'Five'),DemoButton(name: 'Six'),],),const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'Seven'),DemoButton(name: 'Eight'),DemoButton(name: 'Nine'),],),Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[Padding(padding: const EdgeInsets.all(8.0),child: ElevatedButton(onPressed: canUndo? () {Actions.invoke(context, const UndoIntent());}: null,child: const Text('UNDO'),),),Padding(padding: const EdgeInsets.all(8.0),child: ElevatedButton(onPressed: canRedo? () {Actions.invoke(context, const RedoIntent());}: null,child: const Text('REDO'),),),],),],);}),),),),9 unmodified lines101112131415162 unmodified lines19202122232425157 unmodified lines18318418518618718818919019126 unmodified lines218219220221222223224225226227228229230231232233234235236237238239143 unmodified lines3833843853863873883893903913923933943953963973983994004012 unmodified lines4044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724739 unmodified linesimport 'package:flutter/services.dart';void main() {runApp(const MaterialApp(title: 'Actions Demo', home: FocusDemo()));}/// A class that can hold invocation information that an [UndoableAction] can2 unmodified lines/// Instances of this class are returned from [UndoableAction]s and placed on/// the undo stack when they are invoked.class Memento extends Object with Diagnosticable {const Memento({required this.name, required this.undo, required this.redo});/// Returns true if this Memento can be used to undo.///157 unmodified linesif (buildContext == null) {return;}final UndoableActionDispatcher manager =Actions.of(primaryFocus?.context ?? FocusDemo.appKey.currentContext!)as UndoableActionDispatcher;manager.undo();}}26 unmodified lines}/// An action that can be undone.abstract class UndoableAction<T extends Intent> extends Action<T> {}class UndoableFocusActionBase<T extends Intent> extends UndoableAction<T> {@override@mustCallSuperMemento invoke(T intent) {final FocusNode? previousFocus = primaryFocus;return Memento(name: previousFocus!.debugLabel!,undo: () {previousFocus.requestFocus();},redo: () {return invoke(intent);},);}}143 unmodified linespolicy: ReadingOrderTraversalPolicy(),child: Shortcuts(shortcuts: <ShortcutActivator, Intent>{SingleActivator(LogicalKeyboardKey.keyZ,meta: Platform.isMacOS,control: !Platform.isMacOS,shift: true,):const RedoIntent(),SingleActivator(LogicalKeyboardKey.keyZ,meta: Platform.isMacOS,control: !Platform.isMacOS,):const UndoIntent(),},child: FocusScope(key: FocusDemo.appKey,2 unmodified lineschild: DefaultTextStyle(style: textTheme.headlineMedium!,child: Scaffold(appBar: AppBar(title: const Text('Actions Demo')),body: Center(child: Builder(builder: (BuildContext context) {return Column(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'One'),DemoButton(name: 'Two'),DemoButton(name: 'Three'),],),const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'Four'),DemoButton(name: 'Five'),DemoButton(name: 'Six'),],),const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'Seven'),DemoButton(name: 'Eight'),DemoButton(name: 'Nine'),],),Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[Padding(padding: const EdgeInsets.all(8.0),child: ElevatedButton(onPressed:canUndo? () {Actions.invoke(context, const UndoIntent());}: null,child: const Text('UNDO'),),),Padding(padding: const EdgeInsets.all(8.0),child: ElevatedButton(onPressed:canRedo? () {Actions.invoke(context, const RedoIntent());}: null,child: const Text('REDO'),),),],),],);},),),),),
8 unmodified lines9101112131415161718192018 unmodified lines394041424344454647484950515253545556575859606115 unmodified lines777879808182838 unmodified lines@overrideWidget build(BuildContext context) {return const MaterialApp(title: 'Animated Icons Test',home: Scaffold(body: IconsList(),),);}}18 unmodified lines}class IconSampleRowState extends State<IconSampleRow> with SingleTickerProviderStateMixin {late final AnimationController progress = AnimationController(vsync: this, duration: const Duration(milliseconds: 300));@overrideWidget build(BuildContext context) {return ListTile(leading: InkWell(onTap: () { progress.forward(from: 0.0); },child: AnimatedIcon(icon: widget.sample.icon,progress: progress,color: Colors.lightBlue,),),title: Text(widget.sample.description),subtitle: Slider(value: progress.value,onChanged: (double v) { progress.animateTo(v, duration: Duration.zero); },),);}15 unmodified lines}}const List<IconSample> samples = <IconSample> [IconSample(AnimatedIcons.arrow_menu, 'arrow_menu'),IconSample(AnimatedIcons.menu_arrow, 'menu_arrow'),8 unmodified lines910111213141518 unmodified lines343536373839404142434445464748495051525354555657585915 unmodified lines757677787980818 unmodified lines@overrideWidget build(BuildContext context) {return const MaterialApp(title: 'Animated Icons Test', home: Scaffold(body: IconsList()));}}18 unmodified lines}class IconSampleRowState extends State<IconSampleRow> with SingleTickerProviderStateMixin {late final AnimationController progress = AnimationController(vsync: this,duration: const Duration(milliseconds: 300),);@overrideWidget build(BuildContext context) {return ListTile(leading: InkWell(onTap: () {progress.forward(from: 0.0);},child: AnimatedIcon(icon: widget.sample.icon, progress: progress, color: Colors.lightBlue),),title: Text(widget.sample.description),subtitle: Slider(value: progress.value,onChanged: (double v) {progress.animateTo(v, duration: Duration.zero);},),);}15 unmodified lines}}const List<IconSample> samples = <IconSample>[IconSample(AnimatedIcons.arrow_menu, 'arrow_menu'),IconSample(AnimatedIcons.menu_arrow, 'menu_arrow'),
6 unmodified lines789101112131410 unmodified lines252627282930313233343536373839404142439 unmodified lines535455565758596061626364655 unmodified lines7172737475767778798028 unmodified lines10911011111211311411511611711811912012112212312412512612712812913013113251 unmodified lines1841851861871881891901911921931941951961971981992002012022032042052 unmodified lines2082092102112122132142152162172182 unmodified lines2212222232242252262272282292302314 unmodified lines2362372382392402412422432442452462472482493 unmodified lines25325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228344 unmodified lines32832933033133233333415 unmodified lines35035135235335435535635735835936036120 unmodified lines3823833843853863873883893903913923933943953963973983994004014026 unmodified linesimport 'package:flutter/material.dart';class CardModel {CardModel(this.value, this.height) :textController = TextEditingController(text: 'Item $value');int value;double height;10 unmodified lines}class CardCollectionState extends State<CardCollection> {static const TextStyle cardLabelStyle =TextStyle(color: Colors.white, fontSize: 18.0, fontWeight: FontWeight.bold);// TODO(hansmuller): need a local image assetstatic const String _sunshineURL = 'http://www.walltor.com/images/wallpaper/good-morning-sunshine-58540.jpg';static const double kCardMargins = 8.0;static const double kFixedCardHeight = 100.0;static const List<double> _cardHeights = <double>[48.0, 63.0, 85.0, 146.0, 60.0, 55.0, 84.0, 96.0, 50.0,48.0, 63.0, 85.0, 146.0, 60.0, 55.0, 84.0, 96.0, 50.0,48.0, 63.0, 85.0, 146.0, 60.0, 55.0, 84.0, 96.0, 50.0,];MaterialColor _primaryColor = Colors.deepPurple;9 unmodified linesif (_fixedSizeCards) {return;}_cardModels = List<CardModel>.generate(_cardModels.length,(int i) {_cardModels[i].height = _editable ? max(_cardHeights[i], 60.0) : _cardHeights[i];return _cardModels[i];},);}void _initVariableSizedCardModels() {5 unmodified linesvoid _initFixedSizedCardModels() {const int cardCount = 27;_cardModels = List<CardModel>.generate(cardCount,(int i) => CardModel(i, kFixedCardHeight),);}void _initCardModels() {28 unmodified linesbuildDrawerCheckbox('Make card labels editable', _editable, _toggleEditable),buildDrawerCheckbox('Fixed size cards', _fixedSizeCards, _toggleFixedSizeCards),buildDrawerCheckbox('Let the sun shine', _sunshine, _toggleSunshine),buildDrawerCheckbox('Vary font sizes', _varyFontSizes, _toggleVaryFontSizes, enabled: !_editable),const Divider(),buildDrawerColorRadioItem('Deep Purple', Colors.deepPurple, _primaryColor, _selectColor),buildDrawerColorRadioItem('Green', Colors.green, _primaryColor, _selectColor),buildDrawerColorRadioItem('Amber', Colors.amber, _primaryColor, _selectColor),buildDrawerColorRadioItem('Teal', Colors.teal, _primaryColor, _selectColor),const Divider(),buildDrawerDirectionRadioItem('Dismiss horizontally', DismissDirection.horizontal, _dismissDirection, _changeDismissDirection, icon: Icons.code),buildDrawerDirectionRadioItem('Dismiss left', DismissDirection.endToStart, _dismissDirection, _changeDismissDirection, icon: Icons.arrow_back),buildDrawerDirectionRadioItem('Dismiss right', DismissDirection.startToEnd, _dismissDirection, _changeDismissDirection, icon: Icons.arrow_forward),const Divider(),buildFontRadioItem('Left-align text', TextAlign.left, _textAlign, _changeTextAlign, icon: Icons.format_align_left, enabled: !_editable),buildFontRadioItem('Center-align text', TextAlign.center, _textAlign, _changeTextAlign, icon: Icons.format_align_center, enabled: !_editable),buildFontRadioItem('Right-align text', TextAlign.right, _textAlign, _changeTextAlign, icon: Icons.format_align_right, enabled: !_editable),const Divider(),ListTile(leading: const Icon(Icons.dvr),onTap: () { debugDumpApp(); debugDumpRenderTree(); },title: const Text('Dump App to Console'),),],51 unmodified lines});}Widget buildDrawerCheckbox(String label, bool value, void Function() callback, { bool enabled = true }) {return ListTile(onTap: enabled ? callback : null,title: Text(label),trailing: Checkbox(value: value,onChanged: enabled ? (_) { callback(); } : null,),);}Widget buildDrawerColorRadioItem(String label, MaterialColor itemValue, MaterialColor currentValue, ValueChanged<MaterialColor?> onChanged, { IconData? icon, bool enabled = true }) {return ListTile(leading: Icon(icon),title: Text(label),onTap: enabled ? () { onChanged(itemValue); } : null,trailing: Radio<MaterialColor>(value: itemValue,groupValue: currentValue,2 unmodified lines);}Widget buildDrawerDirectionRadioItem(String label, DismissDirection itemValue, DismissDirection currentValue, ValueChanged<DismissDirection?> onChanged, { IconData? icon, bool enabled = true }) {return ListTile(leading: Icon(icon),title: Text(label),onTap: enabled ? () { onChanged(itemValue); } : null,trailing: Radio<DismissDirection>(value: itemValue,groupValue: currentValue,2 unmodified lines);}Widget buildFontRadioItem(String label, TextAlign itemValue, TextAlign currentValue, ValueChanged<TextAlign?> onChanged, { IconData? icon, bool enabled = true }) {return ListTile(leading: Icon(icon),title: Text(label),onTap: enabled ? () { onChanged(itemValue); } : null,trailing: Radio<TextAlign>(value: itemValue,groupValue: currentValue,4 unmodified linesAppBar _buildAppBar(BuildContext context) {return AppBar(actions: <Widget>[Text(_dismissDirectionText(_dismissDirection)),],flexibleSpace: Container(padding: const EdgeInsets.only(left: 72.0),height: 128.0,alignment: const Alignment(-1.0, 0.5),child: Text('Swipe Away: ${_cardModels.length}', style: Theme.of(context).primaryTextTheme.titleLarge),),);}3 unmodified linesfinal Widget card = Dismissible(key: ObjectKey(cardModel),direction: _dismissDirection,onDismissed: (DismissDirection direction) { dismissCard(cardModel); },child: Card(color: _primaryColor[cardModel.color],child: Container(height: cardModel.height,padding: const EdgeInsets.all(kCardMargins),child: _editable ?Center(child: TextField(key: GlobalObjectKey(cardModel),controller: cardModel.textController,),): DefaultTextStyle.merge(style: cardLabelStyle.copyWith(fontSize: _varyFontSizes ? 5.0 + index : null),child: Column(crossAxisAlignment: CrossAxisAlignment.stretch,mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[Text(cardModel.textController.text, textAlign: _textAlign),],),),),),);44 unmodified lineschildren: <Widget>[leftArrowIcon,Expanded(child: Text(backgroundMessage,style: backgroundTextStyle,textAlign: TextAlign.center,),15 unmodified linesShader _createShader(Rect bounds) {return const LinearGradient(begin: Alignment.topCenter,end: Alignment.bottomCenter,colors: <Color>[Color(0x00FFFFFF), Color(0xFFFFFFFF)],stops: <double>[0.1, 0.35],).createShader(bounds);}@override20 unmodified lines);return Theme(data: ThemeData(primarySwatch: _primaryColor,),child: Scaffold(appBar: _buildAppBar(context),drawer: _buildDrawer(),body: body,),);}}void main() {runApp(const MaterialApp(title: 'Cards',home: CardCollection(),));}6 unmodified lines7891011121310 unmodified lines242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768699 unmodified lines798081828384858687885 unmodified lines94959697989910028 unmodified lines12913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320451 unmodified lines2562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982992 unmodified lines3023033043053063073083093103113123133143153163173183193203213223233242 unmodified lines3273283293303313323333343353363373383393403413423433443453463473483494 unmodified lines3543553563573583593603613623633643653663673683 unmodified lines37237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240344 unmodified lines44844945045145245345445515 unmodified lines47147247347447547647747847948048120 unmodified lines5025035045055065075085095105115125136 unmodified linesimport 'package:flutter/material.dart';class CardModel {CardModel(this.value, this.height) : textController = TextEditingController(text: 'Item $value');int value;double height;10 unmodified lines}class CardCollectionState extends State<CardCollection> {static const TextStyle cardLabelStyle = TextStyle(color: Colors.white,fontSize: 18.0,fontWeight: FontWeight.bold,);// TODO(hansmuller): need a local image assetstatic const String _sunshineURL ='http://www.walltor.com/images/wallpaper/good-morning-sunshine-58540.jpg';static const double kCardMargins = 8.0;static const double kFixedCardHeight = 100.0;static const List<double> _cardHeights = <double>[48.0,63.0,85.0,146.0,60.0,55.0,84.0,96.0,50.0,48.0,63.0,85.0,146.0,60.0,55.0,84.0,96.0,50.0,48.0,63.0,85.0,146.0,60.0,55.0,84.0,96.0,50.0,];MaterialColor _primaryColor = Colors.deepPurple;9 unmodified linesif (_fixedSizeCards) {return;}_cardModels = List<CardModel>.generate(_cardModels.length, (int i) {_cardModels[i].height = _editable ? max(_cardHeights[i], 60.0) : _cardHeights[i];return _cardModels[i];});}void _initVariableSizedCardModels() {5 unmodified linesvoid _initFixedSizedCardModels() {const int cardCount = 27;_cardModels = List<CardModel>.generate(cardCount, (int i) => CardModel(i, kFixedCardHeight));}void _initCardModels() {28 unmodified linesbuildDrawerCheckbox('Make card labels editable', _editable, _toggleEditable),buildDrawerCheckbox('Fixed size cards', _fixedSizeCards, _toggleFixedSizeCards),buildDrawerCheckbox('Let the sun shine', _sunshine, _toggleSunshine),buildDrawerCheckbox('Vary font sizes',_varyFontSizes,_toggleVaryFontSizes,enabled: !_editable,),const Divider(),buildDrawerColorRadioItem('Deep Purple',Colors.deepPurple,_primaryColor,_selectColor,),buildDrawerColorRadioItem('Green', Colors.green, _primaryColor, _selectColor),buildDrawerColorRadioItem('Amber', Colors.amber, _primaryColor, _selectColor),buildDrawerColorRadioItem('Teal', Colors.teal, _primaryColor, _selectColor),const Divider(),buildDrawerDirectionRadioItem('Dismiss horizontally',DismissDirection.horizontal,_dismissDirection,_changeDismissDirection,icon: Icons.code,),buildDrawerDirectionRadioItem('Dismiss left',DismissDirection.endToStart,_dismissDirection,_changeDismissDirection,icon: Icons.arrow_back,),buildDrawerDirectionRadioItem('Dismiss right',DismissDirection.startToEnd,_dismissDirection,_changeDismissDirection,icon: Icons.arrow_forward,),const Divider(),buildFontRadioItem('Left-align text',TextAlign.left,_textAlign,_changeTextAlign,icon: Icons.format_align_left,enabled: !_editable,),buildFontRadioItem('Center-align text',TextAlign.center,_textAlign,_changeTextAlign,icon: Icons.format_align_center,enabled: !_editable,),buildFontRadioItem('Right-align text',TextAlign.right,_textAlign,_changeTextAlign,icon: Icons.format_align_right,enabled: !_editable,),const Divider(),ListTile(leading: const Icon(Icons.dvr),onTap: () {debugDumpApp();debugDumpRenderTree();},title: const Text('Dump App to Console'),),],51 unmodified lines});}Widget buildDrawerCheckbox(String label,bool value,void Function() callback, {bool enabled = true,}) {return ListTile(onTap: enabled ? callback : null,title: Text(label),trailing: Checkbox(value: value,onChanged:enabled? (_) {callback();}: null,),);}Widget buildDrawerColorRadioItem(String label,MaterialColor itemValue,MaterialColor currentValue,ValueChanged<MaterialColor?> onChanged, {IconData? icon,bool enabled = true,}) {return ListTile(leading: Icon(icon),title: Text(label),onTap:enabled? () {onChanged(itemValue);}: null,trailing: Radio<MaterialColor>(value: itemValue,groupValue: currentValue,2 unmodified lines);}Widget buildDrawerDirectionRadioItem(String label,DismissDirection itemValue,DismissDirection currentValue,ValueChanged<DismissDirection?> onChanged, {IconData? icon,bool enabled = true,}) {return ListTile(leading: Icon(icon),title: Text(label),onTap:enabled? () {onChanged(itemValue);}: null,trailing: Radio<DismissDirection>(value: itemValue,groupValue: currentValue,2 unmodified lines);}Widget buildFontRadioItem(String label,TextAlign itemValue,TextAlign currentValue,ValueChanged<TextAlign?> onChanged, {IconData? icon,bool enabled = true,}) {return ListTile(leading: Icon(icon),title: Text(label),onTap:enabled? () {onChanged(itemValue);}: null,trailing: Radio<TextAlign>(value: itemValue,groupValue: currentValue,4 unmodified linesAppBar _buildAppBar(BuildContext context) {return AppBar(actions: <Widget>[Text(_dismissDirectionText(_dismissDirection))],flexibleSpace: Container(padding: const EdgeInsets.only(left: 72.0),height: 128.0,alignment: const Alignment(-1.0, 0.5),child: Text('Swipe Away: ${_cardModels.length}',style: Theme.of(context).primaryTextTheme.titleLarge,),),);}3 unmodified linesfinal Widget card = Dismissible(key: ObjectKey(cardModel),direction: _dismissDirection,onDismissed: (DismissDirection direction) {dismissCard(cardModel);},child: Card(color: _primaryColor[cardModel.color],child: Container(height: cardModel.height,padding: const EdgeInsets.all(kCardMargins),child:_editable? Center(child: TextField(key: GlobalObjectKey(cardModel),controller: cardModel.textController,),): DefaultTextStyle.merge(style: cardLabelStyle.copyWith(fontSize: _varyFontSizes ? 5.0 + index : null),child: Column(crossAxisAlignment: CrossAxisAlignment.stretch,mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[Text(cardModel.textController.text, textAlign: _textAlign),],),),),),);44 unmodified lineschildren: <Widget>[leftArrowIcon,Expanded(child: Text(backgroundMessage,style: backgroundTextStyle,textAlign: TextAlign.center,),15 unmodified linesShader _createShader(Rect bounds) {return const LinearGradient(begin: Alignment.topCenter,end: Alignment.bottomCenter,colors: <Color>[Color(0x00FFFFFF), Color(0xFFFFFFFF)],stops: <double>[0.1, 0.35],).createShader(bounds);}@override20 unmodified lines);return Theme(data: ThemeData(primarySwatch: _primaryColor),child: Scaffold(appBar: _buildAppBar(context), drawer: _buildDrawer(), body: body),);}}void main() {runApp(const MaterialApp(title: 'Cards', home: CardCollection()));}
13 unmodified lines14151617181920212220 unmodified lines434445464748496 unmodified lines565758596061621 unmodified line6465666768697071727374757677787980818283848513 unmodified linesbody: ListView(padding: const EdgeInsets.all(5.0),children: <Widget>[Image.network('https://flutter.github.io/assets-for-api-docs/assets/tests/colors/gbr.png'),Image.network('https://flutter.github.io/assets-for-api-docs/assets/tests/colors/tf.png'),Image.network('https://flutter.github.io/assets-for-api-docs/assets/tests/colors/wide-gamut.png'),const GradientRow(leftColor: Color(0xFFFF0000), rightColor: Color(0xFF00FF00)),const GradientRow(leftColor: Color(0xFF0000FF), rightColor: Color(0xFFFFFF00)),const GradientRow(leftColor: Color(0xFFFF0000), rightColor: Color(0xFF0000FF)),20 unmodified lines}class GradientRow extends StatelessWidget {const GradientRow({ super.key, required this.rightColor, required this.leftColor });final Color leftColor;final Color rightColor;6 unmodified linesgradient: LinearGradient(begin: Alignment.topLeft,end: Alignment.bottomRight,colors: <Color>[ leftColor, rightColor ],),),);1 unmodified line}class ColorRow extends StatelessWidget {const ColorRow({ super.key, required this.color });final Color color;@overrideWidget build(BuildContext context) {return Container(height: 100.0,color: color,);}}void main() {runApp(const MaterialApp(title: 'Color Testing Demo',home: ColorDemoHome(),));}13 unmodified lines1415161718192021222324252620 unmodified lines474849505152536 unmodified lines606162636465661 unmodified line6869707172737475767778798081828313 unmodified linesbody: ListView(padding: const EdgeInsets.all(5.0),children: <Widget>[Image.network('https://flutter.github.io/assets-for-api-docs/assets/tests/colors/gbr.png',),Image.network('https://flutter.github.io/assets-for-api-docs/assets/tests/colors/tf.png'),Image.network('https://flutter.github.io/assets-for-api-docs/assets/tests/colors/wide-gamut.png',),const GradientRow(leftColor: Color(0xFFFF0000), rightColor: Color(0xFF00FF00)),const GradientRow(leftColor: Color(0xFF0000FF), rightColor: Color(0xFFFFFF00)),const GradientRow(leftColor: Color(0xFFFF0000), rightColor: Color(0xFF0000FF)),20 unmodified lines}class GradientRow extends StatelessWidget {const GradientRow({super.key, required this.rightColor, required this.leftColor});final Color leftColor;final Color rightColor;6 unmodified linesgradient: LinearGradient(begin: Alignment.topLeft,end: Alignment.bottomRight,colors: <Color>[leftColor, rightColor],),),);1 unmodified line}class ColorRow extends StatelessWidget {const ColorRow({super.key, required this.color});final Color color;@overrideWidget build(BuildContext context) {return Container(height: 100.0, color: color);}}void main() {runApp(const MaterialApp(title: 'Color Testing Demo', home: ColorDemoHome()));}
27 unmodified lines2829303132333435363776 unmodified lines11411511611711811912012112212312412512636 unmodified lines1631641651661671681691701711721731741751761771781791801811821839 unmodified lines19319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135213 unmodified lines36636736836937037137237337437532 unmodified lines4084094104114124134144154164174184194204 unmodified lines4254264274284294304314324334344354364374384394404414424434444454464474484494504514521 unmodified line45445545645745845946046119 unmodified lines48148248348448548648748848949049149249326 unmodified lines5205215225235245255269 unmodified lines5365375385395405415425435445451 unmodified line5475485495505515525535545555565575585595 unmodified lines56556656756856957057157257357457557657738 unmodified lines61661761861962062162262362462562662762862963063163227 unmodified lines@overrideWidget build(BuildContext context) {return const MaterialApp(title: _title,home: MyHomePage(),);}}76 unmodified linesWidget build(BuildContext context) {return Row(mainAxisSize: MainAxisSize.min,children: <Widget>[Checkbox(onChanged: onChanged,value: value,),Text(label),],);}}36 unmodified linesdouble sliderValue = 0.0;String _densityToProfile(VisualDensity density) {if (density == VisualDensity.standard) {return 'standard';} else if (density == VisualDensity.compact) {return 'compact';} else if (density == VisualDensity.comfortable) {return 'comfortable';}return 'custom';}VisualDensity _profileToDensity(String? profile) {return switch (profile) {'standard' => VisualDensity.standard,'comfortable' => VisualDensity.comfortable,'compact' => VisualDensity.compact,'custom' || _ => widget.model.density,};}9 unmodified linesreturn Padding(padding: const EdgeInsets.fromLTRB(5.0, 0.0, 5.0, 10.0),child: Builder(builder: (BuildContext context) {return DefaultTextStyle(style: TextStyle(color: Colors.grey[50]),child: Column(children: <Widget>[Padding(padding: const EdgeInsets.all(8.0),child: Row(children: <Widget>[const Text('Text Scale'),Expanded(child: SliderTheme(data: controlTheme,child: Slider(label: '${widget.model.size}',min: 0.5,max: 3.0,onChanged: (double value) {widget.model.size = value;},value: widget.model.size,),),),Text(widget.model.size.toStringAsFixed(3),style: TextStyle(color: Colors.grey[50]),),],),),Padding(padding: const EdgeInsets.all(8.0),child: Row(children: <Widget>[const Text('X Density'),Expanded(child: SliderTheme(data: controlTheme,child: Slider(label: widget.model.density.horizontal.toStringAsFixed(1),min: VisualDensity.minimumDensity,max: VisualDensity.maximumDensity,onChanged: (double value) {widget.model.density = widget.model.density.copyWith(horizontal: value,vertical: widget.model.density.vertical,);},value: widget.model.density.horizontal,),),),Text(widget.model.density.horizontal.toStringAsFixed(3),style: TextStyle(color: Colors.grey[50]),),],),),Padding(padding: const EdgeInsets.all(8.0),child: Row(children: <Widget>[const Text('Y Density'),Expanded(child: SliderTheme(data: controlTheme,child: Slider(label: widget.model.density.vertical.toStringAsFixed(1),min: VisualDensity.minimumDensity,max: VisualDensity.maximumDensity,onChanged: (double value) {widget.model.density = widget.model.density.copyWith(horizontal: widget.model.density.horizontal,vertical: value,);},value: widget.model.density.vertical,),),),Text(widget.model.density.vertical.toStringAsFixed(3),style: TextStyle(color: Colors.grey[50]),),],),),Wrap(alignment: WrapAlignment.center,crossAxisAlignment: WrapCrossAlignment.center,children: <Widget>[Theme(data: Theme.of(context).copyWith(canvasColor: Colors.grey[600]),child: DropdownButton<String>(style: TextStyle(color: Colors.grey[50]),isDense: true,onChanged: (String? value) {widget.model.density = _profileToDensity(value);},items: const <DropdownMenuItem<String>>[DropdownMenuItem<String>(value: 'standard',child: Text('Standard'),),DropdownMenuItem<String>(value: 'comfortable', child: Text('Comfortable')),DropdownMenuItem<String>(value: 'compact', child: Text('Compact')),DropdownMenuItem<String>(value: 'custom', child: Text('Custom')),],value: _densityToProfile(widget.model.density),),),LabeledCheckbox(label: 'Enabled',onChanged: (bool? checked) {widget.model.enable = checked ?? false;},value: widget.model.enable,),LabeledCheckbox(label: 'Slow',onChanged: (bool? checked) {widget.model.slowAnimations = checked ?? false;Future<void>.delayed(const Duration(milliseconds: 150)).then((_) {if (widget.model.slowAnimations) {timeDilation = 20.0;} else {timeDilation = 1.0;}});},value: widget.model.slowAnimations,),LabeledCheckbox(label: 'RTL',onChanged: (bool? checked) {widget.model.rtl = checked ?? false;},value: widget.model.rtl,),MaterialButton(onPressed: () {widget.model.reset();sliderValue = 0.0;},child: Text('Reset', style: TextStyle(color: Colors.grey[50])),),],),],),);}),);}}13 unmodified lineschildren: <Widget>[Align(alignment: AlignmentDirectional.topStart,child: Text(label,textAlign: TextAlign.start,),),child,],32 unmodified lines@overrideWidget build(BuildContext context) {final ThemeData theme = ThemeData(primarySwatch: m2Swatch,);final Widget label = Text(_model.rtl ? 'اضغط علي' : 'Press Me');textController.text = _model.rtl? 'يعتمد القرار الجيد على المعرفة وليس على الأرقام.': 'A good decision is based on knowledge and not on numbers.';final List<Widget> tiles = <Widget>[_ControlTile(4 unmodified linesmainAxisAlignment: MainAxisAlignment.center,children: <Widget>[ListTile(title: Text(_model.rtl ? 'هذا عنوان طويل نسبيا' : 'This is a relatively long title'),onTap: () {},),ListTile(title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),subtitle:Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'),trailing: const Icon(Icons.check_box),onTap: () {},),ListTile(title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),subtitle:Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'),leading: const Icon(Icons.check_box),dense: true,onTap: () {},),ListTile(title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),subtitle:Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'),dense: true,leading: const Icon(Icons.add_box),trailing: const Icon(Icons.check_box),1 unmodified line),ListTile(title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),subtitle:Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.'),isThreeLine: true,leading: const Icon(Icons.add_box),trailing: const Icon(Icons.check_box),19 unmodified linesborder: OutlineInputBorder(),),),TextField(controller: textController,),TextField(controller: textController,maxLines: 3,),],),),26 unmodified lineschild: TextButton(style: TextButton.styleFrom(foregroundColor: Colors.white,backgroundColor: m2Swatch[200]),onPressed: _model.enable ? () {} : null,child: label,9 unmodified lines),_ControlTile(label: _model.rtl ? 'زر المخطط التفصيلي' : 'Outlined Button',child: OutlinedButton(onPressed: _model.enable ? () {} : null,child: label,),),_ControlTile(label: _model.rtl ? 'خانات الاختيار' : 'Checkboxes',1 unmodified linemainAxisAlignment: MainAxisAlignment.center,children: List<Widget>.generate(checkboxValues.length, (int index) {return Checkbox(onChanged: _model.enable? (bool? value) {setState(() {checkboxValues[index] = value ?? false;});}: null,value: checkboxValues[index],);}),5 unmodified linesmainAxisAlignment: MainAxisAlignment.center,children: List<Widget>.generate(4, (int index) {return Radio<int>(onChanged: _model.enable? (int? value) {setState(() {radioValue = value!;});}: null,groupValue: radioValue,value: index,);38 unmodified linesdata: Theme.of(context).copyWith(visualDensity: _model.density),child: Directionality(textDirection: _model.rtl ? TextDirection.rtl : TextDirection.ltr,child: Builder(builder: (BuildContext context) {final MediaQueryData mediaQueryData = MediaQuery.of(context);return MediaQuery(data: mediaQueryData.copyWith(textScaler: TextScaler.linear(_model.size)),child: SizedBox.expand(child: ListView(children: tiles,),),);}),),),),27 unmodified lines2829303132333476 unmodified lines11111211311411511611736 unmodified lines1541551561571581591601611621631641651661671681691701711729 unmodified lines18218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234313 unmodified lines35735835936036136236332 unmodified lines3963973983994004014024034044054064074 unmodified lines4124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434441 unmodified line44644744844945045145245345419 unmodified lines47447547647747847948048126 unmodified lines5085095105115125135149 unmodified lines5245255265275285295301 unmodified line5325335345355365375385395405415425435445455 unmodified lines55155255355455555655755855956056156256356438 unmodified lines60360460560660760860961061161261361461561661727 unmodified lines@overrideWidget build(BuildContext context) {return const MaterialApp(title: _title, home: MyHomePage());}}76 unmodified linesWidget build(BuildContext context) {return Row(mainAxisSize: MainAxisSize.min,children: <Widget>[Checkbox(onChanged: onChanged, value: value), Text(label)],);}}36 unmodified linesdouble sliderValue = 0.0;String _densityToProfile(VisualDensity density) {return switch (density) {VisualDensity.standard => 'standard',VisualDensity.compact => 'compact',VisualDensity.comfortable => 'comfortable',_ => 'custom',};}VisualDensity _profileToDensity(String? profile) {return switch (profile) {'standard' => VisualDensity.standard,'comfortable' => VisualDensity.comfortable,'compact' => VisualDensity.compact,'custom' || _ => widget.model.density,};}9 unmodified linesreturn Padding(padding: const EdgeInsets.fromLTRB(5.0, 0.0, 5.0, 10.0),child: Builder(builder: (BuildContext context) {return DefaultTextStyle(style: TextStyle(color: Colors.grey[50]),child: Column(children: <Widget>[Padding(padding: const EdgeInsets.all(8.0),child: Row(children: <Widget>[const Text('Text Scale'),Expanded(child: SliderTheme(data: controlTheme,child: Slider(label: '${widget.model.size}',min: 0.5,max: 3.0,onChanged: (double value) {widget.model.size = value;},value: widget.model.size,),),),Text(widget.model.size.toStringAsFixed(3),style: TextStyle(color: Colors.grey[50]),),],),),Padding(padding: const EdgeInsets.all(8.0),child: Row(children: <Widget>[const Text('X Density'),Expanded(child: SliderTheme(data: controlTheme,child: Slider(label: widget.model.density.horizontal.toStringAsFixed(1),min: VisualDensity.minimumDensity,max: VisualDensity.maximumDensity,onChanged: (double value) {widget.model.density = widget.model.density.copyWith(horizontal: value,vertical: widget.model.density.vertical,);},value: widget.model.density.horizontal,),),),Text(widget.model.density.horizontal.toStringAsFixed(3),style: TextStyle(color: Colors.grey[50]),),],),),Padding(padding: const EdgeInsets.all(8.0),child: Row(children: <Widget>[const Text('Y Density'),Expanded(child: SliderTheme(data: controlTheme,child: Slider(label: widget.model.density.vertical.toStringAsFixed(1),min: VisualDensity.minimumDensity,max: VisualDensity.maximumDensity,onChanged: (double value) {widget.model.density = widget.model.density.copyWith(horizontal: widget.model.density.horizontal,vertical: value,);},value: widget.model.density.vertical,),),),Text(widget.model.density.vertical.toStringAsFixed(3),style: TextStyle(color: Colors.grey[50]),),],),),Wrap(alignment: WrapAlignment.center,crossAxisAlignment: WrapCrossAlignment.center,children: <Widget>[Theme(data: Theme.of(context).copyWith(canvasColor: Colors.grey[600]),child: DropdownButton<String>(style: TextStyle(color: Colors.grey[50]),isDense: true,onChanged: (String? value) {widget.model.density = _profileToDensity(value);},items: const <DropdownMenuItem<String>>[DropdownMenuItem<String>(value: 'standard', child: Text('Standard')),DropdownMenuItem<String>(value: 'comfortable',child: Text('Comfortable'),),DropdownMenuItem<String>(value: 'compact', child: Text('Compact')),DropdownMenuItem<String>(value: 'custom', child: Text('Custom')),],value: _densityToProfile(widget.model.density),),),LabeledCheckbox(label: 'Enabled',onChanged: (bool? checked) {widget.model.enable = checked ?? false;},value: widget.model.enable,),LabeledCheckbox(label: 'Slow',onChanged: (bool? checked) {widget.model.slowAnimations = checked ?? false;Future<void>.delayed(const Duration(milliseconds: 150)).then((_) {if (widget.model.slowAnimations) {timeDilation = 20.0;} else {timeDilation = 1.0;}});},value: widget.model.slowAnimations,),LabeledCheckbox(label: 'RTL',onChanged: (bool? checked) {widget.model.rtl = checked ?? false;},value: widget.model.rtl,),MaterialButton(onPressed: () {widget.model.reset();sliderValue = 0.0;},child: Text('Reset', style: TextStyle(color: Colors.grey[50])),),],),],),);},),);}}13 unmodified lineschildren: <Widget>[Align(alignment: AlignmentDirectional.topStart,child: Text(label, textAlign: TextAlign.start),),child,],32 unmodified lines@overrideWidget build(BuildContext context) {final ThemeData theme = ThemeData(primarySwatch: m2Swatch);final Widget label = Text(_model.rtl ? 'اضغط علي' : 'Press Me');textController.text =_model.rtl? 'يعتمد القرار الجيد على المعرفة وليس على الأرقام.': 'A good decision is based on knowledge and not on numbers.';final List<Widget> tiles = <Widget>[_ControlTile(4 unmodified linesmainAxisAlignment: MainAxisAlignment.center,children: <Widget>[ListTile(title: Text(_model.rtl ? 'هذا عنوان طويل نسبيا' : 'This is a relatively long title',),onTap: () {},),ListTile(title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),subtitle: Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.',),trailing: const Icon(Icons.check_box),onTap: () {},),ListTile(title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),subtitle: Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.',),leading: const Icon(Icons.check_box),dense: true,onTap: () {},),ListTile(title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),subtitle: Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.',),dense: true,leading: const Icon(Icons.add_box),trailing: const Icon(Icons.check_box),1 unmodified line),ListTile(title: Text(_model.rtl ? 'هذا عنوان قصير' : 'This is a short title'),subtitle: Text(_model.rtl ? 'هذا عنوان فرعي مناسب.' : 'This is an appropriate subtitle.',),isThreeLine: true,leading: const Icon(Icons.add_box),trailing: const Icon(Icons.check_box),19 unmodified linesborder: OutlineInputBorder(),),),TextField(controller: textController),TextField(controller: textController, maxLines: 3),],),),26 unmodified lineschild: TextButton(style: TextButton.styleFrom(foregroundColor: Colors.white,backgroundColor: m2Swatch[200],),onPressed: _model.enable ? () {} : null,child: label,9 unmodified lines),_ControlTile(label: _model.rtl ? 'زر المخطط التفصيلي' : 'Outlined Button',child: OutlinedButton(onPressed: _model.enable ? () {} : null, child: label),),_ControlTile(label: _model.rtl ? 'خانات الاختيار' : 'Checkboxes',1 unmodified linemainAxisAlignment: MainAxisAlignment.center,children: List<Widget>.generate(checkboxValues.length, (int index) {return Checkbox(onChanged:_model.enable? (bool? value) {setState(() {checkboxValues[index] = value ?? false;});}: null,value: checkboxValues[index],);}),5 unmodified linesmainAxisAlignment: MainAxisAlignment.center,children: List<Widget>.generate(4, (int index) {return Radio<int>(onChanged:_model.enable? (int? value) {setState(() {radioValue = value!;});}: null,groupValue: radioValue,value: index,);38 unmodified linesdata: Theme.of(context).copyWith(visualDensity: _model.density),child: Directionality(textDirection: _model.rtl ? TextDirection.rtl : TextDirection.ltr,child: Builder(builder: (BuildContext context) {final MediaQueryData mediaQueryData = MediaQuery.of(context);return MediaQuery(data: mediaQueryData.copyWith(textScaler: TextScaler.linear(_model.size)),child: SizedBox.expand(child: ListView(children: tiles)),);},),),),),
31 unmodified lines323334353637383940412 unmodified lines444546474849503 unmodified lines5455565758596061626364656636 unmodified lines10310410510610710810911011111211311411511611711811912012112212312412512634 unmodified lines16116216316416516616716816917032 unmodified lines2032042052062072082092102115 unmodified lines21721821922022122222313 unmodified lines23723823924024124224324424524624724824925025125225325425525625725825926026135 unmodified lines29729829930030130230330431 unmodified linesmargin: const EdgeInsets.all(10.0),decoration: BoxDecoration(color: data.isEmpty ? _color : Colors.grey.shade200,border: Border.all(width: 3.0,color: data.isEmpty ? Colors.white : Colors.blue,),),);},2 unmodified lines}class Dot extends StatefulWidget {const Dot({ super.key, this.color, this.size, this.child, this.tappable = false });final Color? color;final double? size;3 unmodified lines@overrideDotState createState() => DotState();}class DotState extends State<Dot> {int taps = 0;@overrideWidget build(BuildContext context) {return GestureDetector(onTap: widget.tappable ? () { setState(() { taps += 1; }); } : null,child: Container(width: widget.size,height: widget.size,36 unmodified linesfinal Widget contents = DefaultTextStyle(style: Theme.of(context).textTheme.bodyMedium!,textAlign: TextAlign.center,child: Dot(color: color,size: size,child: Center(child: child),),);Widget feedback = Opacity(opacity: 0.75,child: contents,);Offset feedbackOffset;DragAnchorStrategy dragAnchorStrategy;if (!under) {feedback = Transform(transform: Matrix4.identity()..translate(-size / 2.0, -(size / 2.0 + kFingerSize)),child: feedback,);feedbackOffset = const Offset(0.0, -kFingerSize);34 unmodified lines@overridevoid paint(Canvas canvas, Size size) {final double radius = size.shortestSide / 2.0;final Paint paint = Paint()..color = const Color(0xFF000000)..style = PaintingStyle.stroke..strokeWidth = radius / 10.0;final Path path = Path();final Rect box = Offset.zero & size;for (double theta = 0.0; theta < math.pi * 2.0; theta += deltaTheta) {32 unmodified linesconst Widget dashedBall = SizedBox(width: kBallSize,height: kBallSize,child: CustomPaint(painter: DashOutlineCirclePainter()),);if (position == ballPosition) {return Draggable<bool>(5 unmodified lines);} else {return DragTarget<bool>(onAcceptWithDetails: (DragTargetDetails<bool> data) { callback(position); },builder: (BuildContext context, List<bool?> accepted, List<dynamic> rejected) {return dashedBall;},13 unmodified linesint position = 1;void moveBall(int newPosition) {setState(() { position = newPosition; });}@overrideWidget build(BuildContext context) {return Scaffold(appBar: AppBar(title: const Text('Drag and Drop Flutter Demo'),),body: Column(children: <Widget>[Expanded(child: Row(mainAxisAlignment: MainAxisAlignment.spaceAround,children: <Widget>[ExampleDragSource(color: Colors.yellow.shade300,child: const Text('under'),),ExampleDragSource(color: Colors.green.shade300,under: false,35 unmodified lines}void main() {runApp(const MaterialApp(title: 'Drag and Drop Flutter Demo',home: DragAndDropApp(),));}31 unmodified lines323334353637382 unmodified lines414243444546473 unmodified lines51525354555657585960616263646566676869707136 unmodified lines10810911011111211311411511611711811912012112212334 unmodified lines15815916016116216316416516616716832 unmodified lines2012022032042052062075 unmodified lines21321421521621721821922022113 unmodified lines23523623723823924024124224324424524624724824925025125225325425525635 unmodified lines29229329429529631 unmodified linesmargin: const EdgeInsets.all(10.0),decoration: BoxDecoration(color: data.isEmpty ? _color : Colors.grey.shade200,border: Border.all(width: 3.0, color: data.isEmpty ? Colors.white : Colors.blue),),);},2 unmodified lines}class Dot extends StatefulWidget {const Dot({super.key, this.color, this.size, this.child, this.tappable = false});final Color? color;final double? size;3 unmodified lines@overrideDotState createState() => DotState();}class DotState extends State<Dot> {int taps = 0;@overrideWidget build(BuildContext context) {return GestureDetector(onTap:widget.tappable? () {setState(() {taps += 1;});}: null,child: Container(width: widget.size,height: widget.size,36 unmodified linesfinal Widget contents = DefaultTextStyle(style: Theme.of(context).textTheme.bodyMedium!,textAlign: TextAlign.center,child: Dot(color: color, size: size, child: Center(child: child)),);Widget feedback = Opacity(opacity: 0.75, child: contents);Offset feedbackOffset;DragAnchorStrategy dragAnchorStrategy;if (!under) {feedback = Transform(transform: Matrix4.identity()..translate(-size / 2.0, -(size / 2.0 + kFingerSize)),child: feedback,);feedbackOffset = const Offset(0.0, -kFingerSize);34 unmodified lines@overridevoid paint(Canvas canvas, Size size) {final double radius = size.shortestSide / 2.0;final Paint paint =Paint()..color = const Color(0xFF000000)..style = PaintingStyle.stroke..strokeWidth = radius / 10.0;final Path path = Path();final Rect box = Offset.zero & size;for (double theta = 0.0; theta < math.pi * 2.0; theta += deltaTheta) {32 unmodified linesconst Widget dashedBall = SizedBox(width: kBallSize,height: kBallSize,child: CustomPaint(painter: DashOutlineCirclePainter()),);if (position == ballPosition) {return Draggable<bool>(5 unmodified lines);} else {return DragTarget<bool>(onAcceptWithDetails: (DragTargetDetails<bool> data) {callback(position);},builder: (BuildContext context, List<bool?> accepted, List<dynamic> rejected) {return dashedBall;},13 unmodified linesint position = 1;void moveBall(int newPosition) {setState(() {position = newPosition;});}@overrideWidget build(BuildContext context) {return Scaffold(appBar: AppBar(title: const Text('Drag and Drop Flutter Demo')),body: Column(children: <Widget>[Expanded(child: Row(mainAxisAlignment: MainAxisAlignment.spaceAround,children: <Widget>[ExampleDragSource(color: Colors.yellow.shade300, child: const Text('under')),ExampleDragSource(color: Colors.green.shade300,under: false,35 unmodified lines}void main() {runApp(const MaterialApp(title: 'Drag and Drop Flutter Demo', home: DragAndDropApp()));}
5 unmodified lines6789101112131415161718195 unmodified lines252627282930313264 unmodified lines9798991001011021031043 unmodified lines10810911011111211311411511611711811912012112212312412512612713 unmodified lines1411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042055 unmodified linesimport 'package:flutter/services.dart';void main() {runApp(const MaterialApp(title: 'Focus Demo',home: FocusDemo(),));}class DemoButton extends StatefulWidget {const DemoButton({super.key, required this.name, this.canRequestFocus = true, this.autofocus = false});final String name;final bool canRequestFocus;5 unmodified linesclass _DemoButtonState extends State<DemoButton> {late final FocusNode focusNode = FocusNode(debugLabel: widget.name,canRequestFocus: widget.canRequestFocus,);@override64 unmodified linesprint('Keys down: ${HardwareKeyboard.instance.logicalKeysPressed}');if (event.logicalKey == LogicalKeyboardKey.tab) {debugDumpFocusTree();if (HardwareKeyboard.instance.logicalKeysPressed.contains(LogicalKeyboardKey.shiftLeft)|| HardwareKeyboard.instance.logicalKeysPressed.contains(LogicalKeyboardKey.shiftRight)) {print('Moving to previous.');node.previousFocus();return KeyEventResult.handled;3 unmodified linesreturn KeyEventResult.handled;}}if (event.logicalKey == LogicalKeyboardKey.arrowLeft) {node.focusInDirection(TraversalDirection.left);return KeyEventResult.handled;}if (event.logicalKey == LogicalKeyboardKey.arrowRight) {node.focusInDirection(TraversalDirection.right);return KeyEventResult.handled;}if (event.logicalKey == LogicalKeyboardKey.arrowUp) {node.focusInDirection(TraversalDirection.up);return KeyEventResult.handled;}if (event.logicalKey == LogicalKeyboardKey.arrowDown) {node.focusInDirection(TraversalDirection.down);return KeyEventResult.handled;}}13 unmodified lineschild: DefaultTextStyle(style: textTheme.headlineMedium!,child: Scaffold(appBar: AppBar(title: const Text('Focus Demo'),),floatingActionButton: FloatingActionButton(child: const Text('+'),onPressed: () {},),body: Center(child: Builder(builder: (BuildContext context) {return Column(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'One',autofocus: true,),],),const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'Two'),DemoButton(name: 'Three',canRequestFocus: false,),],),const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'Four'),DemoButton(name: 'Five'),DemoButton(name: 'Six'),],),OutlinedButton(onPressed: () => print('pressed'), child: const Text('PRESS ME')),const Padding(padding: EdgeInsets.all(8.0),child: TextField(decoration: InputDecoration(labelText: 'Enter Text', filled: true),),),const Padding(padding: EdgeInsets.all(8.0),child: TextField(decoration: InputDecoration(border: OutlineInputBorder(),labelText: 'Enter Text',filled: false,),),),],);}),),),),5 unmodified lines67891011121314151617181920215 unmodified lines272829303132333464 unmodified lines991001011021031041051063 unmodified lines11011111211311411511611711811912012112212312413 unmodified lines1381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931945 unmodified linesimport 'package:flutter/services.dart';void main() {runApp(const MaterialApp(title: 'Focus Demo', home: FocusDemo()));}class DemoButton extends StatefulWidget {const DemoButton({super.key,required this.name,this.canRequestFocus = true,this.autofocus = false,});final String name;final bool canRequestFocus;5 unmodified linesclass _DemoButtonState extends State<DemoButton> {late final FocusNode focusNode = FocusNode(debugLabel: widget.name,canRequestFocus: widget.canRequestFocus,);@override64 unmodified linesprint('Keys down: ${HardwareKeyboard.instance.logicalKeysPressed}');if (event.logicalKey == LogicalKeyboardKey.tab) {debugDumpFocusTree();if (HardwareKeyboard.instance.logicalKeysPressed.contains(LogicalKeyboardKey.shiftLeft) ||HardwareKeyboard.instance.logicalKeysPressed.contains(LogicalKeyboardKey.shiftRight)) {print('Moving to previous.');node.previousFocus();return KeyEventResult.handled;3 unmodified linesreturn KeyEventResult.handled;}}final TraversalDirection? direction = switch (event.logicalKey) {LogicalKeyboardKey.arrowLeft => TraversalDirection.left,LogicalKeyboardKey.arrowRight => TraversalDirection.right,LogicalKeyboardKey.arrowUp => TraversalDirection.up,LogicalKeyboardKey.arrowDown => TraversalDirection.down,_ => null,};if (direction != null) {node.focusInDirection(direction);return KeyEventResult.handled;}}13 unmodified lineschild: DefaultTextStyle(style: textTheme.headlineMedium!,child: Scaffold(appBar: AppBar(title: const Text('Focus Demo')),floatingActionButton: FloatingActionButton(child: const Text('+'), onPressed: () {}),body: Center(child: Builder(builder: (BuildContext context) {return Column(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'One', autofocus: true)],),const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'Two'),DemoButton(name: 'Three', canRequestFocus: false),],),const Row(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[DemoButton(name: 'Four'),DemoButton(name: 'Five'),DemoButton(name: 'Six'),],),OutlinedButton(onPressed: () => print('pressed'),child: const Text('PRESS ME'),),const Padding(padding: EdgeInsets.all(8.0),child: TextField(decoration: InputDecoration(labelText: 'Enter Text', filled: true),),),const Padding(padding: EdgeInsets.all(8.0),child: TextField(decoration: InputDecoration(border: OutlineInputBorder(),labelText: 'Enter Text',filled: false,),),),],);},),),),),
5 unmodified lines67891011121314151617181920212245 unmodified lines686970717273747 unmodified lines828384858687888990915 unmodified linesimport 'package:flutter/services.dart';void main() {runApp(MaterialApp(title: 'Hardware Key Demo',home: Scaffold(appBar: AppBar(title: const Text('Hardware Key Demo'),),body: const Center(child: HardwareKeyboardDemo(),),),));}class HardwareKeyboardDemo extends StatefulWidget {45 unmodified linesfinal List<Widget> dataText = <Widget>[Text('${_event.runtimeType}'),if (_event?.character?.isNotEmpty ?? false) Text('character produced: "${_event?.character}"'),];dataText.add(Text('logical: ${_event?.logicalKey}'));dataText.add(Text('physical: ${_event?.physicalKey}'));7 unmodified linesdataText.add(Text(pressed.join(' ')));return DefaultTextStyle(style: textTheme.titleMedium!,child: Column(mainAxisAlignment: MainAxisAlignment.center,children: dataText,),);},),5 unmodified lines6789101112131415161718192045 unmodified lines66676869707172737 unmodified lines818283848586875 unmodified linesimport 'package:flutter/services.dart';void main() {runApp(MaterialApp(title: 'Hardware Key Demo',home: Scaffold(appBar: AppBar(title: const Text('Hardware Key Demo')),body: const Center(child: HardwareKeyboardDemo()),),),);}class HardwareKeyboardDemo extends StatefulWidget {45 unmodified linesfinal List<Widget> dataText = <Widget>[Text('${_event.runtimeType}'),if (_event?.character?.isNotEmpty ?? false)Text('character produced: "${_event?.character}"'),];dataText.add(Text('logical: ${_event?.logicalKey}'));dataText.add(Text('physical: ${_event?.physicalKey}'));7 unmodified linesdataText.add(Text(pressed.join(' ')));return DefaultTextStyle(style: textTheme.titleMedium!,child: Column(mainAxisAlignment: MainAxisAlignment.center, children: dataText),);},),
4 unmodified lines5678910111213149 unmodified lines2425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485864 unmodified linesimport 'package:flutter/material.dart';void main() {runApp(const MaterialApp(title: 'Hover Demo',home: HoverDemo(),));}class HoverDemo extends StatefulWidget {9 unmodified linesfinal TextTheme textTheme = Theme.of(context).textTheme;final ButtonStyle overrideFocusColor = ButtonStyle(overlayColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) {return states.contains(MaterialState.focused) ? Colors.deepOrangeAccent : Colors.transparent;}));return DefaultTextStyle(style: textTheme.headlineMedium!,child: Scaffold(appBar: AppBar(title: const Text('Hover Demo'),),floatingActionButton: FloatingActionButton(child: const Text('+'),onPressed: () {},),body: Center(child: Builder(builder: (BuildContext context) {return Column(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[Row(children: <Widget>[ElevatedButton(onPressed: () => print('Button pressed.'),style: overrideFocusColor,child: const Text('Button'),),TextButton(onPressed: () => print('Button pressed.'),style: overrideFocusColor,child: const Text('Button'),),IconButton(onPressed: () => print('Button pressed'),icon: const Icon(Icons.access_alarm),focusColor: Colors.deepOrangeAccent,),],),const Padding(padding: EdgeInsets.all(8.0),child: TextField(decoration: InputDecoration(labelText: 'Enter Text', filled: true),),),const Padding(padding: EdgeInsets.all(8.0),child: TextField(decoration: InputDecoration(border: OutlineInputBorder(),labelText: 'Enter Text',filled: false,),),),],);}),),),);4 unmodified lines5678910119 unmodified lines21222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081824 unmodified linesimport 'package:flutter/material.dart';void main() {runApp(const MaterialApp(title: 'Hover Demo', home: HoverDemo()));}class HoverDemo extends StatefulWidget {9 unmodified linesfinal TextTheme textTheme = Theme.of(context).textTheme;final ButtonStyle overrideFocusColor = ButtonStyle(overlayColor: MaterialStateProperty.resolveWith<Color>((Set<MaterialState> states) {return states.contains(MaterialState.focused)? Colors.deepOrangeAccent: Colors.transparent;}),);return DefaultTextStyle(style: textTheme.headlineMedium!,child: Scaffold(appBar: AppBar(title: const Text('Hover Demo')),floatingActionButton: FloatingActionButton(child: const Text('+'), onPressed: () {}),body: Center(child: Builder(builder: (BuildContext context) {return Column(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[Row(children: <Widget>[ElevatedButton(onPressed: () => print('Button pressed.'),style: overrideFocusColor,child: const Text('Button'),),TextButton(onPressed: () => print('Button pressed.'),style: overrideFocusColor,child: const Text('Button'),),IconButton(onPressed: () => print('Button pressed'),icon: const Icon(Icons.access_alarm),focusColor: Colors.deepOrangeAccent,),],),const Padding(padding: EdgeInsets.all(8.0),child: TextField(decoration: InputDecoration(labelText: 'Enter Text', filled: true),),),const Padding(padding: EdgeInsets.all(8.0),child: TextField(decoration: InputDecoration(border: OutlineInputBorder(),labelText: 'Enter Text',filled: false,),),),],);},),),),);
4 unmodified lines5678910111213144 unmodified linesimport 'package:flutter/widgets.dart';void main() {runApp(const Directionality(textDirection: TextDirection.ltr,child: Center(child: Text('flutter run -t xxx.dart'),),));}4 unmodified lines5678910111213144 unmodified linesimport 'package:flutter/widgets.dart';void main() {runApp(const Directionality(textDirection: TextDirection.ltr,child: Center(child: Text('flutter run -t xxx.dart')),),);}
flutter/dev/a11y_assessments/README.md+31-1
flutter/dev/a11y_assessments/pubspec.yaml+23-22
flutter/dev/automated_tests/pubspec.yaml+54-53
flutter/dev/bots/README.md+18-22
flutter/dev/bots/analyze.dart
flutter/dev/bots/analyze_snippet_code.dart+282-168
flutter/dev/bots/browser.dart+35-27
flutter/dev/bots/check_code_samples.dart+47-250
flutter/dev/bots/codelabs_build_test.sh+1-1
flutter/dev/bots/docs.sh+15-6
flutter/dev/bots/post_process_docs.dart+34-32
flutter/dev/bots/prepare_package.dart+14-16
flutter/dev/bots/pubspec.yaml+60-58
flutter/dev/bots/run_command.dart+82-40
flutter/dev/bots/service_worker_test.dart+209-275
flutter/dev/bots/test.dart
flutter/dev/bots/tool_subsharding.dart+20-25
flutter/dev/bots/unpublish_package.dart+104-82
flutter/dev/bots/utils.dart+512-22
flutter/dev/conductor/README.md+11-27
flutter/dev/conductor/RELEASE_ONBOARDING.mdAdded+71
flutter/dev/customer_testing/README.mdAdded+16
flutter/dev/customer_testing/ci.bat+10-14
flutter/dev/customer_testing/ci.dartAdded+91
flutter/dev/customer_testing/ci.sh+20-22
flutter/dev/customer_testing/pubspec.yaml+45-44
flutter/dev/customer_testing/run_tests.dart+54-51
flutter/dev/customer_testing/tests.versionAdded+1
flutter/dev/devicelab/README.md+22-7
flutter/dev/devicelab/pubspec.yaml+58-56
flutter/dev/docs/README.md+1-1
flutter/dev/docs/analytics-footer.html+5
flutter/dev/docs/analytics-header.html+3
flutter/dev/forbidden_from_release_tests/pubspec.yaml+10-10
flutter/dev/integration_tests/README.md+5-1
flutter/dev/manual_tests/android/build.gradle-17
flutter/dev/manual_tests/android/buildscript-gradle.lockfile+118-112
flutter/dev/manual_tests/android/gradle.properties+1-1
flutter/dev/manual_tests/android/project-app.lockfile+138-40
flutter/dev/manual_tests/android/settings.gradle+17-4
flutter/dev/manual_tests/lib/actions.dart+89-77
flutter/dev/manual_tests/lib/animated_icons.dart+13-15
flutter/dev/manual_tests/lib/card_collection.dart+191-80
flutter/dev/manual_tests/lib/color_testing_demo.dart+11-13
flutter/dev/manual_tests/lib/density.dart+204-219
flutter/dev/manual_tests/lib/drag_and_drop.dart+29-37
flutter/dev/manual_tests/lib/focus.dart+66-77
flutter/dev/manual_tests/lib/hardware_keyboard.dart+10-14
flutter/dev/manual_tests/lib/hover.dart+47-51
flutter/dev/manual_tests/lib/main.dart+5-5