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 f623b88214c5..d4569af11915 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 78262b785b29..b111e57d9af4 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 59c1daa2391c..1e5828ee1daf 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 073adbb7b2ca..9826d7b623b9 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 a93ab0fbd7ed..fde1692cae26 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 49ed33ed1624..973136c7a253 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 fa8d6e727146..dc97575af38b 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 26be9763f94e..4ab1909767e5 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 d0b6b7131015..a8ba667c67d4 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 0a3f49f4be80..e739820ed7ec 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 bc6115509cc4..f46d880e0966 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 68f993651ae8..7296ce8001c4 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 2a6ff2095b66..af2fbed95ead 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 4a865dec4589..2b03d90c4f9e 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 8611fc285680..34174c66c417 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 acfe0fb638f3..e9f5cd760a13 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 e3670640ec27..bc4da44b8533 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 f6cd3781f318..7ca5f73a9a23 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 bbb5a6ccaa1b..ca7b3de456e2 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 cbe63491ab36..098b5d07b36f 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 907ca9c2e3ca..f67a5b81b7ef 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 022b194858a1..2a6f92ea23ce 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 af8a0aac6386..416dc9584edc 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 d9d2439fa097..a51583353ec0 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 e4272b838454..c479030f5407 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 72766ef759e7..29a1dc943649 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 795d7b1c5831..5d549d46d16f 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 f318cb3d108a..f09668d47f29 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 f3cca6a731e4..791e4ac9c4f8 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 c2914a09e4bd..429a697ed3a9 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 7dfb428171ea..d20f379a3186 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 60c1a832b77c..41a09793a314 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 5ae83c381940..7590587c7538 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 93bcf70dff95..5be6da2a00b5 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 d3b4cd149834..05c8aa2be673 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 45781d611108..15538a69d869 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 2eb973b4e1f1..bb96a51c413b 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 d4569af11915..d06acc014661 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 b111e57d9af4..3aa561dc33bf 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 1e5828ee1daf..84765d9cedc0 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 9826d7b623b9..cd0622414d02 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 fde1692cae26..5d7405785f74 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 973136c7a253..06f9e2d05065 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 dc97575af38b..386a0ef62cfe 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 4ab1909767e5..917529a914e7 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 a8ba667c67d4..6767c8a1f392 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 e739820ed7ec..ed7437a4ed9b 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 f46d880e0966..78312b43ab1c 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 7296ce8001c4..ffa49a503bb3 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 af2fbed95ead..f78905483212 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 2b03d90c4f9e..05564e020fd0 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 34174c66c417..48459a5e6342 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 e9f5cd760a13..2dc9f777d9df 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 bc4da44b8533..9d6fd2e2c14c 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 7ca5f73a9a23..4f1dfdea6e6e 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 ca7b3de456e2..c4a84d11e139 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 098b5d07b36f..61d68557012e 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 f67a5b81b7ef..b5953facbd86 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 2a6f92ea23ce..07032c6e02d6 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 416dc9584edc..865985bd8d72 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 a51583353ec0..4f57fec46a17 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 c479030f5407..4284c9a7fd55 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 29a1dc943649..579296f16ca7 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 5d549d46d16f..f204d60dc01d 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 f09668d47f29..eba22dbd0f33 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 791e4ac9c4f8..9fc2060e9a2f 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 429a697ed3a9..92b708b0880d 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 d20f379a3186..d7f8792dc007 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 41a09793a314..97c079cf5e44 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 7590587c7538..691eb19abd72 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 5be6da2a00b5..320decfd13d2 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 05c8aa2be673..c727ba6287c2 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 15538a69d869..ae9da285f7e2 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 bb96a51c413b..c31786e6eb76 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 3aa561dc33bf..ad7daf612515 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 eaf2bd192384..41ed519cd170 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 d06acc014661..f2196e740a7d 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 d3ca746e6c63..1a055e7913c4 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 ad7daf612515..35399a356ab3 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 d5ab5743967e..44642b6d9126 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 600f58154aba..b8e38bd4e8ab 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 e4ea83815fc5..125b63cedd62 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 4d4ca6d9e92b..aa46b515f403 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 e866c9327107..3d55f843d5b8 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 8d95cb9fe7ae..61bbdc2972fb 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 06f9e2d05065..dedd749dc33d 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 386a0ef62cfe..879604908815 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 917529a914e7..787e397e102b 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 ba9c7d34915b..83f4971a2682 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 ff09d94279c5..f46a4df7eb81 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 6767c8a1f392..3fcabdf0ffdf 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 ed7437a4ed9b..17645aa9ad40 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 78312b43ab1c..daac8ca34aba 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 92066ffacce6..745c4e42fbee 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 462e582188c1..6b38b56bbed8 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 e440922fa8ee..168adcbda3a8 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 d7fc2ea09bad..8921a37a67e9 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 f78905483212..6c1c593f4813 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 3715b36fd123..d0bca043d1e4 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 b9f33efc98a9..3f13f771185a 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 48459a5e6342..bcd8be0719c8 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 b04b5719a1c9..a2b59a3265b9 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 2dc9f777d9df..1acaba34638a 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 9d6fd2e2c14c..868f7587b752 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 0cbd4f82b8e0..53c5b88dbc06 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 4f1dfdea6e6e..a6cbe4aa6e3b 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 c4a84d11e139..726170457440 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 61d68557012e..289810749cee 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 44bf05a27bff..64caf32a15cb 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 fea6c679444c..89e0a123cfed 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 010ce2c3f2e0..69eba8468abb 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 07032c6e02d6..120409897f29 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 c38c2f72b804..6e39711fa9de 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 865985bd8d72..1c6dab5ab02c 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 04cb5215a8c2..073d2275851c 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 4f57fec46a17..710a03eb4118 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 4284c9a7fd55..3e922177de4a 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 579296f16ca7..736c1bee5864 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 f204d60dc01d..58dce23759b7 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 eba22dbd0f33..18abe9ef6c3f 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 9fc2060e9a2f..ddfd3e5f22b4 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 92b708b0880d..50824528932c 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 d7f8792dc007..a5fe899751f7 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 e7aba6362143..755dcd507a58 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 8a6447e59166..2b4bb0979051 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 e4d575de78bb..b847a6d9c072 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 135d8995851a..742e9a7e01b1 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 97c079cf5e44..8c013dec231a 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 760f7d52abba..83f3f00312f9 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 691eb19abd72..4321673b66b3 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 320decfd13d2..6d05e0ab6291 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 24953153ebda..2e1daffb1c86 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 c727ba6287c2..845d5785232e 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 b39ff595fc68..4af215cee74d 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 5320774e6a97..f68d6e3cffdb 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 f163e831acce..cfe8bbc72219 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 1404a746fd43..9c80f0b3f5f9 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 a02f6be3c150..af295117f049 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 b3c41bacdac8..d6e2b83b77c1 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 1ec37e27fcf5..c9376d87dc08 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 b31d7f2d541e..0fb0375c0d97 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 be97166650bb..0a712b44eba9 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 0723487fd90a..d37374ac3589 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 751bf5b65dc1..c3a7366d1937 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 2d02e63eee34..f38290f14cb3 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 140efae1fb27..242a0b0b7086 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 8e5fd29e4567..629497f75964 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 8d9147a9f06f..b47de9453096 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 b428a85d444c..9c6267cbc0cf 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 6b63b1c7ce57..f87c7e9bad97 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 341218cd99dd..c639d58ad2a4 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 584daa88a163..b542eda207af 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 201ffb116746..815e843266e9 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 80bf962ff9f1..ca2168267ab5 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 7849e7e07c4d..0dfe9724ede9 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 988b465fb860..1e16999d169d 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 24186a3a76e9..d63cc2ae654a 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 8687f72e6387..10913d1b2113 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 5d5083835eb6..2f1d78a0c504 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 1e59d1d0a209..ea5f593f59e6 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 8553d7333c97..1505525dfd47 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 a292ce10fa63..fa03c093e91e 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 49151cfcd181..91ef9e42e4fa 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 6653f083bb73..fcb4f98f61f2 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 3fd3dec7ce8c..0151146d724d 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 9bb8d8205af5..c3a16e84ae94 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 b94310b2fd53..808c85c7b232 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 5ce2e1fff47a..38f28aaf222e 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 ab1921a7079a..11714c394a40 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 c31786e6eb76..dd42b0dde00c 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 09a645a08504..05003b7a42a3 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 896bbc4a209a..3c153337bfa6 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 627aba8c55f2..3b8bc4ad0b06 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 1dc8a28ecde8..63761d80b88f 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 fe3bdb89addd..467f4dc2978d 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 68b0c0a9f450..62d3de7cbfd2 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 27d5b016c94b..cb0acdaba0ba 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 1d22ba75a10a..c4186b0c6012 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 ddd563b2869a..ff16017bd5df 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 f60c92e6b7ee..ae55f2e301d3 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 4e669628391c..b27e3aef406c 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 f749b538665b..000000000000 --- 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 be2dd2ac5768..32fb38026c14 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 7f86e40d215c..93ff8e1f1827 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 edb472773462..98757656c36b 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 62db996799e0..3a6b0f19b1cb 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 ff0400d15cf3..0214f7e7196c 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 9b5bfcbcf5c8..c48bb3fdb4a3 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 cd3dfc0c9d36..469f9d9bbec5 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 a40cf34828ae..ae59ec3b5a73 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 a7ac41e558c3..f290d4036c27 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 2bb1ef691321..27d06fdeeba4 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 7cae6632d157..04e2b7f25db4 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 0e29ede0d561..3d4c5836b940 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 25e2d424a441..aa0bf6569d8d 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 76160aa7a075..88b1f7d38a70 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 07321805a559..d2937d54f92b 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 2cb0081ba8bc..43eda09c4299 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 b474bf1ff567..c9e6e4bfadac 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 85aed145bfbe..b306f2c77d6d 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 67cdaa8bd582..0588a0b0d7f4 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 807ea02e0519..5dbde6be102a 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 d613cddccd54..e9ff0bd9f282 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 ac7122eacb63..f05a3eb363aa 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 5cb259a3f01a..6f7a2c879532 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 860e8dbeb4ce..b88d686b205d 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 e02b3fae5186..6f5ffe0b5acb 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 d93198ed9d2f..81c919ed51c5 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 6200b8dbcadf..355d69e7dc90 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 50e09560ed19..601964044dea 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 9eab6dd9a3db..e445f9963e21 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 288105c0067e..184d0a68aaf7 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 c552d96ca316..95818c3cefae 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 0f48af4d5daa..1b4807eb0cc2 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 db3104bb04c6..5a89bed84efb 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 efde66459327..db4130f58b07 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 a85bce31e20f..f00ad0a6e54e 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 db3104bb04c6..5a89bed84efb 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 b60dac9d4b95..1134576426ea 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 1a5de52fbb0c..000000000000 --- 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 db3104bb04c6..5a89bed84efb 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 0717dc7ff478..004ac135ae4e 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 79c5d4df1a8c..69f706677a9d 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 2d959bd20f7b..637ecf9c6e7a 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 000000000000..d1e19830e919 --- /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 05003b7a42a3..59be6656d5e1 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 f05a3eb363aa..06b57106e2b4 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,