From 8a6595d41fac73caa230ecee064baeffd8f2c4a3 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Fri, 24 Mar 2023 15:56:02 +0000 Subject: [PATCH 01/11] Avoid pinning mockito to single version The pinned version of `mockito` is incompatible with the latest released version of `test_api`, and therefore `test`. With flutter package pinning, the release of the flutter SDK that updates to the next version of `test_api` will break the version solve with these packages. Using a constraint that allows a range of versions of `mockito` should allow a valid version solve. --- packages/camera/camera/pubspec.yaml | 2 +- packages/camera/camera_android_camerax/pubspec.yaml | 2 +- packages/file_selector/file_selector_ios/pubspec.yaml | 2 +- packages/file_selector/file_selector_macos/pubspec.yaml | 2 +- packages/file_selector/file_selector_windows/pubspec.yaml | 2 +- packages/flutter_markdown/pubspec.yaml | 2 +- .../google_maps_flutter_platform_interface/pubspec.yaml | 2 +- .../google_maps_flutter_web/example/pubspec.yaml | 2 +- packages/google_sign_in/google_sign_in/pubspec.yaml | 2 +- .../google_sign_in_platform_interface/pubspec.yaml | 2 +- packages/google_sign_in/google_sign_in_web/example/pubspec.yaml | 2 +- packages/image_picker/image_picker/pubspec.yaml | 2 +- packages/image_picker/image_picker_android/pubspec.yaml | 2 +- packages/image_picker/image_picker_ios/pubspec.yaml | 2 +- packages/image_picker/image_picker_windows/pubspec.yaml | 2 +- packages/in_app_purchase/in_app_purchase_android/pubspec.yaml | 2 +- .../in_app_purchase_platform_interface/pubspec.yaml | 2 +- packages/local_auth/local_auth/pubspec.yaml | 2 +- packages/local_auth/local_auth_platform_interface/pubspec.yaml | 2 +- packages/metrics_center/pubspec.yaml | 2 +- packages/path_provider/path_provider_foundation/pubspec.yaml | 2 +- .../platform_tests/flutter_null_safe_unit_tests/pubspec.yaml | 2 +- packages/plugin_platform_interface/pubspec.yaml | 2 +- packages/quick_actions/quick_actions/pubspec.yaml | 2 +- .../quick_actions/quick_actions_platform_interface/pubspec.yaml | 2 +- packages/url_launcher/url_launcher/example/pubspec.yaml | 2 +- packages/url_launcher/url_launcher/pubspec.yaml | 2 +- packages/url_launcher/url_launcher_android/example/pubspec.yaml | 2 +- packages/url_launcher/url_launcher_android/pubspec.yaml | 2 +- .../url_launcher/url_launcher_platform_interface/pubspec.yaml | 2 +- packages/url_launcher/url_launcher_web/example/pubspec.yaml | 2 +- packages/webview_flutter/webview_flutter/pubspec.yaml | 2 +- packages/webview_flutter/webview_flutter_android/pubspec.yaml | 2 +- .../webview_flutter_platform_interface/pubspec.yaml | 2 +- packages/webview_flutter/webview_flutter_web/pubspec.yaml | 2 +- packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml | 2 +- script/tool/pubspec.yaml | 2 +- 37 files changed, 37 insertions(+), 37 deletions(-) diff --git a/packages/camera/camera/pubspec.yaml b/packages/camera/camera/pubspec.yaml index f623b88214c..d4569af1191 100644 --- a/packages/camera/camera/pubspec.yaml +++ b/packages/camera/camera/pubspec.yaml @@ -35,6 +35,6 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 plugin_platform_interface: ^2.0.0 video_player: ^2.0.0 diff --git a/packages/camera/camera_android_camerax/pubspec.yaml b/packages/camera/camera_android_camerax/pubspec.yaml index 78262b785b2..b111e57d9af 100644 --- a/packages/camera/camera_android_camerax/pubspec.yaml +++ b/packages/camera/camera_android_camerax/pubspec.yaml @@ -30,5 +30,5 @@ dev_dependencies: build_runner: ^2.1.4 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 pigeon: ^3.2.6 diff --git a/packages/file_selector/file_selector_ios/pubspec.yaml b/packages/file_selector/file_selector_ios/pubspec.yaml index 59c1daa2391..1e5828ee1da 100644 --- a/packages/file_selector/file_selector_ios/pubspec.yaml +++ b/packages/file_selector/file_selector_ios/pubspec.yaml @@ -25,6 +25,6 @@ dev_dependencies: build_runner: 2.1.11 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 pigeon: ^3.2.5 diff --git a/packages/file_selector/file_selector_macos/pubspec.yaml b/packages/file_selector/file_selector_macos/pubspec.yaml index 073adbb7b2c..9826d7b623b 100644 --- a/packages/file_selector/file_selector_macos/pubspec.yaml +++ b/packages/file_selector/file_selector_macos/pubspec.yaml @@ -26,5 +26,5 @@ dev_dependencies: build_runner: ^2.3.2 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 pigeon: ^4.2.14 diff --git a/packages/file_selector/file_selector_windows/pubspec.yaml b/packages/file_selector/file_selector_windows/pubspec.yaml index a93ab0fbd7e..fde1692cae2 100644 --- a/packages/file_selector/file_selector_windows/pubspec.yaml +++ b/packages/file_selector/file_selector_windows/pubspec.yaml @@ -26,5 +26,5 @@ dev_dependencies: build_runner: 2.1.11 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 pigeon: ^3.2.5 diff --git a/packages/flutter_markdown/pubspec.yaml b/packages/flutter_markdown/pubspec.yaml index 49ed33ed162..973136c7a25 100644 --- a/packages/flutter_markdown/pubspec.yaml +++ b/packages/flutter_markdown/pubspec.yaml @@ -20,5 +20,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 standard_message_codec: ^0.0.1+3 diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml index fa8d6e72714..dc97575af38 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml @@ -21,4 +21,4 @@ dev_dependencies: async: ^2.5.0 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml index 26be9763f94..4ab1909767e 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml @@ -25,4 +25,4 @@ dev_dependencies: http: ^0.13.0 integration_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/google_sign_in/google_sign_in/pubspec.yaml b/packages/google_sign_in/google_sign_in/pubspec.yaml index d0b6b713101..a8ba667c67d 100644 --- a/packages/google_sign_in/google_sign_in/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/pubspec.yaml @@ -36,7 +36,7 @@ dev_dependencies: http: ^0.13.0 integration_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 # The example deliberately includes limited-use secrets. false_secrets: diff --git a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml index 0a3f49f4be8..e739820ed7e 100644 --- a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml @@ -19,4 +19,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml index bc6115509cc..f46d880e096 100644 --- a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml @@ -23,4 +23,4 @@ dev_dependencies: integration_test: sdk: flutter js: ^0.6.3 - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/image_picker/image_picker/pubspec.yaml b/packages/image_picker/image_picker/pubspec.yaml index 68f993651ae..7296ce8001c 100755 --- a/packages/image_picker/image_picker/pubspec.yaml +++ b/packages/image_picker/image_picker/pubspec.yaml @@ -32,5 +32,5 @@ dev_dependencies: cross_file: ^0.3.1+1 # Mockito generates a direct include. flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 plugin_platform_interface: ^2.0.0 diff --git a/packages/image_picker/image_picker_android/pubspec.yaml b/packages/image_picker/image_picker_android/pubspec.yaml index 2a6ff2095b6..af2fbed95ea 100755 --- a/packages/image_picker/image_picker_android/pubspec.yaml +++ b/packages/image_picker/image_picker_android/pubspec.yaml @@ -27,5 +27,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 pigeon: ^9.1.0 diff --git a/packages/image_picker/image_picker_ios/pubspec.yaml b/packages/image_picker/image_picker_ios/pubspec.yaml index 4a865dec458..2b03d90c4f9 100755 --- a/packages/image_picker/image_picker_ios/pubspec.yaml +++ b/packages/image_picker/image_picker_ios/pubspec.yaml @@ -24,5 +24,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 pigeon: ^3.0.2 diff --git a/packages/image_picker/image_picker_windows/pubspec.yaml b/packages/image_picker/image_picker_windows/pubspec.yaml index 8611fc28568..34174c66c41 100644 --- a/packages/image_picker/image_picker_windows/pubspec.yaml +++ b/packages/image_picker/image_picker_windows/pubspec.yaml @@ -26,4 +26,4 @@ dev_dependencies: build_runner: ^2.1.5 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml index acfe0fb638f..e9f5cd760a1 100644 --- a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml @@ -28,5 +28,5 @@ dev_dependencies: flutter_test: sdk: flutter json_serializable: ^6.3.1 - mockito: 5.3.2 + mockito: ^5.3.2 test: ^1.16.0 diff --git a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml index e3670640ec2..bc4da44b853 100644 --- a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml @@ -18,4 +18,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/local_auth/local_auth/pubspec.yaml b/packages/local_auth/local_auth/pubspec.yaml index f6cd3781f31..7ca5f73a9a2 100644 --- a/packages/local_auth/local_auth/pubspec.yaml +++ b/packages/local_auth/local_auth/pubspec.yaml @@ -34,5 +34,5 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 plugin_platform_interface: ^2.1.2 diff --git a/packages/local_auth/local_auth_platform_interface/pubspec.yaml b/packages/local_auth/local_auth_platform_interface/pubspec.yaml index bbb5a6ccaa1..ca7b3de456e 100644 --- a/packages/local_auth/local_auth_platform_interface/pubspec.yaml +++ b/packages/local_auth/local_auth_platform_interface/pubspec.yaml @@ -18,4 +18,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/metrics_center/pubspec.yaml b/packages/metrics_center/pubspec.yaml index cbe63491ab3..098b5d07b36 100644 --- a/packages/metrics_center/pubspec.yaml +++ b/packages/metrics_center/pubspec.yaml @@ -19,5 +19,5 @@ dependencies: dev_dependencies: build_runner: ^2.1.1 fake_async: ^1.2.0 - mockito: 5.3.2 + mockito: ^5.3.2 test: ^1.17.11 diff --git a/packages/path_provider/path_provider_foundation/pubspec.yaml b/packages/path_provider/path_provider_foundation/pubspec.yaml index 907ca9c2e3c..f67a5b81b7e 100644 --- a/packages/path_provider/path_provider_foundation/pubspec.yaml +++ b/packages/path_provider/path_provider_foundation/pubspec.yaml @@ -30,6 +30,6 @@ dev_dependencies: build_runner: ^2.3.2 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 path: ^1.8.0 pigeon: ^5.0.0 diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml index 022b194858a..2a6f92ea23c 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml @@ -14,7 +14,7 @@ dev_dependencies: build_runner: ^2.1.10 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 flutter: uses-material-design: true diff --git a/packages/plugin_platform_interface/pubspec.yaml b/packages/plugin_platform_interface/pubspec.yaml index af8a0aac638..416dc9584ed 100644 --- a/packages/plugin_platform_interface/pubspec.yaml +++ b/packages/plugin_platform_interface/pubspec.yaml @@ -24,5 +24,5 @@ dependencies: meta: ^1.3.0 dev_dependencies: - mockito: 5.3.2 + mockito: ^5.3.2 test: ^1.16.0 diff --git a/packages/quick_actions/quick_actions/pubspec.yaml b/packages/quick_actions/quick_actions/pubspec.yaml index d9d2439fa09..a51583353ec 100644 --- a/packages/quick_actions/quick_actions/pubspec.yaml +++ b/packages/quick_actions/quick_actions/pubspec.yaml @@ -29,5 +29,5 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 plugin_platform_interface: ^2.0.0 diff --git a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml index e4272b83845..c479030f540 100644 --- a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml +++ b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml @@ -18,4 +18,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/url_launcher/url_launcher/example/pubspec.yaml b/packages/url_launcher/url_launcher/example/pubspec.yaml index 72766ef759e..29a1dc94364 100644 --- a/packages/url_launcher/url_launcher/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher/example/pubspec.yaml @@ -26,7 +26,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 plugin_platform_interface: ^2.0.0 flutter: diff --git a/packages/url_launcher/url_launcher/pubspec.yaml b/packages/url_launcher/url_launcher/pubspec.yaml index 795d7b1c583..5d549d46d16 100644 --- a/packages/url_launcher/url_launcher/pubspec.yaml +++ b/packages/url_launcher/url_launcher/pubspec.yaml @@ -41,6 +41,6 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 plugin_platform_interface: ^2.0.0 test: ^1.16.3 diff --git a/packages/url_launcher/url_launcher_android/example/pubspec.yaml b/packages/url_launcher/url_launcher_android/example/pubspec.yaml index f318cb3d108..f09668d47f2 100644 --- a/packages/url_launcher/url_launcher_android/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/example/pubspec.yaml @@ -25,7 +25,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 plugin_platform_interface: ^2.0.0 flutter: diff --git a/packages/url_launcher/url_launcher_android/pubspec.yaml b/packages/url_launcher/url_launcher_android/pubspec.yaml index f3cca6a731e..791e4ac9c4f 100644 --- a/packages/url_launcher/url_launcher_android/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/pubspec.yaml @@ -25,6 +25,6 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 plugin_platform_interface: ^2.0.0 test: ^1.16.3 diff --git a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml index c2914a09e4b..429a697ed3a 100644 --- a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml +++ b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml @@ -18,4 +18,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/url_launcher/url_launcher_web/example/pubspec.yaml b/packages/url_launcher/url_launcher_web/example/pubspec.yaml index 7dfb428171e..d20f379a318 100644 --- a/packages/url_launcher/url_launcher_web/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_web/example/pubspec.yaml @@ -19,7 +19,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 url_launcher_platform_interface: ^2.0.3 url_launcher_web: path: ../ diff --git a/packages/webview_flutter/webview_flutter/pubspec.yaml b/packages/webview_flutter/webview_flutter/pubspec.yaml index 60c1a832b77..41a09793a31 100644 --- a/packages/webview_flutter/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/pubspec.yaml @@ -29,5 +29,5 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 plugin_platform_interface: ^2.1.3 diff --git a/packages/webview_flutter/webview_flutter_android/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/pubspec.yaml index 5ae83c38194..7590587c753 100644 --- a/packages/webview_flutter/webview_flutter_android/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/pubspec.yaml @@ -28,5 +28,5 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 pigeon: ^9.0.4 diff --git a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml index 93bcf70dff9..5be6da2a00b 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml @@ -20,4 +20,4 @@ dev_dependencies: build_runner: ^2.1.8 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/webview_flutter/webview_flutter_web/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/pubspec.yaml index d3b4cd14983..05c8aa2be67 100644 --- a/packages/webview_flutter/webview_flutter_web/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/pubspec.yaml @@ -29,4 +29,4 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 diff --git a/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml index 45781d61110..15538a69d86 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml @@ -28,5 +28,5 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: ^5.3.2 pigeon: ^4.2.13 diff --git a/script/tool/pubspec.yaml b/script/tool/pubspec.yaml index 2eb973b4e1f..bb96a51c413 100644 --- a/script/tool/pubspec.yaml +++ b/script/tool/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: dev_dependencies: build_runner: ^2.0.3 matcher: ^0.12.10 - mockito: 5.3.2 + mockito: ^5.3.2 environment: sdk: '>=2.14.0 <4.0.0' From 73035f214ab0e4651f5e745378b90f823d492e4b Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Mon, 27 Mar 2023 16:39:12 +0000 Subject: [PATCH 02/11] Pin to 5.4.0 --- packages/camera/camera/pubspec.yaml | 2 +- packages/camera/camera_android_camerax/pubspec.yaml | 2 +- packages/file_selector/file_selector_ios/pubspec.yaml | 2 +- packages/file_selector/file_selector_macos/pubspec.yaml | 2 +- packages/file_selector/file_selector_windows/pubspec.yaml | 2 +- packages/flutter_markdown/pubspec.yaml | 2 +- .../google_maps_flutter_platform_interface/pubspec.yaml | 2 +- .../google_maps_flutter_web/example/pubspec.yaml | 2 +- packages/google_sign_in/google_sign_in/pubspec.yaml | 2 +- .../google_sign_in_platform_interface/pubspec.yaml | 2 +- packages/google_sign_in/google_sign_in_web/example/pubspec.yaml | 2 +- packages/image_picker/image_picker/pubspec.yaml | 2 +- packages/image_picker/image_picker_android/pubspec.yaml | 2 +- packages/image_picker/image_picker_ios/pubspec.yaml | 2 +- packages/image_picker/image_picker_windows/pubspec.yaml | 2 +- packages/in_app_purchase/in_app_purchase_android/pubspec.yaml | 2 +- .../in_app_purchase_platform_interface/pubspec.yaml | 2 +- packages/local_auth/local_auth/pubspec.yaml | 2 +- packages/local_auth/local_auth_platform_interface/pubspec.yaml | 2 +- packages/metrics_center/pubspec.yaml | 2 +- packages/path_provider/path_provider_foundation/pubspec.yaml | 2 +- .../platform_tests/flutter_null_safe_unit_tests/pubspec.yaml | 2 +- packages/plugin_platform_interface/pubspec.yaml | 2 +- packages/quick_actions/quick_actions/pubspec.yaml | 2 +- .../quick_actions/quick_actions_platform_interface/pubspec.yaml | 2 +- packages/url_launcher/url_launcher/example/pubspec.yaml | 2 +- packages/url_launcher/url_launcher/pubspec.yaml | 2 +- packages/url_launcher/url_launcher_android/example/pubspec.yaml | 2 +- packages/url_launcher/url_launcher_android/pubspec.yaml | 2 +- .../url_launcher/url_launcher_platform_interface/pubspec.yaml | 2 +- packages/url_launcher/url_launcher_web/example/pubspec.yaml | 2 +- packages/webview_flutter/webview_flutter/pubspec.yaml | 2 +- packages/webview_flutter/webview_flutter_android/pubspec.yaml | 2 +- .../webview_flutter_platform_interface/pubspec.yaml | 2 +- packages/webview_flutter/webview_flutter_web/pubspec.yaml | 2 +- packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml | 2 +- script/tool/pubspec.yaml | 2 +- 37 files changed, 37 insertions(+), 37 deletions(-) diff --git a/packages/camera/camera/pubspec.yaml b/packages/camera/camera/pubspec.yaml index d4569af1191..d06acc01466 100644 --- a/packages/camera/camera/pubspec.yaml +++ b/packages/camera/camera/pubspec.yaml @@ -35,6 +35,6 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 plugin_platform_interface: ^2.0.0 video_player: ^2.0.0 diff --git a/packages/camera/camera_android_camerax/pubspec.yaml b/packages/camera/camera_android_camerax/pubspec.yaml index b111e57d9af..3aa561dc33b 100644 --- a/packages/camera/camera_android_camerax/pubspec.yaml +++ b/packages/camera/camera_android_camerax/pubspec.yaml @@ -30,5 +30,5 @@ dev_dependencies: build_runner: ^2.1.4 flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 pigeon: ^3.2.6 diff --git a/packages/file_selector/file_selector_ios/pubspec.yaml b/packages/file_selector/file_selector_ios/pubspec.yaml index 1e5828ee1da..84765d9cedc 100644 --- a/packages/file_selector/file_selector_ios/pubspec.yaml +++ b/packages/file_selector/file_selector_ios/pubspec.yaml @@ -25,6 +25,6 @@ dev_dependencies: build_runner: 2.1.11 flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 pigeon: ^3.2.5 diff --git a/packages/file_selector/file_selector_macos/pubspec.yaml b/packages/file_selector/file_selector_macos/pubspec.yaml index 9826d7b623b..cd0622414d0 100644 --- a/packages/file_selector/file_selector_macos/pubspec.yaml +++ b/packages/file_selector/file_selector_macos/pubspec.yaml @@ -26,5 +26,5 @@ dev_dependencies: build_runner: ^2.3.2 flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 pigeon: ^4.2.14 diff --git a/packages/file_selector/file_selector_windows/pubspec.yaml b/packages/file_selector/file_selector_windows/pubspec.yaml index fde1692cae2..5d7405785f7 100644 --- a/packages/file_selector/file_selector_windows/pubspec.yaml +++ b/packages/file_selector/file_selector_windows/pubspec.yaml @@ -26,5 +26,5 @@ dev_dependencies: build_runner: 2.1.11 flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 pigeon: ^3.2.5 diff --git a/packages/flutter_markdown/pubspec.yaml b/packages/flutter_markdown/pubspec.yaml index 973136c7a25..06f9e2d0506 100644 --- a/packages/flutter_markdown/pubspec.yaml +++ b/packages/flutter_markdown/pubspec.yaml @@ -20,5 +20,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 standard_message_codec: ^0.0.1+3 diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml index dc97575af38..386a0ef62cf 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml @@ -21,4 +21,4 @@ dev_dependencies: async: ^2.5.0 flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml index 4ab1909767e..917529a914e 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml @@ -25,4 +25,4 @@ dev_dependencies: http: ^0.13.0 integration_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/google_sign_in/google_sign_in/pubspec.yaml b/packages/google_sign_in/google_sign_in/pubspec.yaml index a8ba667c67d..6767c8a1f39 100644 --- a/packages/google_sign_in/google_sign_in/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/pubspec.yaml @@ -36,7 +36,7 @@ dev_dependencies: http: ^0.13.0 integration_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 # The example deliberately includes limited-use secrets. false_secrets: diff --git a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml index e739820ed7e..ed7437a4ed9 100644 --- a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml @@ -19,4 +19,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml index f46d880e096..78312b43ab1 100644 --- a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml @@ -23,4 +23,4 @@ dev_dependencies: integration_test: sdk: flutter js: ^0.6.3 - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/image_picker/image_picker/pubspec.yaml b/packages/image_picker/image_picker/pubspec.yaml index 7296ce8001c..ffa49a503bb 100755 --- a/packages/image_picker/image_picker/pubspec.yaml +++ b/packages/image_picker/image_picker/pubspec.yaml @@ -32,5 +32,5 @@ dev_dependencies: cross_file: ^0.3.1+1 # Mockito generates a direct include. flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 plugin_platform_interface: ^2.0.0 diff --git a/packages/image_picker/image_picker_android/pubspec.yaml b/packages/image_picker/image_picker_android/pubspec.yaml index af2fbed95ea..f7890548321 100755 --- a/packages/image_picker/image_picker_android/pubspec.yaml +++ b/packages/image_picker/image_picker_android/pubspec.yaml @@ -27,5 +27,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 pigeon: ^9.1.0 diff --git a/packages/image_picker/image_picker_ios/pubspec.yaml b/packages/image_picker/image_picker_ios/pubspec.yaml index 2b03d90c4f9..05564e020fd 100755 --- a/packages/image_picker/image_picker_ios/pubspec.yaml +++ b/packages/image_picker/image_picker_ios/pubspec.yaml @@ -24,5 +24,5 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 pigeon: ^3.0.2 diff --git a/packages/image_picker/image_picker_windows/pubspec.yaml b/packages/image_picker/image_picker_windows/pubspec.yaml index 34174c66c41..48459a5e634 100644 --- a/packages/image_picker/image_picker_windows/pubspec.yaml +++ b/packages/image_picker/image_picker_windows/pubspec.yaml @@ -26,4 +26,4 @@ dev_dependencies: build_runner: ^2.1.5 flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml index e9f5cd760a1..2dc9f777d9d 100644 --- a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml @@ -28,5 +28,5 @@ dev_dependencies: flutter_test: sdk: flutter json_serializable: ^6.3.1 - mockito: ^5.3.2 + mockito: 5.4.0 test: ^1.16.0 diff --git a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml index bc4da44b853..9d6fd2e2c14 100644 --- a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml @@ -18,4 +18,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/local_auth/local_auth/pubspec.yaml b/packages/local_auth/local_auth/pubspec.yaml index 7ca5f73a9a2..4f1dfdea6e6 100644 --- a/packages/local_auth/local_auth/pubspec.yaml +++ b/packages/local_auth/local_auth/pubspec.yaml @@ -34,5 +34,5 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 plugin_platform_interface: ^2.1.2 diff --git a/packages/local_auth/local_auth_platform_interface/pubspec.yaml b/packages/local_auth/local_auth_platform_interface/pubspec.yaml index ca7b3de456e..c4a84d11e13 100644 --- a/packages/local_auth/local_auth_platform_interface/pubspec.yaml +++ b/packages/local_auth/local_auth_platform_interface/pubspec.yaml @@ -18,4 +18,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/metrics_center/pubspec.yaml b/packages/metrics_center/pubspec.yaml index 098b5d07b36..61d68557012 100644 --- a/packages/metrics_center/pubspec.yaml +++ b/packages/metrics_center/pubspec.yaml @@ -19,5 +19,5 @@ dependencies: dev_dependencies: build_runner: ^2.1.1 fake_async: ^1.2.0 - mockito: ^5.3.2 + mockito: 5.4.0 test: ^1.17.11 diff --git a/packages/path_provider/path_provider_foundation/pubspec.yaml b/packages/path_provider/path_provider_foundation/pubspec.yaml index f67a5b81b7e..b5953facbd8 100644 --- a/packages/path_provider/path_provider_foundation/pubspec.yaml +++ b/packages/path_provider/path_provider_foundation/pubspec.yaml @@ -30,6 +30,6 @@ dev_dependencies: build_runner: ^2.3.2 flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 path: ^1.8.0 pigeon: ^5.0.0 diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml index 2a6f92ea23c..07032c6e02d 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml @@ -14,7 +14,7 @@ dev_dependencies: build_runner: ^2.1.10 flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 flutter: uses-material-design: true diff --git a/packages/plugin_platform_interface/pubspec.yaml b/packages/plugin_platform_interface/pubspec.yaml index 416dc9584ed..865985bd8d7 100644 --- a/packages/plugin_platform_interface/pubspec.yaml +++ b/packages/plugin_platform_interface/pubspec.yaml @@ -24,5 +24,5 @@ dependencies: meta: ^1.3.0 dev_dependencies: - mockito: ^5.3.2 + mockito: 5.4.0 test: ^1.16.0 diff --git a/packages/quick_actions/quick_actions/pubspec.yaml b/packages/quick_actions/quick_actions/pubspec.yaml index a51583353ec..4f57fec46a1 100644 --- a/packages/quick_actions/quick_actions/pubspec.yaml +++ b/packages/quick_actions/quick_actions/pubspec.yaml @@ -29,5 +29,5 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 plugin_platform_interface: ^2.0.0 diff --git a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml index c479030f540..4284c9a7fd5 100644 --- a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml +++ b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml @@ -18,4 +18,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/url_launcher/url_launcher/example/pubspec.yaml b/packages/url_launcher/url_launcher/example/pubspec.yaml index 29a1dc94364..579296f16ca 100644 --- a/packages/url_launcher/url_launcher/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher/example/pubspec.yaml @@ -26,7 +26,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 plugin_platform_interface: ^2.0.0 flutter: diff --git a/packages/url_launcher/url_launcher/pubspec.yaml b/packages/url_launcher/url_launcher/pubspec.yaml index 5d549d46d16..f204d60dc01 100644 --- a/packages/url_launcher/url_launcher/pubspec.yaml +++ b/packages/url_launcher/url_launcher/pubspec.yaml @@ -41,6 +41,6 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 plugin_platform_interface: ^2.0.0 test: ^1.16.3 diff --git a/packages/url_launcher/url_launcher_android/example/pubspec.yaml b/packages/url_launcher/url_launcher_android/example/pubspec.yaml index f09668d47f2..eba22dbd0f3 100644 --- a/packages/url_launcher/url_launcher_android/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/example/pubspec.yaml @@ -25,7 +25,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 plugin_platform_interface: ^2.0.0 flutter: diff --git a/packages/url_launcher/url_launcher_android/pubspec.yaml b/packages/url_launcher/url_launcher_android/pubspec.yaml index 791e4ac9c4f..9fc2060e9a2 100644 --- a/packages/url_launcher/url_launcher_android/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/pubspec.yaml @@ -25,6 +25,6 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 plugin_platform_interface: ^2.0.0 test: ^1.16.3 diff --git a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml index 429a697ed3a..92b708b0880 100644 --- a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml +++ b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml @@ -18,4 +18,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/url_launcher/url_launcher_web/example/pubspec.yaml b/packages/url_launcher/url_launcher_web/example/pubspec.yaml index d20f379a318..d7f8792dc00 100644 --- a/packages/url_launcher/url_launcher_web/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_web/example/pubspec.yaml @@ -19,7 +19,7 @@ dev_dependencies: sdk: flutter integration_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 url_launcher_platform_interface: ^2.0.3 url_launcher_web: path: ../ diff --git a/packages/webview_flutter/webview_flutter/pubspec.yaml b/packages/webview_flutter/webview_flutter/pubspec.yaml index 41a09793a31..97c079cf5e4 100644 --- a/packages/webview_flutter/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/pubspec.yaml @@ -29,5 +29,5 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 plugin_platform_interface: ^2.1.3 diff --git a/packages/webview_flutter/webview_flutter_android/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/pubspec.yaml index 7590587c753..691eb19abd7 100644 --- a/packages/webview_flutter/webview_flutter_android/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/pubspec.yaml @@ -28,5 +28,5 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 pigeon: ^9.0.4 diff --git a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml index 5be6da2a00b..320decfd13d 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml @@ -20,4 +20,4 @@ dev_dependencies: build_runner: ^2.1.8 flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/webview_flutter/webview_flutter_web/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/pubspec.yaml index 05c8aa2be67..c727ba6287c 100644 --- a/packages/webview_flutter/webview_flutter_web/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/pubspec.yaml @@ -29,4 +29,4 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 diff --git a/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml index 15538a69d86..ae9da285f7e 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml @@ -28,5 +28,5 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - mockito: ^5.3.2 + mockito: 5.4.0 pigeon: ^4.2.13 diff --git a/script/tool/pubspec.yaml b/script/tool/pubspec.yaml index bb96a51c413..c31786e6eb7 100644 --- a/script/tool/pubspec.yaml +++ b/script/tool/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: dev_dependencies: build_runner: ^2.0.3 matcher: ^0.12.10 - mockito: ^5.3.2 + mockito: 5.4.0 environment: sdk: '>=2.14.0 <4.0.0' From 25c601dd73977274aa35a7e852854eda7ecd29d8 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Mon, 27 Mar 2023 17:08:00 +0000 Subject: [PATCH 03/11] Update to a newer pigeon The old pigeon is not compatible with a new enough analyzer. --- packages/camera/camera_android_camerax/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/camera/camera_android_camerax/pubspec.yaml b/packages/camera/camera_android_camerax/pubspec.yaml index 3aa561dc33b..ad7daf61251 100644 --- a/packages/camera/camera_android_camerax/pubspec.yaml +++ b/packages/camera/camera_android_camerax/pubspec.yaml @@ -31,4 +31,4 @@ dev_dependencies: flutter_test: sdk: flutter mockito: 5.4.0 - pigeon: ^3.2.6 + pigeon: ^9.1.0 From 281f1df6abda8f69d56d430479db2171e97cf6e4 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Tue, 28 Mar 2023 14:22:06 -0400 Subject: [PATCH 04/11] Set minimum Flutter versions to 3.3 --- packages/camera/camera/example/pubspec.yaml | 4 ++-- packages/camera/camera/pubspec.yaml | 4 ++-- packages/camera/camera_android_camerax/example/pubspec.yaml | 4 ++-- packages/camera/camera_android_camerax/pubspec.yaml | 4 ++-- packages/file_selector/file_selector_ios/example/pubspec.yaml | 4 ++-- .../file_selector/file_selector_macos/example/pubspec.yaml | 4 ++-- packages/file_selector/file_selector_macos/pubspec.yaml | 4 ++-- .../file_selector/file_selector_windows/example/pubspec.yaml | 4 ++-- packages/file_selector/file_selector_windows/pubspec.yaml | 4 ++-- packages/flutter_markdown/example/pubspec.yaml | 4 ++-- packages/flutter_markdown/pubspec.yaml | 4 ++-- .../google_maps_flutter_platform_interface/pubspec.yaml | 4 ++-- .../google_maps_flutter_web/example/pubspec.yaml | 4 ++-- .../google_maps_flutter/google_maps_flutter_web/pubspec.yaml | 4 ++-- packages/google_sign_in/google_sign_in/example/pubspec.yaml | 4 ++-- packages/google_sign_in/google_sign_in/pubspec.yaml | 4 ++-- .../google_sign_in_platform_interface/pubspec.yaml | 4 ++-- .../google_sign_in/google_sign_in_web/example/pubspec.yaml | 4 ++-- packages/google_sign_in/google_sign_in_web/pubspec.yaml | 4 ++-- packages/image_picker/image_picker/example/pubspec.yaml | 4 ++-- packages/image_picker/image_picker/pubspec.yaml | 4 ++-- .../image_picker/image_picker_android/example/pubspec.yaml | 4 ++-- packages/image_picker/image_picker_android/pubspec.yaml | 4 ++-- packages/image_picker/image_picker_ios/example/pubspec.yaml | 4 ++-- .../image_picker/image_picker_windows/example/pubspec.yaml | 4 ++-- packages/image_picker/image_picker_windows/pubspec.yaml | 4 ++-- .../in_app_purchase_android/example/pubspec.yaml | 4 ++-- packages/in_app_purchase/in_app_purchase_android/pubspec.yaml | 4 ++-- .../in_app_purchase_platform_interface/pubspec.yaml | 4 ++-- packages/local_auth/local_auth/example/pubspec.yaml | 4 ++-- packages/local_auth/local_auth/pubspec.yaml | 4 ++-- .../local_auth/local_auth_platform_interface/pubspec.yaml | 4 ++-- packages/metrics_center/pubspec.yaml | 2 +- .../path_provider_foundation/example/pubspec.yaml | 4 ++-- packages/path_provider/path_provider_foundation/pubspec.yaml | 4 ++-- packages/pigeon/mock_handler_tester/pubspec.yaml | 4 ++-- .../platform_tests/flutter_null_safe_unit_tests/pubspec.yaml | 4 ++-- packages/pigeon/pubspec.yaml | 2 +- packages/plugin_platform_interface/pubspec.yaml | 2 +- packages/quick_actions/quick_actions/example/pubspec.yaml | 4 ++-- packages/quick_actions/quick_actions/pubspec.yaml | 4 ++-- .../quick_actions_platform_interface/pubspec.yaml | 4 ++-- packages/url_launcher/url_launcher/example/pubspec.yaml | 4 ++-- packages/url_launcher/url_launcher/pubspec.yaml | 4 ++-- .../url_launcher/url_launcher_android/example/pubspec.yaml | 4 ++-- packages/url_launcher/url_launcher_android/pubspec.yaml | 4 ++-- .../url_launcher/url_launcher_platform_interface/pubspec.yaml | 4 ++-- packages/url_launcher/url_launcher_web/example/pubspec.yaml | 4 ++-- packages/url_launcher/url_launcher_web/pubspec.yaml | 4 ++-- .../video_player/video_player_android/example/pubspec.yaml | 4 ++-- packages/video_player/video_player_android/pubspec.yaml | 4 ++-- packages/webview_flutter/webview_flutter/example/pubspec.yaml | 4 ++-- packages/webview_flutter/webview_flutter/pubspec.yaml | 4 ++-- .../webview_flutter_android/example/pubspec.yaml | 4 ++-- packages/webview_flutter/webview_flutter_android/pubspec.yaml | 4 ++-- .../webview_flutter_platform_interface/pubspec.yaml | 4 ++-- .../webview_flutter/webview_flutter_web/example/pubspec.yaml | 4 ++-- packages/webview_flutter/webview_flutter_web/pubspec.yaml | 4 ++-- .../webview_flutter_wkwebview/example/pubspec.yaml | 4 ++-- 59 files changed, 115 insertions(+), 115 deletions(-) diff --git a/packages/camera/camera/example/pubspec.yaml b/packages/camera/camera/example/pubspec.yaml index eaf2bd19238..41ed519cd17 100644 --- a/packages/camera/camera/example/pubspec.yaml +++ b/packages/camera/camera/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the camera plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: camera: diff --git a/packages/camera/camera/pubspec.yaml b/packages/camera/camera/pubspec.yaml index d06acc01466..f2196e740a7 100644 --- a/packages/camera/camera/pubspec.yaml +++ b/packages/camera/camera/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.10.3+2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/camera/camera_android_camerax/example/pubspec.yaml b/packages/camera/camera_android_camerax/example/pubspec.yaml index d3ca746e6c6..1a055e7913c 100644 --- a/packages/camera/camera_android_camerax/example/pubspec.yaml +++ b/packages/camera/camera_android_camerax/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the camera_android_camerax plugin. publish_to: 'none' environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: camera_android_camerax: diff --git a/packages/camera/camera_android_camerax/pubspec.yaml b/packages/camera/camera_android_camerax/pubspec.yaml index ad7daf61251..35399a356ab 100644 --- a/packages/camera/camera_android_camerax/pubspec.yaml +++ b/packages/camera/camera_android_camerax/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ publish_to: 'none' environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/file_selector/file_selector_ios/example/pubspec.yaml b/packages/file_selector/file_selector_ios/example/pubspec.yaml index d5ab5743967..44642b6d912 100644 --- a/packages/file_selector/file_selector_ios/example/pubspec.yaml +++ b/packages/file_selector/file_selector_ios/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: # The following adds the Cupertino Icons font to your application. diff --git a/packages/file_selector/file_selector_macos/example/pubspec.yaml b/packages/file_selector/file_selector_macos/example/pubspec.yaml index 600f58154ab..b8e38bd4e8a 100644 --- a/packages/file_selector/file_selector_macos/example/pubspec.yaml +++ b/packages/file_selector/file_selector_macos/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: file_selector_macos: diff --git a/packages/file_selector/file_selector_macos/pubspec.yaml b/packages/file_selector/file_selector_macos/pubspec.yaml index e4ea83815fc..125b63cedd6 100644 --- a/packages/file_selector/file_selector_macos/pubspec.yaml +++ b/packages/file_selector/file_selector_macos/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.0+7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/file_selector/file_selector_windows/example/pubspec.yaml b/packages/file_selector/file_selector_windows/example/pubspec.yaml index 4d4ca6d9e92..aa46b515f40 100644 --- a/packages/file_selector/file_selector_windows/example/pubspec.yaml +++ b/packages/file_selector/file_selector_windows/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: file_selector_platform_interface: ^2.2.0 diff --git a/packages/file_selector/file_selector_windows/pubspec.yaml b/packages/file_selector/file_selector_windows/pubspec.yaml index e866c932710..3d55f843d5b 100644 --- a/packages/file_selector/file_selector_windows/pubspec.yaml +++ b/packages/file_selector/file_selector_windows/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.1+7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/flutter_markdown/example/pubspec.yaml b/packages/flutter_markdown/example/pubspec.yaml index 8d95cb9fe7a..61bbdc2972f 100644 --- a/packages/flutter_markdown/example/pubspec.yaml +++ b/packages/flutter_markdown/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the flutter_markdown package. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/flutter_markdown/pubspec.yaml b/packages/flutter_markdown/pubspec.yaml index 06f9e2d0506..dedd749dc33 100644 --- a/packages/flutter_markdown/pubspec.yaml +++ b/packages/flutter_markdown/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.6.14 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml index 386a0ef62cf..87960490881 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.2.6 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: collection: ^1.15.0 diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml index 917529a914e..787e397e102 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml @@ -3,8 +3,8 @@ publish_to: none # Tests require flutter beta or greater to run. environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml index ba9c7d34915..83f4971a268 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.4.0+7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/google_sign_in/google_sign_in/example/pubspec.yaml b/packages/google_sign_in/google_sign_in/example/pubspec.yaml index ff09d94279c..f46a4df7eb8 100644 --- a/packages/google_sign_in/google_sign_in/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Example of Google Sign-In plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/google_sign_in/google_sign_in/pubspec.yaml b/packages/google_sign_in/google_sign_in/pubspec.yaml index 6767c8a1f39..3fcabdf0ffd 100644 --- a/packages/google_sign_in/google_sign_in/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.0.2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml index ed7437a4ed9..17645aa9ad4 100644 --- a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.3.1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml index 78312b43ab1..daac8ca34ab 100644 --- a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml @@ -2,8 +2,8 @@ name: google_sign_in_web_integration_tests publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/google_sign_in/google_sign_in_web/pubspec.yaml b/packages/google_sign_in/google_sign_in_web/pubspec.yaml index 92066ffacce..745c4e42fbe 100644 --- a/packages/google_sign_in/google_sign_in_web/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_web/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.11.0+2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/image_picker/image_picker/example/pubspec.yaml b/packages/image_picker/image_picker/example/pubspec.yaml index 462e582188c..6b38b56bbed 100644 --- a/packages/image_picker/image_picker/example/pubspec.yaml +++ b/packages/image_picker/image_picker/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/image_picker/image_picker/pubspec.yaml b/packages/image_picker/image_picker/pubspec.yaml index e440922fa8e..168adcbda3a 100755 --- a/packages/image_picker/image_picker/pubspec.yaml +++ b/packages/image_picker/image_picker/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.8.7+1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/image_picker/image_picker_android/example/pubspec.yaml b/packages/image_picker/image_picker_android/example/pubspec.yaml index d7fc2ea09ba..8921a37a67e 100644 --- a/packages/image_picker/image_picker_android/example/pubspec.yaml +++ b/packages/image_picker/image_picker_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/image_picker/image_picker_android/pubspec.yaml b/packages/image_picker/image_picker_android/pubspec.yaml index f7890548321..6c1c593f481 100755 --- a/packages/image_picker/image_picker_android/pubspec.yaml +++ b/packages/image_picker/image_picker_android/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.8.6+6 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/image_picker/image_picker_ios/example/pubspec.yaml b/packages/image_picker/image_picker_ios/example/pubspec.yaml index 3715b36fd12..d0bca043d1e 100755 --- a/packages/image_picker/image_picker_ios/example/pubspec.yaml +++ b/packages/image_picker/image_picker_ios/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/image_picker/image_picker_windows/example/pubspec.yaml b/packages/image_picker/image_picker_windows/example/pubspec.yaml index b9f33efc98a..3f13f771185 100644 --- a/packages/image_picker/image_picker_windows/example/pubspec.yaml +++ b/packages/image_picker/image_picker_windows/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/image_picker/image_picker_windows/pubspec.yaml b/packages/image_picker/image_picker_windows/pubspec.yaml index 48459a5e634..bcd8be0719c 100644 --- a/packages/image_picker/image_picker_windows/pubspec.yaml +++ b/packages/image_picker/image_picker_windows/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.1.0+6 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml index b04b5719a1c..a2b59a3265b 100644 --- a/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the in_app_purchase_android plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml index 2dc9f777d9d..1acaba34638 100644 --- a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.2.4+3 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml index 9d6fd2e2c14..868f7587b75 100644 --- a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.3.3 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/local_auth/local_auth/example/pubspec.yaml b/packages/local_auth/local_auth/example/pubspec.yaml index 0cbd4f82b8e..53c5b88dbc0 100644 --- a/packages/local_auth/local_auth/example/pubspec.yaml +++ b/packages/local_auth/local_auth/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the local_auth plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/local_auth/local_auth/pubspec.yaml b/packages/local_auth/local_auth/pubspec.yaml index 4f1dfdea6e6..a6cbe4aa6e3 100644 --- a/packages/local_auth/local_auth/pubspec.yaml +++ b/packages/local_auth/local_auth/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.6 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/local_auth/local_auth_platform_interface/pubspec.yaml b/packages/local_auth/local_auth_platform_interface/pubspec.yaml index c4a84d11e13..72617045744 100644 --- a/packages/local_auth/local_auth_platform_interface/pubspec.yaml +++ b/packages/local_auth/local_auth_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/metrics_center/pubspec.yaml b/packages/metrics_center/pubspec.yaml index 61d68557012..289810749ce 100644 --- a/packages/metrics_center/pubspec.yaml +++ b/packages/metrics_center/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/metrics_cente issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+metrics_center%22 environment: - sdk: ">=2.17.0 <4.0.0" + sdk: ">=2.18.0 <4.0.0" dependencies: crypto: ^3.0.1 diff --git a/packages/path_provider/path_provider_foundation/example/pubspec.yaml b/packages/path_provider/path_provider_foundation/example/pubspec.yaml index 44bf05a27bf..64caf32a15c 100644 --- a/packages/path_provider/path_provider_foundation/example/pubspec.yaml +++ b/packages/path_provider/path_provider_foundation/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the path_provider plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/path_provider/path_provider_foundation/pubspec.yaml b/packages/path_provider/path_provider_foundation/pubspec.yaml index fea6c679444..89e0a123cfe 100644 --- a/packages/path_provider/path_provider_foundation/pubspec.yaml +++ b/packages/path_provider/path_provider_foundation/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.2.1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/pigeon/mock_handler_tester/pubspec.yaml b/packages/pigeon/mock_handler_tester/pubspec.yaml index 010ce2c3f2e..69eba8468ab 100644 --- a/packages/pigeon/mock_handler_tester/pubspec.yaml +++ b/packages/pigeon/mock_handler_tester/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: cupertino_icons: ^1.0.2 diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml index 07032c6e02d..120409897f2 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml @@ -3,8 +3,8 @@ description: Unit test scaffold for null safe Flutter projects. publish_to: none # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/pigeon/pubspec.yaml b/packages/pigeon/pubspec.yaml index c38c2f72b80..6e39711fa9d 100644 --- a/packages/pigeon/pubspec.yaml +++ b/packages/pigeon/pubspec.yaml @@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 9.1.1 # This must match the version in lib/generator_tools.dart environment: - sdk: ">=2.17.0 <4.0.0" + sdk: ">=2.18.0 <4.0.0" dependencies: analyzer: "^5.2.0" diff --git a/packages/plugin_platform_interface/pubspec.yaml b/packages/plugin_platform_interface/pubspec.yaml index 865985bd8d7..1c6dab5ab02 100644 --- a/packages/plugin_platform_interface/pubspec.yaml +++ b/packages/plugin_platform_interface/pubspec.yaml @@ -18,7 +18,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.4 environment: - sdk: ">=2.17.0 <4.0.0" + sdk: ">=2.18.0 <4.0.0" dependencies: meta: ^1.3.0 diff --git a/packages/quick_actions/quick_actions/example/pubspec.yaml b/packages/quick_actions/quick_actions/example/pubspec.yaml index 04cb5215a8c..073d2275851 100644 --- a/packages/quick_actions/quick_actions/example/pubspec.yaml +++ b/packages/quick_actions/quick_actions/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the quick_actions plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/quick_actions/quick_actions/pubspec.yaml b/packages/quick_actions/quick_actions/pubspec.yaml index 4f57fec46a1..710a03eb411 100644 --- a/packages/quick_actions/quick_actions/pubspec.yaml +++ b/packages/quick_actions/quick_actions/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml index 4284c9a7fd5..3e922177de4 100644 --- a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml +++ b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.4 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/url_launcher/url_launcher/example/pubspec.yaml b/packages/url_launcher/url_launcher/example/pubspec.yaml index 579296f16ca..736c1bee586 100644 --- a/packages/url_launcher/url_launcher/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the url_launcher plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/url_launcher/url_launcher/pubspec.yaml b/packages/url_launcher/url_launcher/pubspec.yaml index f204d60dc01..58dce23759b 100644 --- a/packages/url_launcher/url_launcher/pubspec.yaml +++ b/packages/url_launcher/url_launcher/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.1.10 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/url_launcher/url_launcher_android/example/pubspec.yaml b/packages/url_launcher/url_launcher_android/example/pubspec.yaml index eba22dbd0f3..18abe9ef6c3 100644 --- a/packages/url_launcher/url_launcher_android/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the url_launcher plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/url_launcher/url_launcher_android/pubspec.yaml b/packages/url_launcher/url_launcher_android/pubspec.yaml index 9fc2060e9a2..ddfd3e5f22b 100644 --- a/packages/url_launcher/url_launcher_android/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.0.26 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml index 92b708b0880..50824528932 100644 --- a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml +++ b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/url_launcher/url_launcher_web/example/pubspec.yaml b/packages/url_launcher/url_launcher_web/example/pubspec.yaml index d7f8792dc00..a5fe899751f 100644 --- a/packages/url_launcher/url_launcher_web/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_web/example/pubspec.yaml @@ -2,8 +2,8 @@ name: regular_integration_tests publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/url_launcher/url_launcher_web/pubspec.yaml b/packages/url_launcher/url_launcher_web/pubspec.yaml index e7aba636214..755dcd507a5 100644 --- a/packages/url_launcher/url_launcher_web/pubspec.yaml +++ b/packages/url_launcher/url_launcher_web/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.16 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/video_player/video_player_android/example/pubspec.yaml b/packages/video_player/video_player_android/example/pubspec.yaml index 8a6447e5916..2b4bb097905 100644 --- a/packages/video_player/video_player_android/example/pubspec.yaml +++ b/packages/video_player/video_player_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the video_player plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/video_player/video_player_android/pubspec.yaml b/packages/video_player/video_player_android/pubspec.yaml index e4d575de78b..b847a6d9c07 100644 --- a/packages/video_player/video_player_android/pubspec.yaml +++ b/packages/video_player/video_player_android/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.4.3 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/webview_flutter/webview_flutter/example/pubspec.yaml b/packages/webview_flutter/webview_flutter/example/pubspec.yaml index 135d8995851..742e9a7e01b 100644 --- a/packages/webview_flutter/webview_flutter/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/webview_flutter/webview_flutter/pubspec.yaml b/packages/webview_flutter/webview_flutter/pubspec.yaml index 97c079cf5e4..8c013dec231 100644 --- a/packages/webview_flutter/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 4.0.7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml index 760f7d52abb..83f3f00312f 100644 --- a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter_android plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/webview_flutter/webview_flutter_android/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/pubspec.yaml index 691eb19abd7..4321673b66b 100644 --- a/packages/webview_flutter/webview_flutter_android/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 3.4.3 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml index 320decfd13d..6d05e0ab629 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml index 24953153ebd..2e1daffb1c8 100644 --- a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter_web plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/webview_flutter/webview_flutter_web/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/pubspec.yaml index c727ba6287c..845d5785232 100644 --- a/packages/webview_flutter/webview_flutter_web/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.2.2+1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml index b39ff595fc6..4af215cee74 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter_wkwebview plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: From 174c280e790edd8e35ab132a48110bc9ad81ee34 Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Tue, 28 Mar 2023 14:24:04 -0400 Subject: [PATCH 05/11] Updates changelogs for SDK bump --- packages/camera/camera/CHANGELOG.md | 1 + packages/camera/camera_android_camerax/CHANGELOG.md | 1 + packages/file_selector/file_selector_ios/CHANGELOG.md | 4 ++++ packages/file_selector/file_selector_macos/CHANGELOG.md | 4 ++++ packages/file_selector/file_selector_windows/CHANGELOG.md | 4 ++++ packages/flutter_markdown/CHANGELOG.md | 1 + .../google_maps_flutter_platform_interface/CHANGELOG.md | 1 + .../google_maps_flutter/google_maps_flutter_web/CHANGELOG.md | 4 ++++ packages/google_sign_in/google_sign_in/CHANGELOG.md | 1 + .../google_sign_in_platform_interface/CHANGELOG.md | 1 + packages/google_sign_in/google_sign_in_web/CHANGELOG.md | 4 ++++ packages/image_picker/image_picker/CHANGELOG.md | 4 ++++ packages/image_picker/image_picker_android/CHANGELOG.md | 4 ++++ packages/image_picker/image_picker_ios/CHANGELOG.md | 4 ++++ packages/image_picker/image_picker_windows/CHANGELOG.md | 4 ++++ packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md | 4 ++++ .../in_app_purchase_platform_interface/CHANGELOG.md | 1 + packages/local_auth/local_auth/CHANGELOG.md | 1 + .../local_auth/local_auth_platform_interface/CHANGELOG.md | 1 + packages/metrics_center/CHANGELOG.md | 4 ++++ packages/path_provider/path_provider_foundation/CHANGELOG.md | 4 ++++ packages/pigeon/CHANGELOG.md | 4 ++++ packages/plugin_platform_interface/CHANGELOG.md | 4 ++++ packages/quick_actions/quick_actions/CHANGELOG.md | 1 + .../quick_actions_platform_interface/CHANGELOG.md | 1 + packages/url_launcher/url_launcher/CHANGELOG.md | 1 + packages/url_launcher/url_launcher_android/CHANGELOG.md | 4 ++++ .../url_launcher/url_launcher_platform_interface/CHANGELOG.md | 1 + packages/url_launcher/url_launcher_web/CHANGELOG.md | 4 ++++ packages/video_player/video_player_android/CHANGELOG.md | 4 ++++ packages/webview_flutter/webview_flutter/CHANGELOG.md | 4 ++++ packages/webview_flutter/webview_flutter_android/CHANGELOG.md | 4 ++++ .../webview_flutter_platform_interface/CHANGELOG.md | 4 ++++ packages/webview_flutter/webview_flutter_web/CHANGELOG.md | 1 + .../webview_flutter/webview_flutter_wkwebview/CHANGELOG.md | 4 ++++ 35 files changed, 98 insertions(+) diff --git a/packages/camera/camera/CHANGELOG.md b/packages/camera/camera/CHANGELOG.md index 5320774e6a9..f68d6e3cffd 100644 --- a/packages/camera/camera/CHANGELOG.md +++ b/packages/camera/camera/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 0.10.3+2 diff --git a/packages/camera/camera_android_camerax/CHANGELOG.md b/packages/camera/camera_android_camerax/CHANGELOG.md index f163e831acc..cfe8bbc7221 100644 --- a/packages/camera/camera_android_camerax/CHANGELOG.md +++ b/packages/camera/camera_android_camerax/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Creates camera_android_camerax plugin for development. * Adds CameraInfo class and removes unnecessary code from plugin. * Adds CameraSelector class. diff --git a/packages/file_selector/file_selector_ios/CHANGELOG.md b/packages/file_selector/file_selector_ios/CHANGELOG.md index 1404a746fd4..9c80f0b3f5f 100644 --- a/packages/file_selector/file_selector_ios/CHANGELOG.md +++ b/packages/file_selector/file_selector_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.5.1+2 * Updates to `pigeon` version 9. diff --git a/packages/file_selector/file_selector_macos/CHANGELOG.md b/packages/file_selector/file_selector_macos/CHANGELOG.md index a02f6be3c15..af295117f04 100644 --- a/packages/file_selector/file_selector_macos/CHANGELOG.md +++ b/packages/file_selector/file_selector_macos/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.9.0+7 * Updates to `pigeon` version 9. diff --git a/packages/file_selector/file_selector_windows/CHANGELOG.md b/packages/file_selector/file_selector_windows/CHANGELOG.md index b3c41bacdac..d6e2b83b77c 100644 --- a/packages/file_selector/file_selector_windows/CHANGELOG.md +++ b/packages/file_selector/file_selector_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.9.1+7 * Updates to `pigeon` version 9. diff --git a/packages/flutter_markdown/CHANGELOG.md b/packages/flutter_markdown/CHANGELOG.md index 1ec37e27fcf..c9376d87dc0 100644 --- a/packages/flutter_markdown/CHANGELOG.md +++ b/packages/flutter_markdown/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 0.6.14 diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md index b31d7f2d541..0fb0375c0d9 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 2.2.6 diff --git a/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md index be97166650b..0a712b44eba 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.4.0+7 * Clarifies explanation of endorsement in README. diff --git a/packages/google_sign_in/google_sign_in/CHANGELOG.md b/packages/google_sign_in/google_sign_in/CHANGELOG.md index 0723487fd90..d37374ac358 100644 --- a/packages/google_sign_in/google_sign_in/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 6.0.2 diff --git a/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md b/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md index 751bf5b65dc..c3a7366d193 100644 --- a/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 2.3.1 diff --git a/packages/google_sign_in/google_sign_in_web/CHANGELOG.md b/packages/google_sign_in/google_sign_in_web/CHANGELOG.md index 2d02e63eee3..f38290f14cb 100644 --- a/packages/google_sign_in/google_sign_in_web/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.11.0+2 * Clarifies explanation of endorsement in README. diff --git a/packages/image_picker/image_picker/CHANGELOG.md b/packages/image_picker/image_picker/CHANGELOG.md index 140efae1fb2..242a0b0b708 100644 --- a/packages/image_picker/image_picker/CHANGELOG.md +++ b/packages/image_picker/image_picker/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.8.7+1 * Updates README to use code excerpts. diff --git a/packages/image_picker/image_picker_android/CHANGELOG.md b/packages/image_picker/image_picker_android/CHANGELOG.md index 8e5fd29e456..629497f7596 100644 --- a/packages/image_picker/image_picker_android/CHANGELOG.md +++ b/packages/image_picker/image_picker_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.8.6+6 * Bumps androidx.core:core from 1.8.0 to 1.9.0. diff --git a/packages/image_picker/image_picker_ios/CHANGELOG.md b/packages/image_picker/image_picker_ios/CHANGELOG.md index 8d9147a9f06..b47de945309 100644 --- a/packages/image_picker/image_picker_ios/CHANGELOG.md +++ b/packages/image_picker/image_picker_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.8.7+2 * Updates to `pigeon` version 9. diff --git a/packages/image_picker/image_picker_windows/CHANGELOG.md b/packages/image_picker/image_picker_windows/CHANGELOG.md index b428a85d444..9c6267cbc0c 100644 --- a/packages/image_picker/image_picker_windows/CHANGELOG.md +++ b/packages/image_picker/image_picker_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.1.0+6 * Clarifies explanation of endorsement in README. diff --git a/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md index 6b63b1c7ce5..f87c7e9bad9 100644 --- a/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.2.4+3 * Clarifies explanation of endorsement in README. diff --git a/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md index 341218cd99d..c639d58ad2a 100644 --- a/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 1.3.3 diff --git a/packages/local_auth/local_auth/CHANGELOG.md b/packages/local_auth/local_auth/CHANGELOG.md index 584daa88a16..b542eda207a 100644 --- a/packages/local_auth/local_auth/CHANGELOG.md +++ b/packages/local_auth/local_auth/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 2.1.6 diff --git a/packages/local_auth/local_auth_platform_interface/CHANGELOG.md b/packages/local_auth/local_auth_platform_interface/CHANGELOG.md index 201ffb11674..815e843266e 100644 --- a/packages/local_auth/local_auth_platform_interface/CHANGELOG.md +++ b/packages/local_auth/local_auth_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 1.0.7 diff --git a/packages/metrics_center/CHANGELOG.md b/packages/metrics_center/CHANGELOG.md index 80bf962ff9f..ca2168267ab 100644 --- a/packages/metrics_center/CHANGELOG.md +++ b/packages/metrics_center/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 1.0.7 * Updates code to fix strict-cast violations. diff --git a/packages/path_provider/path_provider_foundation/CHANGELOG.md b/packages/path_provider/path_provider_foundation/CHANGELOG.md index 7849e7e07c4..0dfe9724ede 100644 --- a/packages/path_provider/path_provider_foundation/CHANGELOG.md +++ b/packages/path_provider/path_provider_foundation/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.2.1 * Updates to `pigeon` version 9. diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index 988b465fb86..1e16999d169 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 9.1.1 * [swift] Removes experimental tags. diff --git a/packages/plugin_platform_interface/CHANGELOG.md b/packages/plugin_platform_interface/CHANGELOG.md index 24186a3a76e..d63cc2ae654 100644 --- a/packages/plugin_platform_interface/CHANGELOG.md +++ b/packages/plugin_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.1.4 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/quick_actions/quick_actions/CHANGELOG.md b/packages/quick_actions/quick_actions/CHANGELOG.md index 8687f72e638..10913d1b211 100644 --- a/packages/quick_actions/quick_actions/CHANGELOG.md +++ b/packages/quick_actions/quick_actions/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 1.0.2 diff --git a/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md b/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md index 5d5083835eb..2f1d78a0c50 100644 --- a/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md +++ b/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 1.0.4 diff --git a/packages/url_launcher/url_launcher/CHANGELOG.md b/packages/url_launcher/url_launcher/CHANGELOG.md index 1e59d1d0a20..ea5f593f59e 100644 --- a/packages/url_launcher/url_launcher/CHANGELOG.md +++ b/packages/url_launcher/url_launcher/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 6.1.10 diff --git a/packages/url_launcher/url_launcher_android/CHANGELOG.md b/packages/url_launcher/url_launcher_android/CHANGELOG.md index 8553d7333c9..1505525dfd4 100644 --- a/packages/url_launcher/url_launcher_android/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 6.0.26 * Bump RoboElectric dependency to 4.4.1 to support AndroidX. diff --git a/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md b/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md index a292ce10fa6..fa03c093e91 100644 --- a/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 2.1.2 diff --git a/packages/url_launcher/url_launcher_web/CHANGELOG.md b/packages/url_launcher/url_launcher_web/CHANGELOG.md index 49151cfcd18..91ef9e42e4f 100644 --- a/packages/url_launcher/url_launcher_web/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.0.16 * Clarifies explanation of endorsement in README. diff --git a/packages/video_player/video_player_android/CHANGELOG.md b/packages/video_player/video_player_android/CHANGELOG.md index 6653f083bb7..fcb4f98f61f 100644 --- a/packages/video_player/video_player_android/CHANGELOG.md +++ b/packages/video_player/video_player_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.4.3 * Bumps ExoPlayer version to 2.18.5. diff --git a/packages/webview_flutter/webview_flutter/CHANGELOG.md b/packages/webview_flutter/webview_flutter/CHANGELOG.md index 3fd3dec7ce8..0151146d724 100644 --- a/packages/webview_flutter/webview_flutter/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 4.0.7 * Updates the README with the migration of `WebView.initialCookies` and Hybrid Composition on diff --git a/packages/webview_flutter/webview_flutter_android/CHANGELOG.md b/packages/webview_flutter/webview_flutter_android/CHANGELOG.md index 9bb8d8205af..c3a16e84ae9 100644 --- a/packages/webview_flutter/webview_flutter_android/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 3.4.3 * Updates internal Java InstanceManager to be cleared on hot restart. diff --git a/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md b/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md index b94310b2fd5..808c85c7b23 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.1.0 * Adds support to track url changes. See `PlatformNavigationDelegate.setOnUrlChange`. diff --git a/packages/webview_flutter/webview_flutter_web/CHANGELOG.md b/packages/webview_flutter/webview_flutter_web/CHANGELOG.md index 5ce2e1fff47..38f28aaf222 100644 --- a/packages/webview_flutter/webview_flutter_web/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_web/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 0.2.2+1 diff --git a/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md b/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md index ab1921a7079..11714c394a4 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 3.2.3 * Updates to `pigeon` version 7. From 1708c662ddfc96f8d56123fd3f3352c2aeb58eac Mon Sep 17 00:00:00 2001 From: Stuart Morgan Date: Tue, 28 Mar 2023 14:50:16 -0400 Subject: [PATCH 06/11] Relax repo tooling mockito slightly to allow tooling to run on Flutter 3.0 --- script/tool/pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/tool/pubspec.yaml b/script/tool/pubspec.yaml index c31786e6eb7..dd42b0dde00 100644 --- a/script/tool/pubspec.yaml +++ b/script/tool/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: dev_dependencies: build_runner: ^2.0.3 matcher: ^0.12.10 - mockito: 5.4.0 + mockito: '>=5.3.2 <=5.4.0' environment: sdk: '>=2.14.0 <4.0.0' From 765d1598700b5f7dfb82c1994686325cc666ddd8 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Tue, 28 Mar 2023 22:30:23 +0000 Subject: [PATCH 07/11] Regenerate mockito mocks --- .../android_camera_camerax_test.mocks.dart | 9 +- .../test/camera_info_test.mocks.dart | 2 +- .../test/camera_selector_test.mocks.dart | 2 +- .../test/image_capture_test.mocks.dart | 2 +- .../test/preview_test.mocks.dart | 2 +- .../process_camera_provider_test.mocks.dart | 2 +- .../test/system_services_test.mocks.dart | 2 +- .../test/file_selector_ios_test.mocks.dart | 14 +- .../test/file_selector_macos_test.mocks.dart | 4 +- .../file_selector_windows_test.mocks.dart | 49 ++- .../test/google_sign_in_test.mocks.dart | 172 +++++--- .../test/image_picker_test.mocks.dart | 154 ------- .../test/image_picker_windows_test.mocks.dart | 114 +++-- .../test/gcs_lock_test.mocks.dart | 303 ++++++++++--- .../test/skiaperf_test.mocks.dart | 400 +++++++++++++----- .../path_provider_foundation_test.mocks.dart | 4 +- .../test/multiple_arity_test.mocks.dart | 67 ++- .../test/null_safe_test.mocks.dart | 89 +++- .../test/primitive_test.mocks.dart | 165 ++++++-- .../legacy/webview_flutter_test.mocks.dart | 2 +- .../test/navigation_delegate_test.mocks.dart | 12 +- .../test/webview_controller_test.mocks.dart | 12 +- .../webview_cookie_manager_test.mocks.dart | 2 +- .../test/webview_widget_test.mocks.dart | 2 +- ...ndroid_navigation_delegate_test.mocks.dart | 2 +- ...android_webview_controller_test.mocks.dart | 12 +- ...oid_webview_cookie_manager_test.mocks.dart | 2 +- .../test/android_webview_test.mocks.dart | 2 +- .../test/instance_manager_test.mocks.dart | 2 +- ...iew_android_cookie_manager_test.mocks.dart | 2 +- .../webview_android_widget_test.mocks.dart | 2 +- ...latform_webview_controller_test.mocks.dart | 2 +- .../test/webview_platform_test.mocks.dart | 2 +- .../webview_flutter_web_test.mocks.dart | 9 +- .../web_webview_controller_test.mocks.dart | 2 +- .../web_kit_cookie_manager_test.mocks.dart | 2 +- .../web_kit_webview_widget_test.mocks.dart | 2 +- .../src/foundation/foundation_test.mocks.dart | 2 +- .../test/src/ui_kit/ui_kit_test.mocks.dart | 2 +- .../test/src/web_kit/web_kit_test.mocks.dart | 2 +- ...webkit_navigation_delegate_test.mocks.dart | 2 +- .../webkit_webview_controller_test.mocks.dart | 2 +- ...kit_webview_cookie_manager_test.mocks.dart | 2 +- .../webkit_webview_widget_test.mocks.dart | 2 +- 44 files changed, 1079 insertions(+), 564 deletions(-) delete mode 100644 packages/image_picker/image_picker/test/image_picker_test.mocks.dart diff --git a/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart b/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart index 09a645a0850..05003b7a42a 100644 --- a/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/android_camera_camerax_test.dart. // Do not manually edit this file. @@ -16,8 +16,7 @@ import 'package:camera_android_camerax/src/process_camera_provider.dart' import 'package:camera_android_camerax/src/use_case.dart' as _i13; import 'package:flutter/foundation.dart' as _i6; import 'package:flutter/services.dart' as _i5; -import 'package:flutter/src/widgets/framework.dart' as _i4; -import 'package:flutter/src/widgets/notification_listener.dart' as _i14; +import 'package:flutter/widgets.dart' as _i4; import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: type=lint @@ -329,7 +328,7 @@ class MockBuildContext extends _i1.Mock implements _i4.BuildContext { ), ) as _i4.InheritedWidget); @override - void visitAncestorElements(bool Function(_i4.Element)? visitor) => + void visitAncestorElements(_i4.ConditionalElementVisitor? visitor) => super.noSuchMethod( Invocation.method( #visitAncestorElements, @@ -346,7 +345,7 @@ class MockBuildContext extends _i1.Mock implements _i4.BuildContext { returnValueForMissingStub: null, ); @override - void dispatchNotification(_i14.Notification? notification) => + void dispatchNotification(_i4.Notification? notification) => super.noSuchMethod( Invocation.method( #dispatchNotification, diff --git a/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart b/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart index 896bbc4a209..3c153337bfa 100644 --- a/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/camera_info_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart b/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart index 627aba8c55f..3b8bc4ad0b0 100644 --- a/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/camera_selector_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/image_capture_test.mocks.dart b/packages/camera/camera_android_camerax/test/image_capture_test.mocks.dart index 1dc8a28ecde..63761d80b88 100644 --- a/packages/camera/camera_android_camerax/test/image_capture_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/image_capture_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/image_capture_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/preview_test.mocks.dart b/packages/camera/camera_android_camerax/test/preview_test.mocks.dart index fe3bdb89add..467f4dc2978 100644 --- a/packages/camera/camera_android_camerax/test/preview_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/preview_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/preview_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/process_camera_provider_test.mocks.dart b/packages/camera/camera_android_camerax/test/process_camera_provider_test.mocks.dart index 68b0c0a9f45..62d3de7cbfd 100644 --- a/packages/camera/camera_android_camerax/test/process_camera_provider_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/process_camera_provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/process_camera_provider_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart b/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart index 27d5b016c94..cb0acdaba0b 100644 --- a/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/system_services_test.dart. // Do not manually edit this file. diff --git a/packages/file_selector/file_selector_ios/test/file_selector_ios_test.mocks.dart b/packages/file_selector/file_selector_ios/test/file_selector_ios_test.mocks.dart index 1d22ba75a10..c4186b0c601 100644 --- a/packages/file_selector/file_selector_ios/test/file_selector_ios_test.mocks.dart +++ b/packages/file_selector/file_selector_ios/test/file_selector_ios_test.mocks.dart @@ -1,5 +1,5 @@ -// Mocks generated by Mockito 5.3.0 from annotations -// in file_selector_ios/example/ios/.symlinks/plugins/file_selector_ios/test/file_selector_ios_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in file_selector_ios/test/file_selector_ios_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,7 +32,11 @@ class MockTestFileSelectorApi extends _i1.Mock @override _i3.Future> openFile(_i4.FileSelectorConfig? config) => - (super.noSuchMethod(Invocation.method(#openFile, [config]), - returnValue: _i3.Future>.value([])) - as _i3.Future>); + (super.noSuchMethod( + Invocation.method( + #openFile, + [config], + ), + returnValue: _i3.Future>.value([]), + ) as _i3.Future>); } diff --git a/packages/file_selector/file_selector_macos/test/file_selector_macos_test.mocks.dart b/packages/file_selector/file_selector_macos/test/file_selector_macos_test.mocks.dart index ddd563b2869..ff16017bd5d 100644 --- a/packages/file_selector/file_selector_macos/test/file_selector_macos_test.mocks.dart +++ b/packages/file_selector/file_selector_macos/test/file_selector_macos_test.mocks.dart @@ -1,5 +1,5 @@ -// Mocks generated by Mockito 5.3.2 from annotations -// in file_selector_macos/example/macos/Flutter/ephemeral/.symlinks/plugins/file_selector_macos/test/file_selector_macos_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in file_selector_macos/test/file_selector_macos_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes diff --git a/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart b/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart index f60c92e6b7e..ae55f2e301d 100644 --- a/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart +++ b/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.2.0 from annotations -// in file_selector_windows/example/windows/flutter/ephemeral/.plugin_symlinks/file_selector_windows/test/file_selector_windows_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in file_selector_windows/test/file_selector_windows_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:file_selector_windows/src/messages.g.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -16,6 +17,7 @@ import 'test_api.g.dart' as _i2; // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [TestFileSelectorApi]. /// @@ -27,20 +29,39 @@ class MockTestFileSelectorApi extends _i1.Mock } @override - List showOpenDialog(_i3.SelectionOptions? options, - String? initialDirectory, String? confirmButtonText) => + List showOpenDialog( + _i3.SelectionOptions? options, + String? initialDirectory, + String? confirmButtonText, + ) => (super.noSuchMethod( - Invocation.method( - #showOpenDialog, [options, initialDirectory, confirmButtonText]), - returnValue: []) as List); + Invocation.method( + #showOpenDialog, + [ + options, + initialDirectory, + confirmButtonText, + ], + ), + returnValue: [], + ) as List); @override List showSaveDialog( - _i3.SelectionOptions? options, - String? initialDirectory, - String? suggestedName, - String? confirmButtonText) => + _i3.SelectionOptions? options, + String? initialDirectory, + String? suggestedName, + String? confirmButtonText, + ) => (super.noSuchMethod( - Invocation.method(#showSaveDialog, - [options, initialDirectory, suggestedName, confirmButtonText]), - returnValue: []) as List); + Invocation.method( + #showSaveDialog, + [ + options, + initialDirectory, + suggestedName, + confirmButtonText, + ], + ), + returnValue: [], + ) as List); } diff --git a/packages/google_sign_in/google_sign_in/test/google_sign_in_test.mocks.dart b/packages/google_sign_in/google_sign_in/test/google_sign_in_test.mocks.dart index 4e669628391..b27e3aef406 100644 --- a/packages/google_sign_in/google_sign_in/test/google_sign_in_test.mocks.dart +++ b/packages/google_sign_in/google_sign_in/test/google_sign_in_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.1.0 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in google_sign_in/test/google_sign_in_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i4; import 'package:google_sign_in_platform_interface/google_sign_in_platform_interface.dart' @@ -18,9 +19,18 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeGoogleSignInTokenData_0 extends _i1.Fake - implements _i2.GoogleSignInTokenData {} +class _FakeGoogleSignInTokenData_0 extends _i1.SmartFake + implements _i2.GoogleSignInTokenData { + _FakeGoogleSignInTokenData_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [GoogleSignInPlatform]. /// @@ -32,69 +42,127 @@ class MockGoogleSignInPlatform extends _i1.Mock } @override - bool get isMock => - (super.noSuchMethod(Invocation.getter(#isMock), returnValue: false) - as bool); + bool get isMock => (super.noSuchMethod( + Invocation.getter(#isMock), + returnValue: false, + ) as bool); @override - _i4.Future init( - {List? scopes = const [], - _i2.SignInOption? signInOption = _i2.SignInOption.standard, - String? hostedDomain, - String? clientId}) => + _i4.Future init({ + List? scopes = const [], + _i2.SignInOption? signInOption = _i2.SignInOption.standard, + String? hostedDomain, + String? clientId, + }) => (super.noSuchMethod( - Invocation.method(#init, [], { + Invocation.method( + #init, + [], + { #scopes: scopes, #signInOption: signInOption, #hostedDomain: hostedDomain, - #clientId: clientId - }), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + #clientId: clientId, + }, + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override _i4.Future initWithParams(_i2.SignInInitParameters? params) => - (super.noSuchMethod(Invocation.method(#initWithParams, [params]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + (super.noSuchMethod( + Invocation.method( + #initWithParams, + [params], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i4.Future<_i2.GoogleSignInUserData?> signInSilently() => - (super.noSuchMethod(Invocation.method(#signInSilently, []), - returnValue: Future<_i2.GoogleSignInUserData?>.value()) - as _i4.Future<_i2.GoogleSignInUserData?>); + _i4.Future<_i2.GoogleSignInUserData?> signInSilently() => (super.noSuchMethod( + Invocation.method( + #signInSilently, + [], + ), + returnValue: _i4.Future<_i2.GoogleSignInUserData?>.value(), + ) as _i4.Future<_i2.GoogleSignInUserData?>); @override - _i4.Future<_i2.GoogleSignInUserData?> signIn() => - (super.noSuchMethod(Invocation.method(#signIn, []), - returnValue: Future<_i2.GoogleSignInUserData?>.value()) - as _i4.Future<_i2.GoogleSignInUserData?>); + _i4.Future<_i2.GoogleSignInUserData?> signIn() => (super.noSuchMethod( + Invocation.method( + #signIn, + [], + ), + returnValue: _i4.Future<_i2.GoogleSignInUserData?>.value(), + ) as _i4.Future<_i2.GoogleSignInUserData?>); @override - _i4.Future<_i2.GoogleSignInTokenData> getTokens( - {String? email, bool? shouldRecoverAuth}) => + _i4.Future<_i2.GoogleSignInTokenData> getTokens({ + required String? email, + bool? shouldRecoverAuth, + }) => (super.noSuchMethod( - Invocation.method(#getTokens, [], - {#email: email, #shouldRecoverAuth: shouldRecoverAuth}), - returnValue: Future<_i2.GoogleSignInTokenData>.value( - _FakeGoogleSignInTokenData_0())) - as _i4.Future<_i2.GoogleSignInTokenData>); + Invocation.method( + #getTokens, + [], + { + #email: email, + #shouldRecoverAuth: shouldRecoverAuth, + }, + ), + returnValue: _i4.Future<_i2.GoogleSignInTokenData>.value( + _FakeGoogleSignInTokenData_0( + this, + Invocation.method( + #getTokens, + [], + { + #email: email, + #shouldRecoverAuth: shouldRecoverAuth, + }, + ), + )), + ) as _i4.Future<_i2.GoogleSignInTokenData>); @override - _i4.Future signOut() => - (super.noSuchMethod(Invocation.method(#signOut, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + _i4.Future signOut() => (super.noSuchMethod( + Invocation.method( + #signOut, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i4.Future disconnect() => - (super.noSuchMethod(Invocation.method(#disconnect, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + _i4.Future disconnect() => (super.noSuchMethod( + Invocation.method( + #disconnect, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i4.Future isSignedIn() => - (super.noSuchMethod(Invocation.method(#isSignedIn, []), - returnValue: Future.value(false)) as _i4.Future); + _i4.Future isSignedIn() => (super.noSuchMethod( + Invocation.method( + #isSignedIn, + [], + ), + returnValue: _i4.Future.value(false), + ) as _i4.Future); @override - _i4.Future clearAuthCache({String? token}) => (super.noSuchMethod( - Invocation.method(#clearAuthCache, [], {#token: token}), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + _i4.Future clearAuthCache({required String? token}) => + (super.noSuchMethod( + Invocation.method( + #clearAuthCache, + [], + {#token: token}, + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i4.Future requestScopes(List? scopes) => - (super.noSuchMethod(Invocation.method(#requestScopes, [scopes]), - returnValue: Future.value(false)) as _i4.Future); + _i4.Future requestScopes(List? scopes) => (super.noSuchMethod( + Invocation.method( + #requestScopes, + [scopes], + ), + returnValue: _i4.Future.value(false), + ) as _i4.Future); } diff --git a/packages/image_picker/image_picker/test/image_picker_test.mocks.dart b/packages/image_picker/image_picker/test/image_picker_test.mocks.dart deleted file mode 100644 index f749b538665..00000000000 --- a/packages/image_picker/image_picker/test/image_picker_test.mocks.dart +++ /dev/null @@ -1,154 +0,0 @@ -// Mocks generated by Mockito 5.1.0 from annotations -// in image_picker/test/image_picker_test.dart. -// Do not manually edit this file. - -import 'dart:async' as _i4; - -import 'package:cross_file/cross_file.dart' as _i5; -import 'package:image_picker_platform_interface/src/platform_interface/image_picker_platform.dart' - as _i3; -import 'package:image_picker_platform_interface/src/types/types.dart' as _i2; -import 'package:mockito/mockito.dart' as _i1; - -// ignore_for_file: type=lint -// ignore_for_file: avoid_redundant_argument_values -// ignore_for_file: avoid_setters_without_getters -// ignore_for_file: comment_references -// ignore_for_file: implementation_imports -// ignore_for_file: invalid_use_of_visible_for_testing_member -// ignore_for_file: prefer_const_constructors -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types - -class _FakeLostData_0 extends _i1.Fake implements _i2.LostData {} - -class _FakeLostDataResponse_1 extends _i1.Fake - implements _i2.LostDataResponse {} - -/// A class which mocks [ImagePickerPlatform]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockImagePickerPlatform extends _i1.Mock - implements _i3.ImagePickerPlatform { - MockImagePickerPlatform() { - _i1.throwOnMissingStub(this); - } - - @override - _i4.Future<_i2.PickedFile?> pickImage( - {_i2.ImageSource? source, - double? maxWidth, - double? maxHeight, - int? imageQuality, - _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear}) => - (super.noSuchMethod( - Invocation.method(#pickImage, [], { - #source: source, - #maxWidth: maxWidth, - #maxHeight: maxHeight, - #imageQuality: imageQuality, - #preferredCameraDevice: preferredCameraDevice - }), - returnValue: Future<_i2.PickedFile?>.value()) - as _i4.Future<_i2.PickedFile?>); - - @override - _i4.Future?> pickMultiImage( - {double? maxWidth, double? maxHeight, int? imageQuality}) => - (super.noSuchMethod( - Invocation.method(#pickMultiImage, [], { - #maxWidth: maxWidth, - #maxHeight: maxHeight, - #imageQuality: imageQuality - }), - returnValue: Future?>.value()) - as _i4.Future?>); - - @override - _i4.Future<_i2.PickedFile?> pickVideo( - {_i2.ImageSource? source, - _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear, - Duration? maxDuration}) => - (super.noSuchMethod( - Invocation.method(#pickVideo, [], { - #source: source, - #preferredCameraDevice: preferredCameraDevice, - #maxDuration: maxDuration - }), - returnValue: Future<_i2.PickedFile?>.value()) - as _i4.Future<_i2.PickedFile?>); - - @override - _i4.Future<_i2.LostData> retrieveLostData() => - (super.noSuchMethod(Invocation.method(#retrieveLostData, []), - returnValue: Future<_i2.LostData>.value(_FakeLostData_0())) - as _i4.Future<_i2.LostData>); - - @override - _i4.Future<_i5.XFile?> getImage( - {_i2.ImageSource? source, - double? maxWidth, - double? maxHeight, - int? imageQuality, - _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear}) => - (super.noSuchMethod( - Invocation.method(#getImage, [], { - #source: source, - #maxWidth: maxWidth, - #maxHeight: maxHeight, - #imageQuality: imageQuality, - #preferredCameraDevice: preferredCameraDevice - }), - returnValue: Future<_i5.XFile?>.value()) as _i4.Future<_i5.XFile?>); - - @override - _i4.Future?> getMultiImage( - {double? maxWidth, double? maxHeight, int? imageQuality}) => - (super.noSuchMethod( - Invocation.method(#getMultiImage, [], { - #maxWidth: maxWidth, - #maxHeight: maxHeight, - #imageQuality: imageQuality - }), - returnValue: Future?>.value()) - as _i4.Future?>); - - @override - _i4.Future<_i5.XFile?> getVideo( - {_i2.ImageSource? source, - _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear, - Duration? maxDuration}) => - (super.noSuchMethod( - Invocation.method(#getVideo, [], { - #source: source, - #preferredCameraDevice: preferredCameraDevice, - #maxDuration: maxDuration - }), - returnValue: Future<_i5.XFile?>.value()) as _i4.Future<_i5.XFile?>); - - @override - _i4.Future<_i2.LostDataResponse> getLostData() => - (super.noSuchMethod(Invocation.method(#getLostData, []), - returnValue: - Future<_i2.LostDataResponse>.value(_FakeLostDataResponse_1())) - as _i4.Future<_i2.LostDataResponse>); - - @override - _i4.Future<_i5.XFile?> getImageFromSource( - {_i2.ImageSource? source, - _i2.ImagePickerOptions? options = const _i2.ImagePickerOptions()}) => - (super.noSuchMethod( - Invocation.method( - #getImageFromSource, [], {#source: source, #options: options}), - returnValue: Future<_i5.XFile?>.value()) as _i4.Future<_i5.XFile?>); - - @override - _i4.Future> getMultiImageWithOptions( - {_i2.MultiImagePickerOptions? options = - const _i2.MultiImagePickerOptions()}) => - (super.noSuchMethod( - Invocation.method(#getMultiImageWithOptions, [], {#options: options}), - returnValue: - Future>.value(<_i5.XFile>[])) as _i4 - .Future>); -} diff --git a/packages/image_picker/image_picker_windows/test/image_picker_windows_test.mocks.dart b/packages/image_picker/image_picker_windows/test/image_picker_windows_test.mocks.dart index be2dd2ac576..32fb38026c1 100644 --- a/packages/image_picker/image_picker_windows/test/image_picker_windows_test.mocks.dart +++ b/packages/image_picker/image_picker_windows/test/image_picker_windows_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.1.0 from annotations -// in image_picker_windows/example/windows/flutter/ephemeral/.plugin_symlinks/image_picker_windows/test/image_picker_windows_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in image_picker_windows/test/image_picker_windows_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'package:file_selector_platform_interface/file_selector_platform_interface.dart' @@ -17,6 +18,7 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [FileSelectorPlatform]. /// @@ -28,51 +30,91 @@ class MockFileSelectorPlatform extends _i1.Mock } @override - _i3.Future<_i2.XFile?> openFile( - {List<_i2.XTypeGroup>? acceptedTypeGroups, - String? initialDirectory, - String? confirmButtonText}) => + _i3.Future<_i2.XFile?> openFile({ + List<_i2.XTypeGroup>? acceptedTypeGroups, + String? initialDirectory, + String? confirmButtonText, + }) => (super.noSuchMethod( - Invocation.method(#openFile, [], { + Invocation.method( + #openFile, + [], + { #acceptedTypeGroups: acceptedTypeGroups, #initialDirectory: initialDirectory, - #confirmButtonText: confirmButtonText - }), - returnValue: Future<_i2.XFile?>.value()) as _i3.Future<_i2.XFile?>); + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future<_i2.XFile?>.value(), + ) as _i3.Future<_i2.XFile?>); @override - _i3.Future> openFiles( - {List<_i2.XTypeGroup>? acceptedTypeGroups, - String? initialDirectory, - String? confirmButtonText}) => + _i3.Future> openFiles({ + List<_i2.XTypeGroup>? acceptedTypeGroups, + String? initialDirectory, + String? confirmButtonText, + }) => (super.noSuchMethod( - Invocation.method(#openFiles, [], { - #acceptedTypeGroups: acceptedTypeGroups, - #initialDirectory: initialDirectory, - #confirmButtonText: confirmButtonText - }), - returnValue: Future>.value(<_i2.XFile>[])) - as _i3.Future>); + Invocation.method( + #openFiles, + [], + { + #acceptedTypeGroups: acceptedTypeGroups, + #initialDirectory: initialDirectory, + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future>.value(<_i2.XFile>[]), + ) as _i3.Future>); @override - _i3.Future getSavePath( - {List<_i2.XTypeGroup>? acceptedTypeGroups, - String? initialDirectory, - String? suggestedName, - String? confirmButtonText}) => + _i3.Future getSavePath({ + List<_i2.XTypeGroup>? acceptedTypeGroups, + String? initialDirectory, + String? suggestedName, + String? confirmButtonText, + }) => (super.noSuchMethod( - Invocation.method(#getSavePath, [], { + Invocation.method( + #getSavePath, + [], + { #acceptedTypeGroups: acceptedTypeGroups, #initialDirectory: initialDirectory, #suggestedName: suggestedName, - #confirmButtonText: confirmButtonText - }), - returnValue: Future.value()) as _i3.Future); + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future.value(), + ) as _i3.Future); + @override + _i3.Future getDirectoryPath({ + String? initialDirectory, + String? confirmButtonText, + }) => + (super.noSuchMethod( + Invocation.method( + #getDirectoryPath, + [], + { + #initialDirectory: initialDirectory, + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future.value(), + ) as _i3.Future); @override - _i3.Future getDirectoryPath( - {String? initialDirectory, String? confirmButtonText}) => + _i3.Future> getDirectoryPaths({ + String? initialDirectory, + String? confirmButtonText, + }) => (super.noSuchMethod( - Invocation.method(#getDirectoryPath, [], { + Invocation.method( + #getDirectoryPaths, + [], + { #initialDirectory: initialDirectory, - #confirmButtonText: confirmButtonText - }), - returnValue: Future.value()) as _i3.Future); + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future>.value([]), + ) as _i3.Future>); } diff --git a/packages/metrics_center/test/gcs_lock_test.mocks.dart b/packages/metrics_center/test/gcs_lock_test.mocks.dart index 7f86e40d215..93ff8e1f182 100644 --- a/packages/metrics_center/test/gcs_lock_test.mocks.dart +++ b/packages/metrics_center/test/gcs_lock_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.14 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in metrics_center/test/gcs_lock_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i5; import 'dart:convert' as _i6; import 'dart:typed_data' as _i7; @@ -11,24 +12,48 @@ import 'package:googleapis_auth/src/auth_client.dart' as _i4; import 'package:http/http.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; -// ignore_for_file: always_specify_types +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters -// ignore_for_file: camel_case_types // ignore_for_file: comment_references // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors -// ignore_for_file: unnecessary_overrides // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeAccessCredentials_0 extends _i1.Fake - implements _i2.AccessCredentials {} +class _FakeAccessCredentials_0 extends _i1.SmartFake + implements _i2.AccessCredentials { + _FakeAccessCredentials_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeResponse_1 extends _i1.Fake implements _i3.Response {} +class _FakeResponse_1 extends _i1.SmartFake implements _i3.Response { + _FakeResponse_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeStreamedResponse_2 extends _i1.Fake - implements _i3.StreamedResponse {} +class _FakeStreamedResponse_2 extends _i1.SmartFake + implements _i3.StreamedResponse { + _FakeStreamedResponse_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [AuthClient]. /// @@ -39,79 +64,221 @@ class MockAuthClient extends _i1.Mock implements _i4.AuthClient { } @override - _i2.AccessCredentials get credentials => - (super.noSuchMethod(Invocation.getter(#credentials), - returnValue: _FakeAccessCredentials_0()) as _i2.AccessCredentials); + _i2.AccessCredentials get credentials => (super.noSuchMethod( + Invocation.getter(#credentials), + returnValue: _FakeAccessCredentials_0( + this, + Invocation.getter(#credentials), + ), + ) as _i2.AccessCredentials); @override - String toString() => super.toString(); - @override - _i5.Future<_i3.Response> head(Uri? url, {Map? headers}) => - (super.noSuchMethod(Invocation.method(#head, [url], {#headers: headers}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + _i5.Future<_i3.Response> head( + Uri? url, { + Map? headers, + }) => + (super.noSuchMethod( + Invocation.method( + #head, + [url], + {#headers: headers}, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #head, + [url], + {#headers: headers}, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> get(Uri? url, {Map? headers}) => - (super.noSuchMethod(Invocation.method(#get, [url], {#headers: headers}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + _i5.Future<_i3.Response> get( + Uri? url, { + Map? headers, + }) => + (super.noSuchMethod( + Invocation.method( + #get, + [url], + {#headers: headers}, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #get, + [url], + {#headers: headers}, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> post(Uri? url, - {Map? headers, - Object? body, - _i6.Encoding? encoding}) => + _i5.Future<_i3.Response> post( + Uri? url, { + Map? headers, + Object? body, + _i6.Encoding? encoding, + }) => (super.noSuchMethod( - Invocation.method(#post, [url], - {#headers: headers, #body: body, #encoding: encoding}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + Invocation.method( + #post, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #post, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> put(Uri? url, - {Map? headers, - Object? body, - _i6.Encoding? encoding}) => + _i5.Future<_i3.Response> put( + Uri? url, { + Map? headers, + Object? body, + _i6.Encoding? encoding, + }) => (super.noSuchMethod( - Invocation.method(#put, [url], - {#headers: headers, #body: body, #encoding: encoding}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + Invocation.method( + #put, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #put, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> patch(Uri? url, - {Map? headers, - Object? body, - _i6.Encoding? encoding}) => + _i5.Future<_i3.Response> patch( + Uri? url, { + Map? headers, + Object? body, + _i6.Encoding? encoding, + }) => (super.noSuchMethod( - Invocation.method(#patch, [url], - {#headers: headers, #body: body, #encoding: encoding}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + Invocation.method( + #patch, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #patch, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> delete(Uri? url, - {Map? headers, - Object? body, - _i6.Encoding? encoding}) => + _i5.Future<_i3.Response> delete( + Uri? url, { + Map? headers, + Object? body, + _i6.Encoding? encoding, + }) => (super.noSuchMethod( - Invocation.method(#delete, [url], - {#headers: headers, #body: body, #encoding: encoding}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + Invocation.method( + #delete, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #delete, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future read(Uri? url, {Map? headers}) => - (super.noSuchMethod(Invocation.method(#read, [url], {#headers: headers}), - returnValue: Future.value('')) as _i5.Future); + _i5.Future read( + Uri? url, { + Map? headers, + }) => + (super.noSuchMethod( + Invocation.method( + #read, + [url], + {#headers: headers}, + ), + returnValue: _i5.Future.value(''), + ) as _i5.Future); @override - _i5.Future<_i7.Uint8List> readBytes(Uri? url, - {Map? headers}) => + _i5.Future<_i7.Uint8List> readBytes( + Uri? url, { + Map? headers, + }) => (super.noSuchMethod( - Invocation.method(#readBytes, [url], {#headers: headers}), - returnValue: Future<_i7.Uint8List>.value(_i7.Uint8List(0))) - as _i5.Future<_i7.Uint8List>); + Invocation.method( + #readBytes, + [url], + {#headers: headers}, + ), + returnValue: _i5.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i5.Future<_i7.Uint8List>); @override _i5.Future<_i3.StreamedResponse> send(_i3.BaseRequest? request) => - (super.noSuchMethod(Invocation.method(#send, [request]), - returnValue: - Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2())) - as _i5.Future<_i3.StreamedResponse>); + (super.noSuchMethod( + Invocation.method( + #send, + [request], + ), + returnValue: + _i5.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2( + this, + Invocation.method( + #send, + [request], + ), + )), + ) as _i5.Future<_i3.StreamedResponse>); @override - void close() => super.noSuchMethod(Invocation.method(#close, []), - returnValueForMissingStub: null); + void close() => super.noSuchMethod( + Invocation.method( + #close, + [], + ), + returnValueForMissingStub: null, + ); } diff --git a/packages/metrics_center/test/skiaperf_test.mocks.dart b/packages/metrics_center/test/skiaperf_test.mocks.dart index edb47277346..98757656c36 100644 --- a/packages/metrics_center/test/skiaperf_test.mocks.dart +++ b/packages/metrics_center/test/skiaperf_test.mocks.dart @@ -1,38 +1,96 @@ -// Mocks generated by Mockito 5.0.14 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in metrics_center/test/skiaperf_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i2; import 'package:gcloud/common.dart' as _i4; import 'package:gcloud/storage.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; -// ignore_for_file: always_specify_types +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters -// ignore_for_file: camel_case_types // ignore_for_file: comment_references // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors -// ignore_for_file: unnecessary_overrides // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeStreamSink_0 extends _i1.Fake implements _i2.StreamSink {} +class _FakeStreamSink_0 extends _i1.SmartFake implements _i2.StreamSink { + _FakeStreamSink_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeObjectInfo_1 extends _i1.Fake implements _i3.ObjectInfo {} +class _FakeObjectInfo_1 extends _i1.SmartFake implements _i3.ObjectInfo { + _FakeObjectInfo_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakePage_2 extends _i1.Fake implements _i4.Page {} +class _FakePage_2 extends _i1.SmartFake implements _i4.Page { + _FakePage_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeDateTime_3 extends _i1.Fake implements DateTime {} +class _FakeDateTime_3 extends _i1.SmartFake implements DateTime { + _FakeDateTime_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeUri_4 extends _i1.Fake implements Uri {} +class _FakeUri_4 extends _i1.SmartFake implements Uri { + _FakeUri_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeObjectGeneration_5 extends _i1.Fake - implements _i3.ObjectGeneration {} +class _FakeObjectGeneration_5 extends _i1.SmartFake + implements _i3.ObjectGeneration { + _FakeObjectGeneration_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeObjectMetadata_6 extends _i1.Fake implements _i3.ObjectMetadata {} +class _FakeObjectMetadata_6 extends _i1.SmartFake + implements _i3.ObjectMetadata { + _FakeObjectMetadata_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [Bucket]. /// @@ -43,92 +101,194 @@ class MockBucket extends _i1.Mock implements _i3.Bucket { } @override - String get bucketName => - (super.noSuchMethod(Invocation.getter(#bucketName), returnValue: '') - as String); + String get bucketName => (super.noSuchMethod( + Invocation.getter(#bucketName), + returnValue: '', + ) as String); @override - String absoluteObjectName(String? objectName) => - (super.noSuchMethod(Invocation.method(#absoluteObjectName, [objectName]), - returnValue: '') as String); + String absoluteObjectName(String? objectName) => (super.noSuchMethod( + Invocation.method( + #absoluteObjectName, + [objectName], + ), + returnValue: '', + ) as String); @override - _i2.StreamSink> write(String? objectName, - {int? length, - _i3.ObjectMetadata? metadata, - _i3.Acl? acl, - _i3.PredefinedAcl? predefinedAcl, - String? contentType}) => + _i2.StreamSink> write( + String? objectName, { + int? length, + _i3.ObjectMetadata? metadata, + _i3.Acl? acl, + _i3.PredefinedAcl? predefinedAcl, + String? contentType, + }) => (super.noSuchMethod( - Invocation.method(#write, [ - objectName - ], { - #length: length, - #metadata: metadata, - #acl: acl, - #predefinedAcl: predefinedAcl, - #contentType: contentType - }), - returnValue: _FakeStreamSink_0>()) - as _i2.StreamSink>); - @override - _i2.Future<_i3.ObjectInfo> writeBytes(String? name, List? bytes, - {_i3.ObjectMetadata? metadata, - _i3.Acl? acl, - _i3.PredefinedAcl? predefinedAcl, - String? contentType}) => - (super.noSuchMethod( - Invocation.method(#writeBytes, [ - name, - bytes - ], { - #metadata: metadata, - #acl: acl, - #predefinedAcl: predefinedAcl, - #contentType: contentType - }), - returnValue: Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1())) - as _i2.Future<_i3.ObjectInfo>); - @override - _i2.Stream> read(String? objectName, {int? offset, int? length}) => + Invocation.method( + #write, + [objectName], + { + #length: length, + #metadata: metadata, + #acl: acl, + #predefinedAcl: predefinedAcl, + #contentType: contentType, + }, + ), + returnValue: _FakeStreamSink_0>( + this, + Invocation.method( + #write, + [objectName], + { + #length: length, + #metadata: metadata, + #acl: acl, + #predefinedAcl: predefinedAcl, + #contentType: contentType, + }, + ), + ), + ) as _i2.StreamSink>); + @override + _i2.Future<_i3.ObjectInfo> writeBytes( + String? name, + List? bytes, { + _i3.ObjectMetadata? metadata, + _i3.Acl? acl, + _i3.PredefinedAcl? predefinedAcl, + String? contentType, + }) => (super.noSuchMethod( + Invocation.method( + #writeBytes, + [ + name, + bytes, + ], + { + #metadata: metadata, + #acl: acl, + #predefinedAcl: predefinedAcl, + #contentType: contentType, + }, + ), + returnValue: _i2.Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1( + this, Invocation.method( - #read, [objectName], {#offset: offset, #length: length}), - returnValue: Stream>.empty()) as _i2.Stream>); + #writeBytes, + [ + name, + bytes, + ], + { + #metadata: metadata, + #acl: acl, + #predefinedAcl: predefinedAcl, + #contentType: contentType, + }, + ), + )), + ) as _i2.Future<_i3.ObjectInfo>); + @override + _i2.Stream> read( + String? objectName, { + int? offset, + int? length, + }) => + (super.noSuchMethod( + Invocation.method( + #read, + [objectName], + { + #offset: offset, + #length: length, + }, + ), + returnValue: _i2.Stream>.empty(), + ) as _i2.Stream>); @override - _i2.Future<_i3.ObjectInfo> info(String? name) => - (super.noSuchMethod(Invocation.method(#info, [name]), - returnValue: Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1())) - as _i2.Future<_i3.ObjectInfo>); + _i2.Future<_i3.ObjectInfo> info(String? name) => (super.noSuchMethod( + Invocation.method( + #info, + [name], + ), + returnValue: _i2.Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1( + this, + Invocation.method( + #info, + [name], + ), + )), + ) as _i2.Future<_i3.ObjectInfo>); @override - _i2.Future delete(String? name) => - (super.noSuchMethod(Invocation.method(#delete, [name]), - returnValue: Future.value()) as _i2.Future); + _i2.Future delete(String? name) => (super.noSuchMethod( + Invocation.method( + #delete, + [name], + ), + returnValue: _i2.Future.value(), + ) as _i2.Future); @override _i2.Future updateMetadata( - String? objectName, _i3.ObjectMetadata? metadata) => + String? objectName, + _i3.ObjectMetadata? metadata, + ) => (super.noSuchMethod( - Invocation.method(#updateMetadata, [objectName, metadata]), - returnValue: Future.value()) as _i2.Future); + Invocation.method( + #updateMetadata, + [ + objectName, + metadata, + ], + ), + returnValue: _i2.Future.value(), + ) as _i2.Future); @override - _i2.Stream<_i3.BucketEntry> list({String? prefix, String? delimiter}) => + _i2.Stream<_i3.BucketEntry> list({ + String? prefix, + String? delimiter, + }) => (super.noSuchMethod( - Invocation.method( - #list, [], {#prefix: prefix, #delimiter: delimiter}), - returnValue: Stream<_i3.BucketEntry>.empty()) - as _i2.Stream<_i3.BucketEntry>); + Invocation.method( + #list, + [], + { + #prefix: prefix, + #delimiter: delimiter, + }, + ), + returnValue: _i2.Stream<_i3.BucketEntry>.empty(), + ) as _i2.Stream<_i3.BucketEntry>); @override - _i2.Future<_i4.Page<_i3.BucketEntry>> page( - {String? prefix, String? delimiter, int? pageSize = 50}) => + _i2.Future<_i4.Page<_i3.BucketEntry>> page({ + String? prefix, + String? delimiter, + int? pageSize = 50, + }) => (super.noSuchMethod( - Invocation.method(#page, [], { - #prefix: prefix, - #delimiter: delimiter, - #pageSize: pageSize - }), - returnValue: Future<_i4.Page<_i3.BucketEntry>>.value( - _FakePage_2<_i3.BucketEntry>())) - as _i2.Future<_i4.Page<_i3.BucketEntry>>); - @override - String toString() => super.toString(); + Invocation.method( + #page, + [], + { + #prefix: prefix, + #delimiter: delimiter, + #pageSize: pageSize, + }, + ), + returnValue: _i2.Future<_i4.Page<_i3.BucketEntry>>.value( + _FakePage_2<_i3.BucketEntry>( + this, + Invocation.method( + #page, + [], + { + #prefix: prefix, + #delimiter: delimiter, + #pageSize: pageSize, + }, + ), + )), + ) as _i2.Future<_i4.Page<_i3.BucketEntry>>); } /// A class which mocks [ObjectInfo]. @@ -140,36 +300,60 @@ class MockObjectInfo extends _i1.Mock implements _i3.ObjectInfo { } @override - String get name => - (super.noSuchMethod(Invocation.getter(#name), returnValue: '') as String); - @override - int get length => - (super.noSuchMethod(Invocation.getter(#length), returnValue: 0) as int); + String get name => (super.noSuchMethod( + Invocation.getter(#name), + returnValue: '', + ) as String); @override - DateTime get updated => (super.noSuchMethod(Invocation.getter(#updated), - returnValue: _FakeDateTime_3()) as DateTime); + int get length => (super.noSuchMethod( + Invocation.getter(#length), + returnValue: 0, + ) as int); @override - String get etag => - (super.noSuchMethod(Invocation.getter(#etag), returnValue: '') as String); + DateTime get updated => (super.noSuchMethod( + Invocation.getter(#updated), + returnValue: _FakeDateTime_3( + this, + Invocation.getter(#updated), + ), + ) as DateTime); @override - List get md5Hash => - (super.noSuchMethod(Invocation.getter(#md5Hash), returnValue: []) - as List); + String get etag => (super.noSuchMethod( + Invocation.getter(#etag), + returnValue: '', + ) as String); @override - int get crc32CChecksum => - (super.noSuchMethod(Invocation.getter(#crc32CChecksum), returnValue: 0) - as int); + List get md5Hash => (super.noSuchMethod( + Invocation.getter(#md5Hash), + returnValue: [], + ) as List); @override - Uri get downloadLink => (super.noSuchMethod(Invocation.getter(#downloadLink), - returnValue: _FakeUri_4()) as Uri); + int get crc32CChecksum => (super.noSuchMethod( + Invocation.getter(#crc32CChecksum), + returnValue: 0, + ) as int); @override - _i3.ObjectGeneration get generation => - (super.noSuchMethod(Invocation.getter(#generation), - returnValue: _FakeObjectGeneration_5()) as _i3.ObjectGeneration); + Uri get downloadLink => (super.noSuchMethod( + Invocation.getter(#downloadLink), + returnValue: _FakeUri_4( + this, + Invocation.getter(#downloadLink), + ), + ) as Uri); @override - _i3.ObjectMetadata get metadata => - (super.noSuchMethod(Invocation.getter(#metadata), - returnValue: _FakeObjectMetadata_6()) as _i3.ObjectMetadata); + _i3.ObjectGeneration get generation => (super.noSuchMethod( + Invocation.getter(#generation), + returnValue: _FakeObjectGeneration_5( + this, + Invocation.getter(#generation), + ), + ) as _i3.ObjectGeneration); @override - String toString() => super.toString(); + _i3.ObjectMetadata get metadata => (super.noSuchMethod( + Invocation.getter(#metadata), + returnValue: _FakeObjectMetadata_6( + this, + Invocation.getter(#metadata), + ), + ) as _i3.ObjectMetadata); } diff --git a/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.mocks.dart b/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.mocks.dart index 62db996799e..3a6b0f19b1c 100644 --- a/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.mocks.dart +++ b/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.mocks.dart @@ -1,5 +1,5 @@ -// Mocks generated by Mockito 5.3.2 from annotations -// in path_provider_foundation/example/ios/.symlinks/plugins/path_provider_foundation/test/path_provider_foundation_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in path_provider_foundation/test/path_provider_foundation_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/multiple_arity_test.mocks.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/multiple_arity_test.mocks.dart index ff0400d15cf..0214f7e7196 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/multiple_arity_test.mocks.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/multiple_arity_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.7 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in flutter_unit_tests/test/multiple_arity_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'dart:typed_data' as _i4; import 'dart:ui' as _i5; @@ -9,12 +10,16 @@ import 'dart:ui' as _i5; import 'package:flutter/src/services/binary_messenger.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references -// ignore_for_file: unnecessary_parenthesis - +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors - -// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [BinaryMessenger]. /// @@ -25,18 +30,48 @@ class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger { } @override - _i3.Future handlePlatformMessage(String? channel, _i4.ByteData? data, - _i5.PlatformMessageResponseCallback? callback) => + _i3.Future handlePlatformMessage( + String? channel, + _i4.ByteData? data, + _i5.PlatformMessageResponseCallback? callback, + ) => (super.noSuchMethod( - Invocation.method(#handlePlatformMessage, [channel, data, callback]), - returnValue: Future.value(null), - returnValueForMissingStub: Future.value()) as _i3.Future); + Invocation.method( + #handlePlatformMessage, + [ + channel, + data, + callback, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); @override - _i3.Future<_i4.ByteData?>? send(String? channel, _i4.ByteData? message) => - (super.noSuchMethod(Invocation.method(#send, [channel, message])) - as _i3.Future<_i4.ByteData?>?); + _i3.Future<_i4.ByteData?>? send( + String? channel, + _i4.ByteData? message, + ) => + (super.noSuchMethod(Invocation.method( + #send, + [ + channel, + message, + ], + )) as _i3.Future<_i4.ByteData?>?); @override - void setMessageHandler(String? channel, _i2.MessageHandler? handler) => super - .noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]), - returnValueForMissingStub: null); + void setMessageHandler( + String? channel, + _i2.MessageHandler? handler, + ) => + super.noSuchMethod( + Invocation.method( + #setMessageHandler, + [ + channel, + handler, + ], + ), + returnValueForMissingStub: null, + ); } diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/null_safe_test.mocks.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/null_safe_test.mocks.dart index 9b5bfcbcf5c..c48bb3fdb4a 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/null_safe_test.mocks.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/null_safe_test.mocks.dart @@ -1,21 +1,26 @@ -// Mocks generated by Mockito 5.0.7 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in flutter_unit_tests/test/null_safe_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'dart:typed_data' as _i4; import 'dart:ui' as _i5; -import 'package:flutter/src/services/binary_messenger.dart' as _i2; +import 'package:flutter/services.dart' as _i2; import 'package:flutter_unit_tests/nullable_returns.gen.dart' as _i6; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references -// ignore_for_file: unnecessary_parenthesis - +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors - -// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [BinaryMessenger]. /// @@ -26,20 +31,50 @@ class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger { } @override - _i3.Future handlePlatformMessage(String? channel, _i4.ByteData? data, - _i5.PlatformMessageResponseCallback? callback) => + _i3.Future handlePlatformMessage( + String? channel, + _i4.ByteData? data, + _i5.PlatformMessageResponseCallback? callback, + ) => (super.noSuchMethod( - Invocation.method(#handlePlatformMessage, [channel, data, callback]), - returnValue: Future.value(null), - returnValueForMissingStub: Future.value()) as _i3.Future); + Invocation.method( + #handlePlatformMessage, + [ + channel, + data, + callback, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); @override - _i3.Future<_i4.ByteData?>? send(String? channel, _i4.ByteData? message) => - (super.noSuchMethod(Invocation.method(#send, [channel, message])) - as _i3.Future<_i4.ByteData?>?); + _i3.Future<_i4.ByteData?>? send( + String? channel, + _i4.ByteData? message, + ) => + (super.noSuchMethod(Invocation.method( + #send, + [ + channel, + message, + ], + )) as _i3.Future<_i4.ByteData?>?); @override - void setMessageHandler(String? channel, _i2.MessageHandler? handler) => super - .noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]), - returnValueForMissingStub: null); + void setMessageHandler( + String? channel, + _i2.MessageHandler? handler, + ) => + super.noSuchMethod( + Invocation.method( + #setMessageHandler, + [ + channel, + handler, + ], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [NullableArgFlutterApi]. @@ -52,9 +87,13 @@ class MockNullableArgFlutterApi extends _i1.Mock } @override - int doit(int? x) => - (super.noSuchMethod(Invocation.method(#doit, [x]), returnValue: 0) - as int); + int doit(int? x) => (super.noSuchMethod( + Invocation.method( + #doit, + [x], + ), + returnValue: 0, + ) as int); } /// A class which mocks [NullableReturnFlutterApi]. @@ -77,9 +116,13 @@ class MockNullableCollectionArgFlutterApi extends _i1.Mock } @override - List doit(List? x) => (super - .noSuchMethod(Invocation.method(#doit, [x]), returnValue: []) - as List); + List doit(List? x) => (super.noSuchMethod( + Invocation.method( + #doit, + [x], + ), + returnValue: [], + ) as List); } /// A class which mocks [NullableCollectionReturnFlutterApi]. diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/primitive_test.mocks.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/primitive_test.mocks.dart index cd3dfc0c9d3..469f9d9bbec 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/primitive_test.mocks.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/primitive_test.mocks.dart @@ -1,47 +1,80 @@ -// Mocks generated by Mockito 5.0.7 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in flutter_unit_tests/test/primitive_test.dart. // Do not manually edit this file. -import 'dart:async' as _i4; -import 'dart:typed_data' as _i2; +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; +import 'dart:typed_data' as _i4; import 'dart:ui' as _i5; -import 'package:flutter/src/services/binary_messenger.dart' as _i3; +import 'package:flutter/services.dart' as _i2; import 'package:flutter_unit_tests/primitive.gen.dart' as _i6; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references -// ignore_for_file: unnecessary_parenthesis - +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors - -// ignore_for_file: avoid_redundant_argument_values - -class _FakeInt32List extends _i1.Fake implements _i2.Int32List {} +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [BinaryMessenger]. /// /// See the documentation for Mockito's code generation for more information. -class MockBinaryMessenger extends _i1.Mock implements _i3.BinaryMessenger { +class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger { MockBinaryMessenger() { _i1.throwOnMissingStub(this); } @override - _i4.Future handlePlatformMessage(String? channel, _i2.ByteData? data, - _i5.PlatformMessageResponseCallback? callback) => + _i3.Future handlePlatformMessage( + String? channel, + _i4.ByteData? data, + _i5.PlatformMessageResponseCallback? callback, + ) => (super.noSuchMethod( - Invocation.method(#handlePlatformMessage, [channel, data, callback]), - returnValue: Future.value(null), - returnValueForMissingStub: Future.value()) as _i4.Future); + Invocation.method( + #handlePlatformMessage, + [ + channel, + data, + callback, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); @override - _i4.Future<_i2.ByteData?>? send(String? channel, _i2.ByteData? message) => - (super.noSuchMethod(Invocation.method(#send, [channel, message])) - as _i4.Future<_i2.ByteData?>?); + _i3.Future<_i4.ByteData?>? send( + String? channel, + _i4.ByteData? message, + ) => + (super.noSuchMethod(Invocation.method( + #send, + [ + channel, + message, + ], + )) as _i3.Future<_i4.ByteData?>?); @override - void setMessageHandler(String? channel, _i3.MessageHandler? handler) => super - .noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]), - returnValueForMissingStub: null); + void setMessageHandler( + String? channel, + _i2.MessageHandler? handler, + ) => + super.noSuchMethod( + Invocation.method( + #setMessageHandler, + [ + channel, + handler, + ], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [PrimitiveFlutterApi]. @@ -54,39 +87,77 @@ class MockPrimitiveFlutterApi extends _i1.Mock } @override - int anInt(int? value) => - (super.noSuchMethod(Invocation.method(#anInt, [value]), returnValue: 0) - as int); + int anInt(int? value) => (super.noSuchMethod( + Invocation.method( + #anInt, + [value], + ), + returnValue: 0, + ) as int); @override - bool aBool(bool? value) => (super - .noSuchMethod(Invocation.method(#aBool, [value]), returnValue: false) - as bool); + bool aBool(bool? value) => (super.noSuchMethod( + Invocation.method( + #aBool, + [value], + ), + returnValue: false, + ) as bool); @override - String aString(String? value) => - (super.noSuchMethod(Invocation.method(#aString, [value]), returnValue: '') - as String); + String aString(String? value) => (super.noSuchMethod( + Invocation.method( + #aString, + [value], + ), + returnValue: '', + ) as String); @override - double aDouble(double? value) => (super - .noSuchMethod(Invocation.method(#aDouble, [value]), returnValue: 0.0) - as double); + double aDouble(double? value) => (super.noSuchMethod( + Invocation.method( + #aDouble, + [value], + ), + returnValue: 0.0, + ) as double); @override Map aMap(Map? value) => - (super.noSuchMethod(Invocation.method(#aMap, [value]), - returnValue: {}) as Map); + (super.noSuchMethod( + Invocation.method( + #aMap, + [value], + ), + returnValue: {}, + ) as Map); @override - List aList(List? value) => - (super.noSuchMethod(Invocation.method(#aList, [value]), - returnValue: []) as List); + List aList(List? value) => (super.noSuchMethod( + Invocation.method( + #aList, + [value], + ), + returnValue: [], + ) as List); @override - _i2.Int32List anInt32List(_i2.Int32List? value) => - (super.noSuchMethod(Invocation.method(#anInt32List, [value]), - returnValue: _FakeInt32List()) as _i2.Int32List); + _i4.Int32List anInt32List(_i4.Int32List? value) => (super.noSuchMethod( + Invocation.method( + #anInt32List, + [value], + ), + returnValue: _i4.Int32List(0), + ) as _i4.Int32List); @override - List aBoolList(List? value) => - (super.noSuchMethod(Invocation.method(#aBoolList, [value]), - returnValue: []) as List); + List aBoolList(List? value) => (super.noSuchMethod( + Invocation.method( + #aBoolList, + [value], + ), + returnValue: [], + ) as List); @override Map aStringIntMap(Map? value) => - (super.noSuchMethod(Invocation.method(#aStringIntMap, [value]), - returnValue: {}) as Map); + (super.noSuchMethod( + Invocation.method( + #aStringIntMap, + [value], + ), + returnValue: {}, + ) as Map); } diff --git a/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart index a40cf34828a..ae59ec3b5a7 100644 --- a/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/legacy/webview_flutter_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart index a7ac41e558c..f290d4036c2 100644 --- a/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/navigation_delegate_test.dart. // Do not manually edit this file. @@ -228,4 +228,14 @@ class MockPlatformNavigationDelegate extends _i1.Mock returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override + _i8.Future setOnUrlChange(_i3.UrlChangeCallback? onUrlChange) => + (super.noSuchMethod( + Invocation.method( + #setOnUrlChange, + [onUrlChange], + ), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) as _i8.Future); } diff --git a/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart index 2bb1ef69132..27d06fdeeba 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/webview_controller_test.dart. // Do not manually edit this file. @@ -414,4 +414,14 @@ class MockPlatformNavigationDelegate extends _i1.Mock returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override + _i5.Future setOnUrlChange(_i6.UrlChangeCallback? onUrlChange) => + (super.noSuchMethod( + Invocation.method( + #setOnUrlChange, + [onUrlChange], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); } diff --git a/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart index 7cae6632d15..04e2b7f25db 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/webview_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart index 0e29ede0d56..3d4c5836b94 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/webview_widget_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart index 25e2d424a44..aa0bf6569d8 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/android_navigation_delegate_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart index 76160aa7a07..88b1f7d38a7 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/android_webview_controller_test.dart. // Do not manually edit this file. @@ -343,6 +343,16 @@ class MockAndroidNavigationDelegate extends _i1.Mock returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override + _i9.Future setOnUrlChange(_i3.UrlChangeCallback? onUrlChange) => + (super.noSuchMethod( + Invocation.method( + #setOnUrlChange, + [onUrlChange], + ), + returnValue: _i9.Future.value(), + returnValueForMissingStub: _i9.Future.value(), + ) as _i9.Future); } /// A class which mocks [AndroidWebViewController]. diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart index 07321805a55..d2937d54f92 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/android_webview_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart index 2cb0081ba8b..43eda09c429 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/android_webview_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart index b474bf1ff56..c9e6e4bfada 100644 --- a/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/instance_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart index 85aed145bfb..b306f2c77d6 100644 --- a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/legacy/webview_android_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart index 67cdaa8bd58..0588a0b0d7f 100644 --- a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/legacy/webview_android_widget_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.mocks.dart index 807ea02e051..5dbde6be102 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_platform_interface/test/platform_webview_controller_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart b/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart index d613cddccd5..e9ff0bd9f28 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_platform_interface/test/webview_platform_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart b/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart index ac7122eacb6..f05a3eb363a 100644 --- a/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_web/test/legacy/webview_flutter_web_test.dart. // Do not manually edit this file. @@ -2118,6 +2118,11 @@ class MockBuildContext extends _i1.Mock implements _i4.BuildContext { ), ) as _i4.Widget); @override + bool get mounted => (super.noSuchMethod( + Invocation.getter(#mounted), + returnValue: false, + ) as bool); + @override bool get debugDoingBuild => (super.noSuchMethod( Invocation.getter(#debugDoingBuild), returnValue: false, @@ -2143,7 +2148,7 @@ class MockBuildContext extends _i1.Mock implements _i4.BuildContext { ), ) as _i4.InheritedWidget); @override - void visitAncestorElements(bool Function(_i4.Element)? visitor) => + void visitAncestorElements(_i4.ConditionalElementVisitor? visitor) => super.noSuchMethod( Invocation.method( #visitAncestorElements, diff --git a/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart index 5cb259a3f01..6f7a2c87953 100644 --- a/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_web/test/web_webview_controller_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart index 860e8dbeb4c..b88d686b205 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart index e02b3fae518..6f5ffe0b5ac 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart index d93198ed9d2..81c919ed51c 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/src/foundation/foundation_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.mocks.dart index 6200b8dbcad..355d69e7dc9 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/src/web_kit/web_kit_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/src/web_kit/web_kit_test.mocks.dart index 50e09560ed1..601964044de 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/src/web_kit/web_kit_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/src/web_kit/web_kit_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/src/web_kit/web_kit_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart index 9eab6dd9a3d..e445f9963e2 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/webkit_navigation_delegate_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.mocks.dart index 288105c0067..184d0a68aaf 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/webkit_webview_controller_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.mocks.dart index c552d96ca31..95818c3cefa 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart index 0f48af4d5da..1b4807eb0cc 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/webkit_webview_widget_test.dart. // Do not manually edit this file. From 57a3352bf6407e5aa3fa20025fe969e91ed0d585 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Wed, 29 Mar 2023 18:06:16 +0000 Subject: [PATCH 08/11] Generate more mockito mocks In a couple packages that are generating in a directory named `integration_test/` instead of `test/`, add a `generate_for` argument to run mockito against those tests. Remove a stale unused mock file. If a `build_runner build` had been run following the removal of the source file, with an asset graph from the build that included the file, it would have been removed. If the source file is removed and no builds are ever run with the asset graph from the build including it, the output will be ignored by the build system. --- .../example/build.yaml | 4 ++ .../google_maps_controller_test.mocks.dart | 2 +- .../google_maps_plugin_test.mocks.dart | 2 +- .../google_sign_in_web/example/build.yaml | 4 ++ .../google_sign_in_web_test.mocks.dart | 2 +- .../test/all_datatypes_test.mocks.dart | 42 ------------------- .../url_launcher_web/example/build.yaml | 4 ++ .../url_launcher_web_test.mocks.dart | 2 +- .../common/package_command_test.mocks.dart | 2 +- 9 files changed, 17 insertions(+), 47 deletions(-) delete mode 100644 packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/all_datatypes_test.mocks.dart diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/build.yaml b/packages/google_maps_flutter/google_maps_flutter_web/example/build.yaml index db3104bb04c..5a89bed84ef 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/build.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/build.yaml @@ -4,3 +4,7 @@ targets: - integration_test/*.dart - lib/$lib$ - $package$ + builders: + mockito|mockBuilder: + generate_for: + - integration_test/** diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart index efde6645932..db4130f58b0 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in google_maps_flutter_web_integration_tests/integration_test/google_maps_controller_test.dart. // Do not manually edit this file. diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.mocks.dart b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.mocks.dart index a85bce31e20..f00ad0a6e54 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.mocks.dart +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in google_maps_flutter_web_integration_tests/integration_test/google_maps_plugin_test.dart. // Do not manually edit this file. diff --git a/packages/google_sign_in/google_sign_in_web/example/build.yaml b/packages/google_sign_in/google_sign_in_web/example/build.yaml index db3104bb04c..5a89bed84ef 100644 --- a/packages/google_sign_in/google_sign_in_web/example/build.yaml +++ b/packages/google_sign_in/google_sign_in_web/example/build.yaml @@ -4,3 +4,7 @@ targets: - integration_test/*.dart - lib/$lib$ - $package$ + builders: + mockito|mockBuilder: + generate_for: + - integration_test/** diff --git a/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.mocks.dart b/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.mocks.dart index b60dac9d4b9..1134576426e 100644 --- a/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.mocks.dart +++ b/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in google_sign_in_web_integration_tests/integration_test/google_sign_in_web_test.dart. // Do not manually edit this file. diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/all_datatypes_test.mocks.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/all_datatypes_test.mocks.dart deleted file mode 100644 index 1a5de52fbb0..00000000000 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/all_datatypes_test.mocks.dart +++ /dev/null @@ -1,42 +0,0 @@ -// Mocks generated by Mockito 5.0.7 from annotations -// in flutter_unit_tests/test/all_datatypes_test.dart. -// Do not manually edit this file. - -import 'dart:async' as _i3; -import 'dart:typed_data' as _i4; -import 'dart:ui' as _i5; - -import 'package:flutter/src/services/binary_messenger.dart' as _i2; -import 'package:mockito/mockito.dart' as _i1; - -// ignore_for_file: comment_references -// ignore_for_file: unnecessary_parenthesis - -// ignore_for_file: prefer_const_constructors - -// ignore_for_file: avoid_redundant_argument_values - -/// A class which mocks [BinaryMessenger]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger { - MockBinaryMessenger() { - _i1.throwOnMissingStub(this); - } - - @override - _i3.Future handlePlatformMessage(String? channel, _i4.ByteData? data, - _i5.PlatformMessageResponseCallback? callback) => - (super.noSuchMethod( - Invocation.method(#handlePlatformMessage, [channel, data, callback]), - returnValue: Future.value(null), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future<_i4.ByteData?>? send(String? channel, _i4.ByteData? message) => - (super.noSuchMethod(Invocation.method(#send, [channel, message])) - as _i3.Future<_i4.ByteData?>?); - @override - void setMessageHandler(String? channel, _i2.MessageHandler? handler) => super - .noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]), - returnValueForMissingStub: null); -} diff --git a/packages/url_launcher/url_launcher_web/example/build.yaml b/packages/url_launcher/url_launcher_web/example/build.yaml index db3104bb04c..5a89bed84ef 100644 --- a/packages/url_launcher/url_launcher_web/example/build.yaml +++ b/packages/url_launcher/url_launcher_web/example/build.yaml @@ -4,3 +4,7 @@ targets: - integration_test/*.dart - lib/$lib$ - $package$ + builders: + mockito|mockBuilder: + generate_for: + - integration_test/** diff --git a/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart b/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart index 0717dc7ff47..004ac135ae4 100644 --- a/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart +++ b/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in regular_integration_tests/integration_test/url_launcher_web_test.dart. // Do not manually edit this file. diff --git a/script/tool/test/common/package_command_test.mocks.dart b/script/tool/test/common/package_command_test.mocks.dart index 79c5d4df1a8..69f706677a9 100644 --- a/script/tool/test/common/package_command_test.mocks.dart +++ b/script/tool/test/common/package_command_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in flutter_plugin_tools/test/common/package_command_test.dart. // Do not manually edit this file. From 5a01b05ef1e24069fe896dd8c63f46841709ebf2 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Wed, 29 Mar 2023 18:57:09 +0000 Subject: [PATCH 09/11] Make a custom mock class private Mockito 5.4.0 restricts mocks from sharing a name with a class, the import prefix does not work around the mockito check. --- .../image_picker/test/image_picker_test.dart | 9 +- .../test/image_picker_test.mocks.dart | 228 ++++++++++++++++++ 2 files changed, 233 insertions(+), 4 deletions(-) create mode 100644 packages/image_picker/image_picker/test/image_picker_test.mocks.dart diff --git a/packages/image_picker/image_picker/test/image_picker_test.dart b/packages/image_picker/image_picker/test/image_picker_test.dart index 2d959bd20f7..637ecf9c6e7 100644 --- a/packages/image_picker/image_picker/test/image_picker_test.dart +++ b/packages/image_picker/image_picker/test/image_picker_test.dart @@ -13,16 +13,17 @@ import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'image_picker_test.mocks.dart' as base_mock; // Add the mixin to make the platform interface accept the mock. -class MockImagePickerPlatform extends base_mock.MockImagePickerPlatform +class _MockImagePickerPlatform extends base_mock.MockImagePickerPlatform with MockPlatformInterfaceMixin {} -@GenerateMocks([ImagePickerPlatform]) +@GenerateMocks([], + customMocks: >[MockSpec()]) void main() { group('ImagePicker', () { - late MockImagePickerPlatform mockPlatform; + late _MockImagePickerPlatform mockPlatform; setUp(() { - mockPlatform = MockImagePickerPlatform(); + mockPlatform = _MockImagePickerPlatform(); ImagePickerPlatform.instance = mockPlatform; }); diff --git a/packages/image_picker/image_picker/test/image_picker_test.mocks.dart b/packages/image_picker/image_picker/test/image_picker_test.mocks.dart new file mode 100644 index 00000000000..d1e19830e91 --- /dev/null +++ b/packages/image_picker/image_picker/test/image_picker_test.mocks.dart @@ -0,0 +1,228 @@ +// Mocks generated by Mockito 5.4.0 from annotations +// in image_picker/test/image_picker_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i4; + +import 'package:cross_file/cross_file.dart' as _i5; +import 'package:image_picker_platform_interface/src/platform_interface/image_picker_platform.dart' + as _i3; +import 'package:image_picker_platform_interface/src/types/types.dart' as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters +// ignore_for_file: comment_references +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member +// ignore_for_file: prefer_const_constructors +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class + +class _FakeLostData_0 extends _i1.SmartFake implements _i2.LostData { + _FakeLostData_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeLostDataResponse_1 extends _i1.SmartFake + implements _i2.LostDataResponse { + _FakeLostDataResponse_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [ImagePickerPlatform]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockImagePickerPlatform extends _i1.Mock + implements _i3.ImagePickerPlatform { + MockImagePickerPlatform() { + _i1.throwOnMissingStub(this); + } + + @override + _i4.Future<_i2.PickedFile?> pickImage({ + required _i2.ImageSource? source, + double? maxWidth, + double? maxHeight, + int? imageQuality, + _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear, + }) => + (super.noSuchMethod( + Invocation.method( + #pickImage, + [], + { + #source: source, + #maxWidth: maxWidth, + #maxHeight: maxHeight, + #imageQuality: imageQuality, + #preferredCameraDevice: preferredCameraDevice, + }, + ), + returnValue: _i4.Future<_i2.PickedFile?>.value(), + ) as _i4.Future<_i2.PickedFile?>); + @override + _i4.Future?> pickMultiImage({ + double? maxWidth, + double? maxHeight, + int? imageQuality, + }) => + (super.noSuchMethod( + Invocation.method( + #pickMultiImage, + [], + { + #maxWidth: maxWidth, + #maxHeight: maxHeight, + #imageQuality: imageQuality, + }, + ), + returnValue: _i4.Future?>.value(), + ) as _i4.Future?>); + @override + _i4.Future<_i2.PickedFile?> pickVideo({ + required _i2.ImageSource? source, + _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear, + Duration? maxDuration, + }) => + (super.noSuchMethod( + Invocation.method( + #pickVideo, + [], + { + #source: source, + #preferredCameraDevice: preferredCameraDevice, + #maxDuration: maxDuration, + }, + ), + returnValue: _i4.Future<_i2.PickedFile?>.value(), + ) as _i4.Future<_i2.PickedFile?>); + @override + _i4.Future<_i2.LostData> retrieveLostData() => (super.noSuchMethod( + Invocation.method( + #retrieveLostData, + [], + ), + returnValue: _i4.Future<_i2.LostData>.value(_FakeLostData_0( + this, + Invocation.method( + #retrieveLostData, + [], + ), + )), + ) as _i4.Future<_i2.LostData>); + @override + _i4.Future<_i5.XFile?> getImage({ + required _i2.ImageSource? source, + double? maxWidth, + double? maxHeight, + int? imageQuality, + _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear, + }) => + (super.noSuchMethod( + Invocation.method( + #getImage, + [], + { + #source: source, + #maxWidth: maxWidth, + #maxHeight: maxHeight, + #imageQuality: imageQuality, + #preferredCameraDevice: preferredCameraDevice, + }, + ), + returnValue: _i4.Future<_i5.XFile?>.value(), + ) as _i4.Future<_i5.XFile?>); + @override + _i4.Future?> getMultiImage({ + double? maxWidth, + double? maxHeight, + int? imageQuality, + }) => + (super.noSuchMethod( + Invocation.method( + #getMultiImage, + [], + { + #maxWidth: maxWidth, + #maxHeight: maxHeight, + #imageQuality: imageQuality, + }, + ), + returnValue: _i4.Future?>.value(), + ) as _i4.Future?>); + @override + _i4.Future<_i5.XFile?> getVideo({ + required _i2.ImageSource? source, + _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear, + Duration? maxDuration, + }) => + (super.noSuchMethod( + Invocation.method( + #getVideo, + [], + { + #source: source, + #preferredCameraDevice: preferredCameraDevice, + #maxDuration: maxDuration, + }, + ), + returnValue: _i4.Future<_i5.XFile?>.value(), + ) as _i4.Future<_i5.XFile?>); + @override + _i4.Future<_i2.LostDataResponse> getLostData() => (super.noSuchMethod( + Invocation.method( + #getLostData, + [], + ), + returnValue: + _i4.Future<_i2.LostDataResponse>.value(_FakeLostDataResponse_1( + this, + Invocation.method( + #getLostData, + [], + ), + )), + ) as _i4.Future<_i2.LostDataResponse>); + @override + _i4.Future<_i5.XFile?> getImageFromSource({ + required _i2.ImageSource? source, + _i2.ImagePickerOptions? options = const _i2.ImagePickerOptions(), + }) => + (super.noSuchMethod( + Invocation.method( + #getImageFromSource, + [], + { + #source: source, + #options: options, + }, + ), + returnValue: _i4.Future<_i5.XFile?>.value(), + ) as _i4.Future<_i5.XFile?>); + @override + _i4.Future> getMultiImageWithOptions( + {_i2.MultiImagePickerOptions? options = + const _i2.MultiImagePickerOptions()}) => + (super.noSuchMethod( + Invocation.method( + #getMultiImageWithOptions, + [], + {#options: options}, + ), + returnValue: _i4.Future>.value(<_i5.XFile>[]), + ) as _i4.Future>); +} From 4e28976497b1413a5b610c73c26f550c176505dd Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Wed, 29 Mar 2023 19:58:01 +0000 Subject: [PATCH 10/11] Regenerate mocks at an older flutter SDK The newer SDK switches the argument in the original definition to a typedef, but the older SDK doesn't have that typedef. --- .../test/android_camera_camerax_test.mocks.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart b/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart index 05003b7a42a..59be6656d5e 100644 --- a/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart @@ -328,7 +328,7 @@ class MockBuildContext extends _i1.Mock implements _i4.BuildContext { ), ) as _i4.InheritedWidget); @override - void visitAncestorElements(_i4.ConditionalElementVisitor? visitor) => + void visitAncestorElements(bool Function(_i4.Element)? visitor) => super.noSuchMethod( Invocation.method( #visitAncestorElements, From 349a2fc59aa944fbb181dded62f3591aa7a6a0e6 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Wed, 29 Mar 2023 19:58:01 +0000 Subject: [PATCH 11/11] Regenerate mocks at an older flutter SDK The newer SDK switches the argument in the original definition to a typedef, but the older SDK doesn't have that typedef. --- .../test/legacy/webview_flutter_web_test.mocks.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart b/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart index f05a3eb363a..06b57106e2b 100644 --- a/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart @@ -2148,7 +2148,7 @@ class MockBuildContext extends _i1.Mock implements _i4.BuildContext { ), ) as _i4.InheritedWidget); @override - void visitAncestorElements(_i4.ConditionalElementVisitor? visitor) => + void visitAncestorElements(bool Function(_i4.Element)? visitor) => super.noSuchMethod( Invocation.method( #visitAncestorElements,