diff --git a/packages/camera/camera/CHANGELOG.md b/packages/camera/camera/CHANGELOG.md index 5320774e6a9..f68d6e3cffd 100644 --- a/packages/camera/camera/CHANGELOG.md +++ b/packages/camera/camera/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 0.10.3+2 diff --git a/packages/camera/camera/example/pubspec.yaml b/packages/camera/camera/example/pubspec.yaml index eaf2bd19238..41ed519cd17 100644 --- a/packages/camera/camera/example/pubspec.yaml +++ b/packages/camera/camera/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the camera plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: camera: diff --git a/packages/camera/camera/pubspec.yaml b/packages/camera/camera/pubspec.yaml index f623b88214c..f2196e740a7 100644 --- a/packages/camera/camera/pubspec.yaml +++ b/packages/camera/camera/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.10.3+2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/CHANGELOG.md b/packages/camera/camera_android_camerax/CHANGELOG.md index f163e831acc..cfe8bbc7221 100644 --- a/packages/camera/camera_android_camerax/CHANGELOG.md +++ b/packages/camera/camera_android_camerax/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Creates camera_android_camerax plugin for development. * Adds CameraInfo class and removes unnecessary code from plugin. * Adds CameraSelector class. diff --git a/packages/camera/camera_android_camerax/example/pubspec.yaml b/packages/camera/camera_android_camerax/example/pubspec.yaml index d3ca746e6c6..1a055e7913c 100644 --- a/packages/camera/camera_android_camerax/example/pubspec.yaml +++ b/packages/camera/camera_android_camerax/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the camera_android_camerax plugin. publish_to: 'none' environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: camera_android_camerax: diff --git a/packages/camera/camera_android_camerax/pubspec.yaml b/packages/camera/camera_android_camerax/pubspec.yaml index 764b057f03d..35399a356ab 100644 --- a/packages/camera/camera_android_camerax/pubspec.yaml +++ b/packages/camera/camera_android_camerax/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ publish_to: 'none' environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -30,5 +30,5 @@ dev_dependencies: build_runner: ^2.1.4 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: 5.4.0 pigeon: ^9.1.0 diff --git a/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart b/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart index 09a645a0850..59be6656d5e 100644 --- a/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/android_camera_camerax_test.mocks.dart @@ -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 @@ -346,7 +345,7 @@ class MockBuildContext extends _i1.Mock implements _i4.BuildContext { returnValueForMissingStub: null, ); @override - void dispatchNotification(_i14.Notification? notification) => + void dispatchNotification(_i4.Notification? notification) => super.noSuchMethod( Invocation.method( #dispatchNotification, diff --git a/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart b/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart index 896bbc4a209..3c153337bfa 100644 --- a/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/camera_info_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/camera_info_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart b/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart index 627aba8c55f..3b8bc4ad0b0 100644 --- a/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/camera_selector_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/camera_selector_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/image_capture_test.mocks.dart b/packages/camera/camera_android_camerax/test/image_capture_test.mocks.dart index 1dc8a28ecde..63761d80b88 100644 --- a/packages/camera/camera_android_camerax/test/image_capture_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/image_capture_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/image_capture_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/preview_test.mocks.dart b/packages/camera/camera_android_camerax/test/preview_test.mocks.dart index fe3bdb89add..467f4dc2978 100644 --- a/packages/camera/camera_android_camerax/test/preview_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/preview_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/preview_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/process_camera_provider_test.mocks.dart b/packages/camera/camera_android_camerax/test/process_camera_provider_test.mocks.dart index 68b0c0a9f45..62d3de7cbfd 100644 --- a/packages/camera/camera_android_camerax/test/process_camera_provider_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/process_camera_provider_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/process_camera_provider_test.dart. // Do not manually edit this file. diff --git a/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart b/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart index 27d5b016c94..cb0acdaba0b 100644 --- a/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart +++ b/packages/camera/camera_android_camerax/test/system_services_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in camera_android_camerax/test/system_services_test.dart. // Do not manually edit this file. diff --git a/packages/file_selector/file_selector_ios/CHANGELOG.md b/packages/file_selector/file_selector_ios/CHANGELOG.md index 1404a746fd4..9c80f0b3f5f 100644 --- a/packages/file_selector/file_selector_ios/CHANGELOG.md +++ b/packages/file_selector/file_selector_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.5.1+2 * Updates to `pigeon` version 9. diff --git a/packages/file_selector/file_selector_ios/example/pubspec.yaml b/packages/file_selector/file_selector_ios/example/pubspec.yaml index d5ab5743967..44642b6d912 100644 --- a/packages/file_selector/file_selector_ios/example/pubspec.yaml +++ b/packages/file_selector/file_selector_ios/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: # The following adds the Cupertino Icons font to your application. diff --git a/packages/file_selector/file_selector_ios/pubspec.yaml b/packages/file_selector/file_selector_ios/pubspec.yaml index 7e452fe51f9..eb9dd2475f5 100644 --- a/packages/file_selector/file_selector_ios/pubspec.yaml +++ b/packages/file_selector/file_selector_ios/pubspec.yaml @@ -25,5 +25,5 @@ dev_dependencies: build_runner: ^2.3.0 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: 5.4.0 pigeon: ^9.1.0 diff --git a/packages/file_selector/file_selector_ios/test/file_selector_ios_test.mocks.dart b/packages/file_selector/file_selector_ios/test/file_selector_ios_test.mocks.dart index 1d22ba75a10..c4186b0c601 100644 --- a/packages/file_selector/file_selector_ios/test/file_selector_ios_test.mocks.dart +++ b/packages/file_selector/file_selector_ios/test/file_selector_ios_test.mocks.dart @@ -1,5 +1,5 @@ -// Mocks generated by Mockito 5.3.0 from annotations -// in file_selector_ios/example/ios/.symlinks/plugins/file_selector_ios/test/file_selector_ios_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in file_selector_ios/test/file_selector_ios_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes @@ -32,7 +32,11 @@ class MockTestFileSelectorApi extends _i1.Mock @override _i3.Future> openFile(_i4.FileSelectorConfig? config) => - (super.noSuchMethod(Invocation.method(#openFile, [config]), - returnValue: _i3.Future>.value([])) - as _i3.Future>); + (super.noSuchMethod( + Invocation.method( + #openFile, + [config], + ), + returnValue: _i3.Future>.value([]), + ) as _i3.Future>); } diff --git a/packages/file_selector/file_selector_macos/CHANGELOG.md b/packages/file_selector/file_selector_macos/CHANGELOG.md index a02f6be3c15..af295117f04 100644 --- a/packages/file_selector/file_selector_macos/CHANGELOG.md +++ b/packages/file_selector/file_selector_macos/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.9.0+7 * Updates to `pigeon` version 9. diff --git a/packages/file_selector/file_selector_macos/example/pubspec.yaml b/packages/file_selector/file_selector_macos/example/pubspec.yaml index 600f58154ab..b8e38bd4e8a 100644 --- a/packages/file_selector/file_selector_macos/example/pubspec.yaml +++ b/packages/file_selector/file_selector_macos/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: file_selector_macos: diff --git a/packages/file_selector/file_selector_macos/pubspec.yaml b/packages/file_selector/file_selector_macos/pubspec.yaml index da99217761a..125b63cedd6 100644 --- a/packages/file_selector/file_selector_macos/pubspec.yaml +++ b/packages/file_selector/file_selector_macos/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.0+7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -26,5 +26,5 @@ dev_dependencies: build_runner: ^2.3.2 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: 5.4.0 pigeon: ^9.1.0 diff --git a/packages/file_selector/file_selector_macos/test/file_selector_macos_test.mocks.dart b/packages/file_selector/file_selector_macos/test/file_selector_macos_test.mocks.dart index ddd563b2869..ff16017bd5d 100644 --- a/packages/file_selector/file_selector_macos/test/file_selector_macos_test.mocks.dart +++ b/packages/file_selector/file_selector_macos/test/file_selector_macos_test.mocks.dart @@ -1,5 +1,5 @@ -// Mocks generated by Mockito 5.3.2 from annotations -// in file_selector_macos/example/macos/Flutter/ephemeral/.symlinks/plugins/file_selector_macos/test/file_selector_macos_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in file_selector_macos/test/file_selector_macos_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes diff --git a/packages/file_selector/file_selector_windows/CHANGELOG.md b/packages/file_selector/file_selector_windows/CHANGELOG.md index b3c41bacdac..d6e2b83b77c 100644 --- a/packages/file_selector/file_selector_windows/CHANGELOG.md +++ b/packages/file_selector/file_selector_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.9.1+7 * Updates to `pigeon` version 9. diff --git a/packages/file_selector/file_selector_windows/example/pubspec.yaml b/packages/file_selector/file_selector_windows/example/pubspec.yaml index 4d4ca6d9e92..aa46b515f40 100644 --- a/packages/file_selector/file_selector_windows/example/pubspec.yaml +++ b/packages/file_selector/file_selector_windows/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: file_selector_platform_interface: ^2.2.0 diff --git a/packages/file_selector/file_selector_windows/pubspec.yaml b/packages/file_selector/file_selector_windows/pubspec.yaml index faf4239c1dd..3d55f843d5b 100644 --- a/packages/file_selector/file_selector_windows/pubspec.yaml +++ b/packages/file_selector/file_selector_windows/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.9.1+7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -26,5 +26,5 @@ dev_dependencies: build_runner: ^2.3.0 flutter_test: sdk: flutter - mockito: 5.3.2 + mockito: 5.4.0 pigeon: ^9.1.0 diff --git a/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart b/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart index f60c92e6b7e..ae55f2e301d 100644 --- a/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart +++ b/packages/file_selector/file_selector_windows/test/file_selector_windows_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.2.0 from annotations -// in file_selector_windows/example/windows/flutter/ephemeral/.plugin_symlinks/file_selector_windows/test/file_selector_windows_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in file_selector_windows/test/file_selector_windows_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:file_selector_windows/src/messages.g.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -16,6 +17,7 @@ import 'test_api.g.dart' as _i2; // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [TestFileSelectorApi]. /// @@ -27,20 +29,39 @@ class MockTestFileSelectorApi extends _i1.Mock } @override - List showOpenDialog(_i3.SelectionOptions? options, - String? initialDirectory, String? confirmButtonText) => + List showOpenDialog( + _i3.SelectionOptions? options, + String? initialDirectory, + String? confirmButtonText, + ) => (super.noSuchMethod( - Invocation.method( - #showOpenDialog, [options, initialDirectory, confirmButtonText]), - returnValue: []) as List); + Invocation.method( + #showOpenDialog, + [ + options, + initialDirectory, + confirmButtonText, + ], + ), + returnValue: [], + ) as List); @override List showSaveDialog( - _i3.SelectionOptions? options, - String? initialDirectory, - String? suggestedName, - String? confirmButtonText) => + _i3.SelectionOptions? options, + String? initialDirectory, + String? suggestedName, + String? confirmButtonText, + ) => (super.noSuchMethod( - Invocation.method(#showSaveDialog, - [options, initialDirectory, suggestedName, confirmButtonText]), - returnValue: []) as List); + Invocation.method( + #showSaveDialog, + [ + options, + initialDirectory, + suggestedName, + confirmButtonText, + ], + ), + returnValue: [], + ) as List); } diff --git a/packages/flutter_markdown/CHANGELOG.md b/packages/flutter_markdown/CHANGELOG.md index 1ec37e27fcf..c9376d87dc0 100644 --- a/packages/flutter_markdown/CHANGELOG.md +++ b/packages/flutter_markdown/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 0.6.14 diff --git a/packages/flutter_markdown/example/pubspec.yaml b/packages/flutter_markdown/example/pubspec.yaml index 8d95cb9fe7a..61bbdc2972f 100644 --- a/packages/flutter_markdown/example/pubspec.yaml +++ b/packages/flutter_markdown/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the flutter_markdown package. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/flutter_markdown/pubspec.yaml b/packages/flutter_markdown/pubspec.yaml index 49ed33ed162..dedd749dc33 100644 --- a/packages/flutter_markdown/pubspec.yaml +++ b/packages/flutter_markdown/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.6.14 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md index b31d7f2d541..0fb0375c0d9 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 2.2.6 diff --git a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml index fa8d6e72714..87960490881 100644 --- a/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.2.6 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: collection: ^1.15.0 @@ -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/CHANGELOG.md b/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md index be97166650b..0a712b44eba 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md +++ b/packages/google_maps_flutter/google_maps_flutter_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.4.0+7 * Clarifies explanation of endorsement in README. diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/build.yaml b/packages/google_maps_flutter/google_maps_flutter_web/example/build.yaml index db3104bb04c..5a89bed84ef 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/build.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/build.yaml @@ -4,3 +4,7 @@ targets: - integration_test/*.dart - lib/$lib$ - $package$ + builders: + mockito|mockBuilder: + generate_for: + - integration_test/** diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart index efde6645932..db4130f58b0 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in google_maps_flutter_web_integration_tests/integration_test/google_maps_controller_test.dart. // Do not manually edit this file. diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.mocks.dart b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.mocks.dart index a85bce31e20..f00ad0a6e54 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.mocks.dart +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in google_maps_flutter_web_integration_tests/integration_test/google_maps_plugin_test.dart. // Do not manually edit this file. diff --git a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml index 26be9763f94..787e397e102 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/example/pubspec.yaml @@ -3,8 +3,8 @@ publish_to: none # Tests require flutter beta or greater to run. environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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_maps_flutter/google_maps_flutter_web/pubspec.yaml b/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml index ba9c7d34915..83f4971a268 100644 --- a/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml +++ b/packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.4.0+7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/google_sign_in/google_sign_in/CHANGELOG.md b/packages/google_sign_in/google_sign_in/CHANGELOG.md index 0723487fd90..d37374ac358 100644 --- a/packages/google_sign_in/google_sign_in/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 6.0.2 diff --git a/packages/google_sign_in/google_sign_in/example/pubspec.yaml b/packages/google_sign_in/google_sign_in/example/pubspec.yaml index ff09d94279c..f46a4df7eb8 100644 --- a/packages/google_sign_in/google_sign_in/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Example of Google Sign-In plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/google_sign_in/google_sign_in/pubspec.yaml b/packages/google_sign_in/google_sign_in/pubspec.yaml index d0b6b713101..3fcabdf0ffd 100644 --- a/packages/google_sign_in/google_sign_in/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.0.2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/test/google_sign_in_test.mocks.dart b/packages/google_sign_in/google_sign_in/test/google_sign_in_test.mocks.dart index 4e669628391..b27e3aef406 100644 --- a/packages/google_sign_in/google_sign_in/test/google_sign_in_test.mocks.dart +++ b/packages/google_sign_in/google_sign_in/test/google_sign_in_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.1.0 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in google_sign_in/test/google_sign_in_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i4; import 'package:google_sign_in_platform_interface/google_sign_in_platform_interface.dart' @@ -18,9 +19,18 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeGoogleSignInTokenData_0 extends _i1.Fake - implements _i2.GoogleSignInTokenData {} +class _FakeGoogleSignInTokenData_0 extends _i1.SmartFake + implements _i2.GoogleSignInTokenData { + _FakeGoogleSignInTokenData_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [GoogleSignInPlatform]. /// @@ -32,69 +42,127 @@ class MockGoogleSignInPlatform extends _i1.Mock } @override - bool get isMock => - (super.noSuchMethod(Invocation.getter(#isMock), returnValue: false) - as bool); + bool get isMock => (super.noSuchMethod( + Invocation.getter(#isMock), + returnValue: false, + ) as bool); @override - _i4.Future init( - {List? scopes = const [], - _i2.SignInOption? signInOption = _i2.SignInOption.standard, - String? hostedDomain, - String? clientId}) => + _i4.Future init({ + List? scopes = const [], + _i2.SignInOption? signInOption = _i2.SignInOption.standard, + String? hostedDomain, + String? clientId, + }) => (super.noSuchMethod( - Invocation.method(#init, [], { + Invocation.method( + #init, + [], + { #scopes: scopes, #signInOption: signInOption, #hostedDomain: hostedDomain, - #clientId: clientId - }), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + #clientId: clientId, + }, + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override _i4.Future initWithParams(_i2.SignInInitParameters? params) => - (super.noSuchMethod(Invocation.method(#initWithParams, [params]), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + (super.noSuchMethod( + Invocation.method( + #initWithParams, + [params], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i4.Future<_i2.GoogleSignInUserData?> signInSilently() => - (super.noSuchMethod(Invocation.method(#signInSilently, []), - returnValue: Future<_i2.GoogleSignInUserData?>.value()) - as _i4.Future<_i2.GoogleSignInUserData?>); + _i4.Future<_i2.GoogleSignInUserData?> signInSilently() => (super.noSuchMethod( + Invocation.method( + #signInSilently, + [], + ), + returnValue: _i4.Future<_i2.GoogleSignInUserData?>.value(), + ) as _i4.Future<_i2.GoogleSignInUserData?>); @override - _i4.Future<_i2.GoogleSignInUserData?> signIn() => - (super.noSuchMethod(Invocation.method(#signIn, []), - returnValue: Future<_i2.GoogleSignInUserData?>.value()) - as _i4.Future<_i2.GoogleSignInUserData?>); + _i4.Future<_i2.GoogleSignInUserData?> signIn() => (super.noSuchMethod( + Invocation.method( + #signIn, + [], + ), + returnValue: _i4.Future<_i2.GoogleSignInUserData?>.value(), + ) as _i4.Future<_i2.GoogleSignInUserData?>); @override - _i4.Future<_i2.GoogleSignInTokenData> getTokens( - {String? email, bool? shouldRecoverAuth}) => + _i4.Future<_i2.GoogleSignInTokenData> getTokens({ + required String? email, + bool? shouldRecoverAuth, + }) => (super.noSuchMethod( - Invocation.method(#getTokens, [], - {#email: email, #shouldRecoverAuth: shouldRecoverAuth}), - returnValue: Future<_i2.GoogleSignInTokenData>.value( - _FakeGoogleSignInTokenData_0())) - as _i4.Future<_i2.GoogleSignInTokenData>); + Invocation.method( + #getTokens, + [], + { + #email: email, + #shouldRecoverAuth: shouldRecoverAuth, + }, + ), + returnValue: _i4.Future<_i2.GoogleSignInTokenData>.value( + _FakeGoogleSignInTokenData_0( + this, + Invocation.method( + #getTokens, + [], + { + #email: email, + #shouldRecoverAuth: shouldRecoverAuth, + }, + ), + )), + ) as _i4.Future<_i2.GoogleSignInTokenData>); @override - _i4.Future signOut() => - (super.noSuchMethod(Invocation.method(#signOut, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + _i4.Future signOut() => (super.noSuchMethod( + Invocation.method( + #signOut, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i4.Future disconnect() => - (super.noSuchMethod(Invocation.method(#disconnect, []), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + _i4.Future disconnect() => (super.noSuchMethod( + Invocation.method( + #disconnect, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i4.Future isSignedIn() => - (super.noSuchMethod(Invocation.method(#isSignedIn, []), - returnValue: Future.value(false)) as _i4.Future); + _i4.Future isSignedIn() => (super.noSuchMethod( + Invocation.method( + #isSignedIn, + [], + ), + returnValue: _i4.Future.value(false), + ) as _i4.Future); @override - _i4.Future clearAuthCache({String? token}) => (super.noSuchMethod( - Invocation.method(#clearAuthCache, [], {#token: token}), - returnValue: Future.value(), - returnValueForMissingStub: Future.value()) as _i4.Future); + _i4.Future clearAuthCache({required String? token}) => + (super.noSuchMethod( + Invocation.method( + #clearAuthCache, + [], + {#token: token}, + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); @override - _i4.Future requestScopes(List? scopes) => - (super.noSuchMethod(Invocation.method(#requestScopes, [scopes]), - returnValue: Future.value(false)) as _i4.Future); + _i4.Future requestScopes(List? scopes) => (super.noSuchMethod( + Invocation.method( + #requestScopes, + [scopes], + ), + returnValue: _i4.Future.value(false), + ) as _i4.Future); } diff --git a/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md b/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md index 751bf5b65dc..c3a7366d193 100644 --- a/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 2.3.1 diff --git a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml index 0a3f49f4be8..17645aa9ad4 100644 --- a/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.3.1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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/CHANGELOG.md b/packages/google_sign_in/google_sign_in_web/CHANGELOG.md index 2d02e63eee3..f38290f14cb 100644 --- a/packages/google_sign_in/google_sign_in_web/CHANGELOG.md +++ b/packages/google_sign_in/google_sign_in_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.11.0+2 * Clarifies explanation of endorsement in README. diff --git a/packages/google_sign_in/google_sign_in_web/example/build.yaml b/packages/google_sign_in/google_sign_in_web/example/build.yaml index db3104bb04c..5a89bed84ef 100644 --- a/packages/google_sign_in/google_sign_in_web/example/build.yaml +++ b/packages/google_sign_in/google_sign_in_web/example/build.yaml @@ -4,3 +4,7 @@ targets: - integration_test/*.dart - lib/$lib$ - $package$ + builders: + mockito|mockBuilder: + generate_for: + - integration_test/** diff --git a/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.mocks.dart b/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.mocks.dart index b60dac9d4b9..1134576426e 100644 --- a/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.mocks.dart +++ b/packages/google_sign_in/google_sign_in_web/example/integration_test/google_sign_in_web_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in google_sign_in_web_integration_tests/integration_test/google_sign_in_web_test.dart. // Do not manually edit this file. diff --git a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml index bc6115509cc..daac8ca34ab 100644 --- a/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_web/example/pubspec.yaml @@ -2,8 +2,8 @@ name: google_sign_in_web_integration_tests publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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/google_sign_in/google_sign_in_web/pubspec.yaml b/packages/google_sign_in/google_sign_in_web/pubspec.yaml index 92066ffacce..745c4e42fbe 100644 --- a/packages/google_sign_in/google_sign_in_web/pubspec.yaml +++ b/packages/google_sign_in/google_sign_in_web/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.11.0+2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/image_picker/image_picker/CHANGELOG.md b/packages/image_picker/image_picker/CHANGELOG.md index 140efae1fb2..242a0b0b708 100644 --- a/packages/image_picker/image_picker/CHANGELOG.md +++ b/packages/image_picker/image_picker/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.8.7+1 * Updates README to use code excerpts. diff --git a/packages/image_picker/image_picker/example/pubspec.yaml b/packages/image_picker/image_picker/example/pubspec.yaml index 462e582188c..6b38b56bbed 100644 --- a/packages/image_picker/image_picker/example/pubspec.yaml +++ b/packages/image_picker/image_picker/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/image_picker/image_picker/pubspec.yaml b/packages/image_picker/image_picker/pubspec.yaml index 800738b9c51..168adcbda3a 100755 --- a/packages/image_picker/image_picker/pubspec.yaml +++ b/packages/image_picker/image_picker/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.8.7+1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/test/image_picker_test.dart b/packages/image_picker/image_picker/test/image_picker_test.dart index 2d959bd20f7..637ecf9c6e7 100644 --- a/packages/image_picker/image_picker/test/image_picker_test.dart +++ b/packages/image_picker/image_picker/test/image_picker_test.dart @@ -13,16 +13,17 @@ import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'image_picker_test.mocks.dart' as base_mock; // Add the mixin to make the platform interface accept the mock. -class MockImagePickerPlatform extends base_mock.MockImagePickerPlatform +class _MockImagePickerPlatform extends base_mock.MockImagePickerPlatform with MockPlatformInterfaceMixin {} -@GenerateMocks([ImagePickerPlatform]) +@GenerateMocks([], + customMocks: >[MockSpec()]) void main() { group('ImagePicker', () { - late MockImagePickerPlatform mockPlatform; + late _MockImagePickerPlatform mockPlatform; setUp(() { - mockPlatform = MockImagePickerPlatform(); + mockPlatform = _MockImagePickerPlatform(); ImagePickerPlatform.instance = mockPlatform; }); diff --git a/packages/image_picker/image_picker/test/image_picker_test.mocks.dart b/packages/image_picker/image_picker/test/image_picker_test.mocks.dart index f749b538665..d1e19830e91 100644 --- a/packages/image_picker/image_picker/test/image_picker_test.mocks.dart +++ b/packages/image_picker/image_picker/test/image_picker_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 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; @@ -19,11 +20,28 @@ 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 _FakeLostData_0 extends _i1.SmartFake implements _i2.LostData { + _FakeLostData_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeLostData_0 extends _i1.Fake implements _i2.LostData {} - -class _FakeLostDataResponse_1 extends _i1.Fake - implements _i2.LostDataResponse {} +class _FakeLostDataResponse_1 extends _i1.SmartFake + implements _i2.LostDataResponse { + _FakeLostDataResponse_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [ImagePickerPlatform]. /// @@ -35,120 +53,176 @@ class MockImagePickerPlatform extends _i1.Mock } @override - _i4.Future<_i2.PickedFile?> pickImage( - {_i2.ImageSource? source, - double? maxWidth, - double? maxHeight, - int? imageQuality, - _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear}) => + _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: Future<_i2.PickedFile?>.value()) - as _i4.Future<_i2.PickedFile?>); - + 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}) => + _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?>); - + Invocation.method( + #pickMultiImage, + [], + { + #maxWidth: maxWidth, + #maxHeight: maxHeight, + #imageQuality: imageQuality, + }, + ), + returnValue: _i4.Future?>.value(), + ) as _i4.Future?>); @override - _i4.Future<_i2.PickedFile?> pickVideo( - {_i2.ImageSource? source, - _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear, - Duration? maxDuration}) => + _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: Future<_i2.PickedFile?>.value()) - as _i4.Future<_i2.PickedFile?>); - + 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: Future<_i2.LostData>.value(_FakeLostData_0())) - as _i4.Future<_i2.LostData>); - + _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( - {_i2.ImageSource? source, - double? maxWidth, - double? maxHeight, - int? imageQuality, - _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear}) => + _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, [], { + Invocation.method( + #getImage, + [], + { #source: source, #maxWidth: maxWidth, #maxHeight: maxHeight, #imageQuality: imageQuality, - #preferredCameraDevice: preferredCameraDevice - }), - returnValue: Future<_i5.XFile?>.value()) as _i4.Future<_i5.XFile?>); - + #preferredCameraDevice: preferredCameraDevice, + }, + ), + returnValue: _i4.Future<_i5.XFile?>.value(), + ) as _i4.Future<_i5.XFile?>); @override - _i4.Future?> getMultiImage( - {double? maxWidth, double? maxHeight, int? imageQuality}) => + _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?>); - + Invocation.method( + #getMultiImage, + [], + { + #maxWidth: maxWidth, + #maxHeight: maxHeight, + #imageQuality: imageQuality, + }, + ), + returnValue: _i4.Future?>.value(), + ) as _i4.Future?>); @override - _i4.Future<_i5.XFile?> getVideo( - {_i2.ImageSource? source, - _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear, - Duration? maxDuration}) => + _i4.Future<_i5.XFile?> getVideo({ + required _i2.ImageSource? source, + _i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear, + Duration? maxDuration, + }) => (super.noSuchMethod( - Invocation.method(#getVideo, [], { + Invocation.method( + #getVideo, + [], + { #source: source, #preferredCameraDevice: preferredCameraDevice, - #maxDuration: maxDuration - }), - returnValue: Future<_i5.XFile?>.value()) as _i4.Future<_i5.XFile?>); - + #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: - Future<_i2.LostDataResponse>.value(_FakeLostDataResponse_1())) - as _i4.Future<_i2.LostDataResponse>); - + _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( - {_i2.ImageSource? source, - _i2.ImagePickerOptions? options = const _i2.ImagePickerOptions()}) => + _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: Future<_i5.XFile?>.value()) as _i4.Future<_i5.XFile?>); - + 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: - Future>.value(<_i5.XFile>[])) as _i4 - .Future>); + Invocation.method( + #getMultiImageWithOptions, + [], + {#options: options}, + ), + returnValue: _i4.Future>.value(<_i5.XFile>[]), + ) as _i4.Future>); } diff --git a/packages/image_picker/image_picker_android/CHANGELOG.md b/packages/image_picker/image_picker_android/CHANGELOG.md index 8e5fd29e456..629497f7596 100644 --- a/packages/image_picker/image_picker_android/CHANGELOG.md +++ b/packages/image_picker/image_picker_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.8.6+6 * Bumps androidx.core:core from 1.8.0 to 1.9.0. diff --git a/packages/image_picker/image_picker_android/example/pubspec.yaml b/packages/image_picker/image_picker_android/example/pubspec.yaml index d7fc2ea09ba..8921a37a67e 100644 --- a/packages/image_picker/image_picker_android/example/pubspec.yaml +++ b/packages/image_picker/image_picker_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/image_picker/image_picker_android/pubspec.yaml b/packages/image_picker/image_picker_android/pubspec.yaml index 2a6ff2095b6..6c1c593f481 100755 --- a/packages/image_picker/image_picker_android/pubspec.yaml +++ b/packages/image_picker/image_picker_android/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.8.6+6 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/CHANGELOG.md b/packages/image_picker/image_picker_ios/CHANGELOG.md index 8d9147a9f06..b47de945309 100644 --- a/packages/image_picker/image_picker_ios/CHANGELOG.md +++ b/packages/image_picker/image_picker_ios/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.8.7+2 * Updates to `pigeon` version 9. diff --git a/packages/image_picker/image_picker_ios/example/pubspec.yaml b/packages/image_picker/image_picker_ios/example/pubspec.yaml index 3715b36fd12..d0bca043d1e 100755 --- a/packages/image_picker/image_picker_ios/example/pubspec.yaml +++ b/packages/image_picker/image_picker_ios/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/image_picker/image_picker_ios/pubspec.yaml b/packages/image_picker/image_picker_ios/pubspec.yaml index 6433da812d6..3a06f8add76 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: ^9.1.0 diff --git a/packages/image_picker/image_picker_windows/CHANGELOG.md b/packages/image_picker/image_picker_windows/CHANGELOG.md index b428a85d444..9c6267cbc0c 100644 --- a/packages/image_picker/image_picker_windows/CHANGELOG.md +++ b/packages/image_picker/image_picker_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.1.0+6 * Clarifies explanation of endorsement in README. diff --git a/packages/image_picker/image_picker_windows/example/pubspec.yaml b/packages/image_picker/image_picker_windows/example/pubspec.yaml index b9f33efc98a..3f13f771185 100644 --- a/packages/image_picker/image_picker_windows/example/pubspec.yaml +++ b/packages/image_picker/image_picker_windows/example/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/image_picker/image_picker_windows/pubspec.yaml b/packages/image_picker/image_picker_windows/pubspec.yaml index 8611fc28568..bcd8be0719c 100644 --- a/packages/image_picker/image_picker_windows/pubspec.yaml +++ b/packages/image_picker/image_picker_windows/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.1.0+6 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/image_picker/image_picker_windows/test/image_picker_windows_test.mocks.dart b/packages/image_picker/image_picker_windows/test/image_picker_windows_test.mocks.dart index be2dd2ac576..32fb38026c1 100644 --- a/packages/image_picker/image_picker_windows/test/image_picker_windows_test.mocks.dart +++ b/packages/image_picker/image_picker_windows/test/image_picker_windows_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.1.0 from annotations -// in image_picker_windows/example/windows/flutter/ephemeral/.plugin_symlinks/image_picker_windows/test/image_picker_windows_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in image_picker_windows/test/image_picker_windows_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'package:file_selector_platform_interface/file_selector_platform_interface.dart' @@ -17,6 +18,7 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [FileSelectorPlatform]. /// @@ -28,51 +30,91 @@ class MockFileSelectorPlatform extends _i1.Mock } @override - _i3.Future<_i2.XFile?> openFile( - {List<_i2.XTypeGroup>? acceptedTypeGroups, - String? initialDirectory, - String? confirmButtonText}) => + _i3.Future<_i2.XFile?> openFile({ + List<_i2.XTypeGroup>? acceptedTypeGroups, + String? initialDirectory, + String? confirmButtonText, + }) => (super.noSuchMethod( - Invocation.method(#openFile, [], { + Invocation.method( + #openFile, + [], + { #acceptedTypeGroups: acceptedTypeGroups, #initialDirectory: initialDirectory, - #confirmButtonText: confirmButtonText - }), - returnValue: Future<_i2.XFile?>.value()) as _i3.Future<_i2.XFile?>); + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future<_i2.XFile?>.value(), + ) as _i3.Future<_i2.XFile?>); @override - _i3.Future> openFiles( - {List<_i2.XTypeGroup>? acceptedTypeGroups, - String? initialDirectory, - String? confirmButtonText}) => + _i3.Future> openFiles({ + List<_i2.XTypeGroup>? acceptedTypeGroups, + String? initialDirectory, + String? confirmButtonText, + }) => (super.noSuchMethod( - Invocation.method(#openFiles, [], { - #acceptedTypeGroups: acceptedTypeGroups, - #initialDirectory: initialDirectory, - #confirmButtonText: confirmButtonText - }), - returnValue: Future>.value(<_i2.XFile>[])) - as _i3.Future>); + Invocation.method( + #openFiles, + [], + { + #acceptedTypeGroups: acceptedTypeGroups, + #initialDirectory: initialDirectory, + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future>.value(<_i2.XFile>[]), + ) as _i3.Future>); @override - _i3.Future getSavePath( - {List<_i2.XTypeGroup>? acceptedTypeGroups, - String? initialDirectory, - String? suggestedName, - String? confirmButtonText}) => + _i3.Future getSavePath({ + List<_i2.XTypeGroup>? acceptedTypeGroups, + String? initialDirectory, + String? suggestedName, + String? confirmButtonText, + }) => (super.noSuchMethod( - Invocation.method(#getSavePath, [], { + Invocation.method( + #getSavePath, + [], + { #acceptedTypeGroups: acceptedTypeGroups, #initialDirectory: initialDirectory, #suggestedName: suggestedName, - #confirmButtonText: confirmButtonText - }), - returnValue: Future.value()) as _i3.Future); + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future.value(), + ) as _i3.Future); + @override + _i3.Future getDirectoryPath({ + String? initialDirectory, + String? confirmButtonText, + }) => + (super.noSuchMethod( + Invocation.method( + #getDirectoryPath, + [], + { + #initialDirectory: initialDirectory, + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future.value(), + ) as _i3.Future); @override - _i3.Future getDirectoryPath( - {String? initialDirectory, String? confirmButtonText}) => + _i3.Future> getDirectoryPaths({ + String? initialDirectory, + String? confirmButtonText, + }) => (super.noSuchMethod( - Invocation.method(#getDirectoryPath, [], { + Invocation.method( + #getDirectoryPaths, + [], + { #initialDirectory: initialDirectory, - #confirmButtonText: confirmButtonText - }), - returnValue: Future.value()) as _i3.Future); + #confirmButtonText: confirmButtonText, + }, + ), + returnValue: _i3.Future>.value([]), + ) as _i3.Future>); } diff --git a/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md index 6b63b1c7ce5..f87c7e9bad9 100644 --- a/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 0.2.4+3 * Clarifies explanation of endorsement in README. diff --git a/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml index b04b5719a1c..a2b59a3265b 100644 --- a/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the in_app_purchase_android plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml index acfe0fb638f..1acaba34638 100644 --- a/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_android/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.2.4+3 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/CHANGELOG.md b/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md index 341218cd99d..c639d58ad2a 100644 --- a/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md +++ b/packages/in_app_purchase/in_app_purchase_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 1.3.3 diff --git a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml index e3670640ec2..868f7587b75 100644 --- a/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml +++ b/packages/in_app_purchase/in_app_purchase_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.3.3 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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/CHANGELOG.md b/packages/local_auth/local_auth/CHANGELOG.md index 584daa88a16..b542eda207a 100644 --- a/packages/local_auth/local_auth/CHANGELOG.md +++ b/packages/local_auth/local_auth/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 2.1.6 diff --git a/packages/local_auth/local_auth/example/pubspec.yaml b/packages/local_auth/local_auth/example/pubspec.yaml index 0cbd4f82b8e..53c5b88dbc0 100644 --- a/packages/local_auth/local_auth/example/pubspec.yaml +++ b/packages/local_auth/local_auth/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the local_auth plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/local_auth/local_auth/pubspec.yaml b/packages/local_auth/local_auth/pubspec.yaml index f6cd3781f31..a6cbe4aa6e3 100644 --- a/packages/local_auth/local_auth/pubspec.yaml +++ b/packages/local_auth/local_auth/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.6 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/CHANGELOG.md b/packages/local_auth/local_auth_platform_interface/CHANGELOG.md index 201ffb11674..815e843266e 100644 --- a/packages/local_auth/local_auth_platform_interface/CHANGELOG.md +++ b/packages/local_auth/local_auth_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 1.0.7 diff --git a/packages/local_auth/local_auth_platform_interface/pubspec.yaml b/packages/local_auth/local_auth_platform_interface/pubspec.yaml index bbb5a6ccaa1..72617045744 100644 --- a/packages/local_auth/local_auth_platform_interface/pubspec.yaml +++ b/packages/local_auth/local_auth_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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/CHANGELOG.md b/packages/metrics_center/CHANGELOG.md index 80bf962ff9f..ca2168267ab 100644 --- a/packages/metrics_center/CHANGELOG.md +++ b/packages/metrics_center/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 1.0.7 * Updates code to fix strict-cast violations. diff --git a/packages/metrics_center/pubspec.yaml b/packages/metrics_center/pubspec.yaml index cbe63491ab3..289810749ce 100644 --- a/packages/metrics_center/pubspec.yaml +++ b/packages/metrics_center/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/metrics_cente issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+metrics_center%22 environment: - sdk: ">=2.17.0 <4.0.0" + sdk: ">=2.18.0 <4.0.0" dependencies: crypto: ^3.0.1 @@ -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/metrics_center/test/gcs_lock_test.mocks.dart b/packages/metrics_center/test/gcs_lock_test.mocks.dart index 7f86e40d215..93ff8e1f182 100644 --- a/packages/metrics_center/test/gcs_lock_test.mocks.dart +++ b/packages/metrics_center/test/gcs_lock_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.14 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in metrics_center/test/gcs_lock_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i5; import 'dart:convert' as _i6; import 'dart:typed_data' as _i7; @@ -11,24 +12,48 @@ import 'package:googleapis_auth/src/auth_client.dart' as _i4; import 'package:http/http.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; -// ignore_for_file: always_specify_types +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters -// ignore_for_file: camel_case_types // ignore_for_file: comment_references // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors -// ignore_for_file: unnecessary_overrides // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeAccessCredentials_0 extends _i1.Fake - implements _i2.AccessCredentials {} +class _FakeAccessCredentials_0 extends _i1.SmartFake + implements _i2.AccessCredentials { + _FakeAccessCredentials_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeResponse_1 extends _i1.Fake implements _i3.Response {} +class _FakeResponse_1 extends _i1.SmartFake implements _i3.Response { + _FakeResponse_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeStreamedResponse_2 extends _i1.Fake - implements _i3.StreamedResponse {} +class _FakeStreamedResponse_2 extends _i1.SmartFake + implements _i3.StreamedResponse { + _FakeStreamedResponse_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [AuthClient]. /// @@ -39,79 +64,221 @@ class MockAuthClient extends _i1.Mock implements _i4.AuthClient { } @override - _i2.AccessCredentials get credentials => - (super.noSuchMethod(Invocation.getter(#credentials), - returnValue: _FakeAccessCredentials_0()) as _i2.AccessCredentials); + _i2.AccessCredentials get credentials => (super.noSuchMethod( + Invocation.getter(#credentials), + returnValue: _FakeAccessCredentials_0( + this, + Invocation.getter(#credentials), + ), + ) as _i2.AccessCredentials); @override - String toString() => super.toString(); - @override - _i5.Future<_i3.Response> head(Uri? url, {Map? headers}) => - (super.noSuchMethod(Invocation.method(#head, [url], {#headers: headers}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + _i5.Future<_i3.Response> head( + Uri? url, { + Map? headers, + }) => + (super.noSuchMethod( + Invocation.method( + #head, + [url], + {#headers: headers}, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #head, + [url], + {#headers: headers}, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> get(Uri? url, {Map? headers}) => - (super.noSuchMethod(Invocation.method(#get, [url], {#headers: headers}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + _i5.Future<_i3.Response> get( + Uri? url, { + Map? headers, + }) => + (super.noSuchMethod( + Invocation.method( + #get, + [url], + {#headers: headers}, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #get, + [url], + {#headers: headers}, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> post(Uri? url, - {Map? headers, - Object? body, - _i6.Encoding? encoding}) => + _i5.Future<_i3.Response> post( + Uri? url, { + Map? headers, + Object? body, + _i6.Encoding? encoding, + }) => (super.noSuchMethod( - Invocation.method(#post, [url], - {#headers: headers, #body: body, #encoding: encoding}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + Invocation.method( + #post, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #post, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> put(Uri? url, - {Map? headers, - Object? body, - _i6.Encoding? encoding}) => + _i5.Future<_i3.Response> put( + Uri? url, { + Map? headers, + Object? body, + _i6.Encoding? encoding, + }) => (super.noSuchMethod( - Invocation.method(#put, [url], - {#headers: headers, #body: body, #encoding: encoding}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + Invocation.method( + #put, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #put, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> patch(Uri? url, - {Map? headers, - Object? body, - _i6.Encoding? encoding}) => + _i5.Future<_i3.Response> patch( + Uri? url, { + Map? headers, + Object? body, + _i6.Encoding? encoding, + }) => (super.noSuchMethod( - Invocation.method(#patch, [url], - {#headers: headers, #body: body, #encoding: encoding}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + Invocation.method( + #patch, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #patch, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future<_i3.Response> delete(Uri? url, - {Map? headers, - Object? body, - _i6.Encoding? encoding}) => + _i5.Future<_i3.Response> delete( + Uri? url, { + Map? headers, + Object? body, + _i6.Encoding? encoding, + }) => (super.noSuchMethod( - Invocation.method(#delete, [url], - {#headers: headers, #body: body, #encoding: encoding}), - returnValue: Future<_i3.Response>.value(_FakeResponse_1())) - as _i5.Future<_i3.Response>); + Invocation.method( + #delete, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1( + this, + Invocation.method( + #delete, + [url], + { + #headers: headers, + #body: body, + #encoding: encoding, + }, + ), + )), + ) as _i5.Future<_i3.Response>); @override - _i5.Future read(Uri? url, {Map? headers}) => - (super.noSuchMethod(Invocation.method(#read, [url], {#headers: headers}), - returnValue: Future.value('')) as _i5.Future); + _i5.Future read( + Uri? url, { + Map? headers, + }) => + (super.noSuchMethod( + Invocation.method( + #read, + [url], + {#headers: headers}, + ), + returnValue: _i5.Future.value(''), + ) as _i5.Future); @override - _i5.Future<_i7.Uint8List> readBytes(Uri? url, - {Map? headers}) => + _i5.Future<_i7.Uint8List> readBytes( + Uri? url, { + Map? headers, + }) => (super.noSuchMethod( - Invocation.method(#readBytes, [url], {#headers: headers}), - returnValue: Future<_i7.Uint8List>.value(_i7.Uint8List(0))) - as _i5.Future<_i7.Uint8List>); + Invocation.method( + #readBytes, + [url], + {#headers: headers}, + ), + returnValue: _i5.Future<_i7.Uint8List>.value(_i7.Uint8List(0)), + ) as _i5.Future<_i7.Uint8List>); @override _i5.Future<_i3.StreamedResponse> send(_i3.BaseRequest? request) => - (super.noSuchMethod(Invocation.method(#send, [request]), - returnValue: - Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2())) - as _i5.Future<_i3.StreamedResponse>); + (super.noSuchMethod( + Invocation.method( + #send, + [request], + ), + returnValue: + _i5.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2( + this, + Invocation.method( + #send, + [request], + ), + )), + ) as _i5.Future<_i3.StreamedResponse>); @override - void close() => super.noSuchMethod(Invocation.method(#close, []), - returnValueForMissingStub: null); + void close() => super.noSuchMethod( + Invocation.method( + #close, + [], + ), + returnValueForMissingStub: null, + ); } diff --git a/packages/metrics_center/test/skiaperf_test.mocks.dart b/packages/metrics_center/test/skiaperf_test.mocks.dart index edb47277346..98757656c36 100644 --- a/packages/metrics_center/test/skiaperf_test.mocks.dart +++ b/packages/metrics_center/test/skiaperf_test.mocks.dart @@ -1,38 +1,96 @@ -// Mocks generated by Mockito 5.0.14 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in metrics_center/test/skiaperf_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i2; import 'package:gcloud/common.dart' as _i4; import 'package:gcloud/storage.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; -// ignore_for_file: always_specify_types +// ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters -// ignore_for_file: camel_case_types // ignore_for_file: comment_references // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors -// ignore_for_file: unnecessary_overrides // ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class -class _FakeStreamSink_0 extends _i1.Fake implements _i2.StreamSink {} +class _FakeStreamSink_0 extends _i1.SmartFake implements _i2.StreamSink { + _FakeStreamSink_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeObjectInfo_1 extends _i1.Fake implements _i3.ObjectInfo {} +class _FakeObjectInfo_1 extends _i1.SmartFake implements _i3.ObjectInfo { + _FakeObjectInfo_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakePage_2 extends _i1.Fake implements _i4.Page {} +class _FakePage_2 extends _i1.SmartFake implements _i4.Page { + _FakePage_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeDateTime_3 extends _i1.Fake implements DateTime {} +class _FakeDateTime_3 extends _i1.SmartFake implements DateTime { + _FakeDateTime_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeUri_4 extends _i1.Fake implements Uri {} +class _FakeUri_4 extends _i1.SmartFake implements Uri { + _FakeUri_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeObjectGeneration_5 extends _i1.Fake - implements _i3.ObjectGeneration {} +class _FakeObjectGeneration_5 extends _i1.SmartFake + implements _i3.ObjectGeneration { + _FakeObjectGeneration_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} -class _FakeObjectMetadata_6 extends _i1.Fake implements _i3.ObjectMetadata {} +class _FakeObjectMetadata_6 extends _i1.SmartFake + implements _i3.ObjectMetadata { + _FakeObjectMetadata_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} /// A class which mocks [Bucket]. /// @@ -43,92 +101,194 @@ class MockBucket extends _i1.Mock implements _i3.Bucket { } @override - String get bucketName => - (super.noSuchMethod(Invocation.getter(#bucketName), returnValue: '') - as String); + String get bucketName => (super.noSuchMethod( + Invocation.getter(#bucketName), + returnValue: '', + ) as String); @override - String absoluteObjectName(String? objectName) => - (super.noSuchMethod(Invocation.method(#absoluteObjectName, [objectName]), - returnValue: '') as String); + String absoluteObjectName(String? objectName) => (super.noSuchMethod( + Invocation.method( + #absoluteObjectName, + [objectName], + ), + returnValue: '', + ) as String); @override - _i2.StreamSink> write(String? objectName, - {int? length, - _i3.ObjectMetadata? metadata, - _i3.Acl? acl, - _i3.PredefinedAcl? predefinedAcl, - String? contentType}) => + _i2.StreamSink> write( + String? objectName, { + int? length, + _i3.ObjectMetadata? metadata, + _i3.Acl? acl, + _i3.PredefinedAcl? predefinedAcl, + String? contentType, + }) => (super.noSuchMethod( - Invocation.method(#write, [ - objectName - ], { - #length: length, - #metadata: metadata, - #acl: acl, - #predefinedAcl: predefinedAcl, - #contentType: contentType - }), - returnValue: _FakeStreamSink_0>()) - as _i2.StreamSink>); - @override - _i2.Future<_i3.ObjectInfo> writeBytes(String? name, List? bytes, - {_i3.ObjectMetadata? metadata, - _i3.Acl? acl, - _i3.PredefinedAcl? predefinedAcl, - String? contentType}) => - (super.noSuchMethod( - Invocation.method(#writeBytes, [ - name, - bytes - ], { - #metadata: metadata, - #acl: acl, - #predefinedAcl: predefinedAcl, - #contentType: contentType - }), - returnValue: Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1())) - as _i2.Future<_i3.ObjectInfo>); - @override - _i2.Stream> read(String? objectName, {int? offset, int? length}) => + Invocation.method( + #write, + [objectName], + { + #length: length, + #metadata: metadata, + #acl: acl, + #predefinedAcl: predefinedAcl, + #contentType: contentType, + }, + ), + returnValue: _FakeStreamSink_0>( + this, + Invocation.method( + #write, + [objectName], + { + #length: length, + #metadata: metadata, + #acl: acl, + #predefinedAcl: predefinedAcl, + #contentType: contentType, + }, + ), + ), + ) as _i2.StreamSink>); + @override + _i2.Future<_i3.ObjectInfo> writeBytes( + String? name, + List? bytes, { + _i3.ObjectMetadata? metadata, + _i3.Acl? acl, + _i3.PredefinedAcl? predefinedAcl, + String? contentType, + }) => (super.noSuchMethod( + Invocation.method( + #writeBytes, + [ + name, + bytes, + ], + { + #metadata: metadata, + #acl: acl, + #predefinedAcl: predefinedAcl, + #contentType: contentType, + }, + ), + returnValue: _i2.Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1( + this, Invocation.method( - #read, [objectName], {#offset: offset, #length: length}), - returnValue: Stream>.empty()) as _i2.Stream>); + #writeBytes, + [ + name, + bytes, + ], + { + #metadata: metadata, + #acl: acl, + #predefinedAcl: predefinedAcl, + #contentType: contentType, + }, + ), + )), + ) as _i2.Future<_i3.ObjectInfo>); + @override + _i2.Stream> read( + String? objectName, { + int? offset, + int? length, + }) => + (super.noSuchMethod( + Invocation.method( + #read, + [objectName], + { + #offset: offset, + #length: length, + }, + ), + returnValue: _i2.Stream>.empty(), + ) as _i2.Stream>); @override - _i2.Future<_i3.ObjectInfo> info(String? name) => - (super.noSuchMethod(Invocation.method(#info, [name]), - returnValue: Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1())) - as _i2.Future<_i3.ObjectInfo>); + _i2.Future<_i3.ObjectInfo> info(String? name) => (super.noSuchMethod( + Invocation.method( + #info, + [name], + ), + returnValue: _i2.Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1( + this, + Invocation.method( + #info, + [name], + ), + )), + ) as _i2.Future<_i3.ObjectInfo>); @override - _i2.Future delete(String? name) => - (super.noSuchMethod(Invocation.method(#delete, [name]), - returnValue: Future.value()) as _i2.Future); + _i2.Future delete(String? name) => (super.noSuchMethod( + Invocation.method( + #delete, + [name], + ), + returnValue: _i2.Future.value(), + ) as _i2.Future); @override _i2.Future updateMetadata( - String? objectName, _i3.ObjectMetadata? metadata) => + String? objectName, + _i3.ObjectMetadata? metadata, + ) => (super.noSuchMethod( - Invocation.method(#updateMetadata, [objectName, metadata]), - returnValue: Future.value()) as _i2.Future); + Invocation.method( + #updateMetadata, + [ + objectName, + metadata, + ], + ), + returnValue: _i2.Future.value(), + ) as _i2.Future); @override - _i2.Stream<_i3.BucketEntry> list({String? prefix, String? delimiter}) => + _i2.Stream<_i3.BucketEntry> list({ + String? prefix, + String? delimiter, + }) => (super.noSuchMethod( - Invocation.method( - #list, [], {#prefix: prefix, #delimiter: delimiter}), - returnValue: Stream<_i3.BucketEntry>.empty()) - as _i2.Stream<_i3.BucketEntry>); + Invocation.method( + #list, + [], + { + #prefix: prefix, + #delimiter: delimiter, + }, + ), + returnValue: _i2.Stream<_i3.BucketEntry>.empty(), + ) as _i2.Stream<_i3.BucketEntry>); @override - _i2.Future<_i4.Page<_i3.BucketEntry>> page( - {String? prefix, String? delimiter, int? pageSize = 50}) => + _i2.Future<_i4.Page<_i3.BucketEntry>> page({ + String? prefix, + String? delimiter, + int? pageSize = 50, + }) => (super.noSuchMethod( - Invocation.method(#page, [], { - #prefix: prefix, - #delimiter: delimiter, - #pageSize: pageSize - }), - returnValue: Future<_i4.Page<_i3.BucketEntry>>.value( - _FakePage_2<_i3.BucketEntry>())) - as _i2.Future<_i4.Page<_i3.BucketEntry>>); - @override - String toString() => super.toString(); + Invocation.method( + #page, + [], + { + #prefix: prefix, + #delimiter: delimiter, + #pageSize: pageSize, + }, + ), + returnValue: _i2.Future<_i4.Page<_i3.BucketEntry>>.value( + _FakePage_2<_i3.BucketEntry>( + this, + Invocation.method( + #page, + [], + { + #prefix: prefix, + #delimiter: delimiter, + #pageSize: pageSize, + }, + ), + )), + ) as _i2.Future<_i4.Page<_i3.BucketEntry>>); } /// A class which mocks [ObjectInfo]. @@ -140,36 +300,60 @@ class MockObjectInfo extends _i1.Mock implements _i3.ObjectInfo { } @override - String get name => - (super.noSuchMethod(Invocation.getter(#name), returnValue: '') as String); - @override - int get length => - (super.noSuchMethod(Invocation.getter(#length), returnValue: 0) as int); + String get name => (super.noSuchMethod( + Invocation.getter(#name), + returnValue: '', + ) as String); @override - DateTime get updated => (super.noSuchMethod(Invocation.getter(#updated), - returnValue: _FakeDateTime_3()) as DateTime); + int get length => (super.noSuchMethod( + Invocation.getter(#length), + returnValue: 0, + ) as int); @override - String get etag => - (super.noSuchMethod(Invocation.getter(#etag), returnValue: '') as String); + DateTime get updated => (super.noSuchMethod( + Invocation.getter(#updated), + returnValue: _FakeDateTime_3( + this, + Invocation.getter(#updated), + ), + ) as DateTime); @override - List get md5Hash => - (super.noSuchMethod(Invocation.getter(#md5Hash), returnValue: []) - as List); + String get etag => (super.noSuchMethod( + Invocation.getter(#etag), + returnValue: '', + ) as String); @override - int get crc32CChecksum => - (super.noSuchMethod(Invocation.getter(#crc32CChecksum), returnValue: 0) - as int); + List get md5Hash => (super.noSuchMethod( + Invocation.getter(#md5Hash), + returnValue: [], + ) as List); @override - Uri get downloadLink => (super.noSuchMethod(Invocation.getter(#downloadLink), - returnValue: _FakeUri_4()) as Uri); + int get crc32CChecksum => (super.noSuchMethod( + Invocation.getter(#crc32CChecksum), + returnValue: 0, + ) as int); @override - _i3.ObjectGeneration get generation => - (super.noSuchMethod(Invocation.getter(#generation), - returnValue: _FakeObjectGeneration_5()) as _i3.ObjectGeneration); + Uri get downloadLink => (super.noSuchMethod( + Invocation.getter(#downloadLink), + returnValue: _FakeUri_4( + this, + Invocation.getter(#downloadLink), + ), + ) as Uri); @override - _i3.ObjectMetadata get metadata => - (super.noSuchMethod(Invocation.getter(#metadata), - returnValue: _FakeObjectMetadata_6()) as _i3.ObjectMetadata); + _i3.ObjectGeneration get generation => (super.noSuchMethod( + Invocation.getter(#generation), + returnValue: _FakeObjectGeneration_5( + this, + Invocation.getter(#generation), + ), + ) as _i3.ObjectGeneration); @override - String toString() => super.toString(); + _i3.ObjectMetadata get metadata => (super.noSuchMethod( + Invocation.getter(#metadata), + returnValue: _FakeObjectMetadata_6( + this, + Invocation.getter(#metadata), + ), + ) as _i3.ObjectMetadata); } diff --git a/packages/path_provider/path_provider_foundation/CHANGELOG.md b/packages/path_provider/path_provider_foundation/CHANGELOG.md index 7849e7e07c4..0dfe9724ede 100644 --- a/packages/path_provider/path_provider_foundation/CHANGELOG.md +++ b/packages/path_provider/path_provider_foundation/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.2.1 * Updates to `pigeon` version 9. diff --git a/packages/path_provider/path_provider_foundation/example/pubspec.yaml b/packages/path_provider/path_provider_foundation/example/pubspec.yaml index 44bf05a27bf..64caf32a15c 100644 --- a/packages/path_provider/path_provider_foundation/example/pubspec.yaml +++ b/packages/path_provider/path_provider_foundation/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the path_provider plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/path_provider/path_provider_foundation/pubspec.yaml b/packages/path_provider/path_provider_foundation/pubspec.yaml index def22afc37b..89e0a123cfe 100644 --- a/packages/path_provider/path_provider_foundation/pubspec.yaml +++ b/packages/path_provider/path_provider_foundation/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.2.1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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: ^9.1.0 diff --git a/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.mocks.dart b/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.mocks.dart index 62db996799e..3a6b0f19b1c 100644 --- a/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.mocks.dart +++ b/packages/path_provider/path_provider_foundation/test/path_provider_foundation_test.mocks.dart @@ -1,5 +1,5 @@ -// Mocks generated by Mockito 5.3.2 from annotations -// in path_provider_foundation/example/ios/.symlinks/plugins/path_provider_foundation/test/path_provider_foundation_test.dart. +// Mocks generated by Mockito 5.4.0 from annotations +// in path_provider_foundation/test/path_provider_foundation_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index 6cd48945215..5f6bf7d956a 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -1,6 +1,7 @@ ## 9.1.2 * [cpp] Fixes class parameters to Flutter APIs. +* Updates minimum Flutter version to 3.3. ## 9.1.1 diff --git a/packages/pigeon/mock_handler_tester/pubspec.yaml b/packages/pigeon/mock_handler_tester/pubspec.yaml index 010ce2c3f2e..69eba8468ab 100644 --- a/packages/pigeon/mock_handler_tester/pubspec.yaml +++ b/packages/pigeon/mock_handler_tester/pubspec.yaml @@ -4,8 +4,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: cupertino_icons: ^1.0.2 diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml index 022b194858a..120409897f2 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/pubspec.yaml @@ -3,8 +3,8 @@ description: Unit test scaffold for null safe Flutter projects. publish_to: none # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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/pigeon/platform_tests/flutter_null_safe_unit_tests/test/all_datatypes_test.mocks.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/all_datatypes_test.mocks.dart deleted file mode 100644 index 1a5de52fbb0..00000000000 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/all_datatypes_test.mocks.dart +++ /dev/null @@ -1,42 +0,0 @@ -// Mocks generated by Mockito 5.0.7 from annotations -// in flutter_unit_tests/test/all_datatypes_test.dart. -// Do not manually edit this file. - -import 'dart:async' as _i3; -import 'dart:typed_data' as _i4; -import 'dart:ui' as _i5; - -import 'package:flutter/src/services/binary_messenger.dart' as _i2; -import 'package:mockito/mockito.dart' as _i1; - -// ignore_for_file: comment_references -// ignore_for_file: unnecessary_parenthesis - -// ignore_for_file: prefer_const_constructors - -// ignore_for_file: avoid_redundant_argument_values - -/// A class which mocks [BinaryMessenger]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger { - MockBinaryMessenger() { - _i1.throwOnMissingStub(this); - } - - @override - _i3.Future handlePlatformMessage(String? channel, _i4.ByteData? data, - _i5.PlatformMessageResponseCallback? callback) => - (super.noSuchMethod( - Invocation.method(#handlePlatformMessage, [channel, data, callback]), - returnValue: Future.value(null), - returnValueForMissingStub: Future.value()) as _i3.Future); - @override - _i3.Future<_i4.ByteData?>? send(String? channel, _i4.ByteData? message) => - (super.noSuchMethod(Invocation.method(#send, [channel, message])) - as _i3.Future<_i4.ByteData?>?); - @override - void setMessageHandler(String? channel, _i2.MessageHandler? handler) => super - .noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]), - returnValueForMissingStub: null); -} diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/multiple_arity_test.mocks.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/multiple_arity_test.mocks.dart index ff0400d15cf..0214f7e7196 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/multiple_arity_test.mocks.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/multiple_arity_test.mocks.dart @@ -1,7 +1,8 @@ -// Mocks generated by Mockito 5.0.7 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in flutter_unit_tests/test/multiple_arity_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'dart:typed_data' as _i4; import 'dart:ui' as _i5; @@ -9,12 +10,16 @@ import 'dart:ui' as _i5; import 'package:flutter/src/services/binary_messenger.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references -// ignore_for_file: unnecessary_parenthesis - +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors - -// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [BinaryMessenger]. /// @@ -25,18 +30,48 @@ class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger { } @override - _i3.Future handlePlatformMessage(String? channel, _i4.ByteData? data, - _i5.PlatformMessageResponseCallback? callback) => + _i3.Future handlePlatformMessage( + String? channel, + _i4.ByteData? data, + _i5.PlatformMessageResponseCallback? callback, + ) => (super.noSuchMethod( - Invocation.method(#handlePlatformMessage, [channel, data, callback]), - returnValue: Future.value(null), - returnValueForMissingStub: Future.value()) as _i3.Future); + Invocation.method( + #handlePlatformMessage, + [ + channel, + data, + callback, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); @override - _i3.Future<_i4.ByteData?>? send(String? channel, _i4.ByteData? message) => - (super.noSuchMethod(Invocation.method(#send, [channel, message])) - as _i3.Future<_i4.ByteData?>?); + _i3.Future<_i4.ByteData?>? send( + String? channel, + _i4.ByteData? message, + ) => + (super.noSuchMethod(Invocation.method( + #send, + [ + channel, + message, + ], + )) as _i3.Future<_i4.ByteData?>?); @override - void setMessageHandler(String? channel, _i2.MessageHandler? handler) => super - .noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]), - returnValueForMissingStub: null); + void setMessageHandler( + String? channel, + _i2.MessageHandler? handler, + ) => + super.noSuchMethod( + Invocation.method( + #setMessageHandler, + [ + channel, + handler, + ], + ), + returnValueForMissingStub: null, + ); } diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/null_safe_test.mocks.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/null_safe_test.mocks.dart index 9b5bfcbcf5c..c48bb3fdb4a 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/null_safe_test.mocks.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/null_safe_test.mocks.dart @@ -1,21 +1,26 @@ -// Mocks generated by Mockito 5.0.7 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in flutter_unit_tests/test/null_safe_test.dart. // Do not manually edit this file. +// ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i3; import 'dart:typed_data' as _i4; import 'dart:ui' as _i5; -import 'package:flutter/src/services/binary_messenger.dart' as _i2; +import 'package:flutter/services.dart' as _i2; import 'package:flutter_unit_tests/nullable_returns.gen.dart' as _i6; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references -// ignore_for_file: unnecessary_parenthesis - +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors - -// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [BinaryMessenger]. /// @@ -26,20 +31,50 @@ class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger { } @override - _i3.Future handlePlatformMessage(String? channel, _i4.ByteData? data, - _i5.PlatformMessageResponseCallback? callback) => + _i3.Future handlePlatformMessage( + String? channel, + _i4.ByteData? data, + _i5.PlatformMessageResponseCallback? callback, + ) => (super.noSuchMethod( - Invocation.method(#handlePlatformMessage, [channel, data, callback]), - returnValue: Future.value(null), - returnValueForMissingStub: Future.value()) as _i3.Future); + Invocation.method( + #handlePlatformMessage, + [ + channel, + data, + callback, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); @override - _i3.Future<_i4.ByteData?>? send(String? channel, _i4.ByteData? message) => - (super.noSuchMethod(Invocation.method(#send, [channel, message])) - as _i3.Future<_i4.ByteData?>?); + _i3.Future<_i4.ByteData?>? send( + String? channel, + _i4.ByteData? message, + ) => + (super.noSuchMethod(Invocation.method( + #send, + [ + channel, + message, + ], + )) as _i3.Future<_i4.ByteData?>?); @override - void setMessageHandler(String? channel, _i2.MessageHandler? handler) => super - .noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]), - returnValueForMissingStub: null); + void setMessageHandler( + String? channel, + _i2.MessageHandler? handler, + ) => + super.noSuchMethod( + Invocation.method( + #setMessageHandler, + [ + channel, + handler, + ], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [NullableArgFlutterApi]. @@ -52,9 +87,13 @@ class MockNullableArgFlutterApi extends _i1.Mock } @override - int doit(int? x) => - (super.noSuchMethod(Invocation.method(#doit, [x]), returnValue: 0) - as int); + int doit(int? x) => (super.noSuchMethod( + Invocation.method( + #doit, + [x], + ), + returnValue: 0, + ) as int); } /// A class which mocks [NullableReturnFlutterApi]. @@ -77,9 +116,13 @@ class MockNullableCollectionArgFlutterApi extends _i1.Mock } @override - List doit(List? x) => (super - .noSuchMethod(Invocation.method(#doit, [x]), returnValue: []) - as List); + List doit(List? x) => (super.noSuchMethod( + Invocation.method( + #doit, + [x], + ), + returnValue: [], + ) as List); } /// A class which mocks [NullableCollectionReturnFlutterApi]. diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/primitive_test.mocks.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/primitive_test.mocks.dart index cd3dfc0c9d3..469f9d9bbec 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/primitive_test.mocks.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/test/primitive_test.mocks.dart @@ -1,47 +1,80 @@ -// Mocks generated by Mockito 5.0.7 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in flutter_unit_tests/test/primitive_test.dart. // Do not manually edit this file. -import 'dart:async' as _i4; -import 'dart:typed_data' as _i2; +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; +import 'dart:typed_data' as _i4; import 'dart:ui' as _i5; -import 'package:flutter/src/services/binary_messenger.dart' as _i3; +import 'package:flutter/services.dart' as _i2; import 'package:flutter_unit_tests/primitive.gen.dart' as _i6; import 'package:mockito/mockito.dart' as _i1; +// ignore_for_file: type=lint +// ignore_for_file: avoid_redundant_argument_values +// ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references -// ignore_for_file: unnecessary_parenthesis - +// ignore_for_file: implementation_imports +// ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors - -// ignore_for_file: avoid_redundant_argument_values - -class _FakeInt32List extends _i1.Fake implements _i2.Int32List {} +// ignore_for_file: unnecessary_parenthesis +// ignore_for_file: camel_case_types +// ignore_for_file: subtype_of_sealed_class /// A class which mocks [BinaryMessenger]. /// /// See the documentation for Mockito's code generation for more information. -class MockBinaryMessenger extends _i1.Mock implements _i3.BinaryMessenger { +class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger { MockBinaryMessenger() { _i1.throwOnMissingStub(this); } @override - _i4.Future handlePlatformMessage(String? channel, _i2.ByteData? data, - _i5.PlatformMessageResponseCallback? callback) => + _i3.Future handlePlatformMessage( + String? channel, + _i4.ByteData? data, + _i5.PlatformMessageResponseCallback? callback, + ) => (super.noSuchMethod( - Invocation.method(#handlePlatformMessage, [channel, data, callback]), - returnValue: Future.value(null), - returnValueForMissingStub: Future.value()) as _i4.Future); + Invocation.method( + #handlePlatformMessage, + [ + channel, + data, + callback, + ], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); @override - _i4.Future<_i2.ByteData?>? send(String? channel, _i2.ByteData? message) => - (super.noSuchMethod(Invocation.method(#send, [channel, message])) - as _i4.Future<_i2.ByteData?>?); + _i3.Future<_i4.ByteData?>? send( + String? channel, + _i4.ByteData? message, + ) => + (super.noSuchMethod(Invocation.method( + #send, + [ + channel, + message, + ], + )) as _i3.Future<_i4.ByteData?>?); @override - void setMessageHandler(String? channel, _i3.MessageHandler? handler) => super - .noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]), - returnValueForMissingStub: null); + void setMessageHandler( + String? channel, + _i2.MessageHandler? handler, + ) => + super.noSuchMethod( + Invocation.method( + #setMessageHandler, + [ + channel, + handler, + ], + ), + returnValueForMissingStub: null, + ); } /// A class which mocks [PrimitiveFlutterApi]. @@ -54,39 +87,77 @@ class MockPrimitiveFlutterApi extends _i1.Mock } @override - int anInt(int? value) => - (super.noSuchMethod(Invocation.method(#anInt, [value]), returnValue: 0) - as int); + int anInt(int? value) => (super.noSuchMethod( + Invocation.method( + #anInt, + [value], + ), + returnValue: 0, + ) as int); @override - bool aBool(bool? value) => (super - .noSuchMethod(Invocation.method(#aBool, [value]), returnValue: false) - as bool); + bool aBool(bool? value) => (super.noSuchMethod( + Invocation.method( + #aBool, + [value], + ), + returnValue: false, + ) as bool); @override - String aString(String? value) => - (super.noSuchMethod(Invocation.method(#aString, [value]), returnValue: '') - as String); + String aString(String? value) => (super.noSuchMethod( + Invocation.method( + #aString, + [value], + ), + returnValue: '', + ) as String); @override - double aDouble(double? value) => (super - .noSuchMethod(Invocation.method(#aDouble, [value]), returnValue: 0.0) - as double); + double aDouble(double? value) => (super.noSuchMethod( + Invocation.method( + #aDouble, + [value], + ), + returnValue: 0.0, + ) as double); @override Map aMap(Map? value) => - (super.noSuchMethod(Invocation.method(#aMap, [value]), - returnValue: {}) as Map); + (super.noSuchMethod( + Invocation.method( + #aMap, + [value], + ), + returnValue: {}, + ) as Map); @override - List aList(List? value) => - (super.noSuchMethod(Invocation.method(#aList, [value]), - returnValue: []) as List); + List aList(List? value) => (super.noSuchMethod( + Invocation.method( + #aList, + [value], + ), + returnValue: [], + ) as List); @override - _i2.Int32List anInt32List(_i2.Int32List? value) => - (super.noSuchMethod(Invocation.method(#anInt32List, [value]), - returnValue: _FakeInt32List()) as _i2.Int32List); + _i4.Int32List anInt32List(_i4.Int32List? value) => (super.noSuchMethod( + Invocation.method( + #anInt32List, + [value], + ), + returnValue: _i4.Int32List(0), + ) as _i4.Int32List); @override - List aBoolList(List? value) => - (super.noSuchMethod(Invocation.method(#aBoolList, [value]), - returnValue: []) as List); + List aBoolList(List? value) => (super.noSuchMethod( + Invocation.method( + #aBoolList, + [value], + ), + returnValue: [], + ) as List); @override Map aStringIntMap(Map? value) => - (super.noSuchMethod(Invocation.method(#aStringIntMap, [value]), - returnValue: {}) as Map); + (super.noSuchMethod( + Invocation.method( + #aStringIntMap, + [value], + ), + returnValue: {}, + ) as Map); } diff --git a/packages/pigeon/pubspec.yaml b/packages/pigeon/pubspec.yaml index ef999c57998..fd1436de379 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.2 # 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/CHANGELOG.md b/packages/plugin_platform_interface/CHANGELOG.md index 24186a3a76e..d63cc2ae654 100644 --- a/packages/plugin_platform_interface/CHANGELOG.md +++ b/packages/plugin_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.1.4 * Updates links for the merge of flutter/plugins into flutter/packages. diff --git a/packages/plugin_platform_interface/pubspec.yaml b/packages/plugin_platform_interface/pubspec.yaml index af8a0aac638..1c6dab5ab02 100644 --- a/packages/plugin_platform_interface/pubspec.yaml +++ b/packages/plugin_platform_interface/pubspec.yaml @@ -18,11 +18,11 @@ 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 dev_dependencies: - mockito: 5.3.2 + mockito: 5.4.0 test: ^1.16.0 diff --git a/packages/quick_actions/quick_actions/CHANGELOG.md b/packages/quick_actions/quick_actions/CHANGELOG.md index 8687f72e638..10913d1b211 100644 --- a/packages/quick_actions/quick_actions/CHANGELOG.md +++ b/packages/quick_actions/quick_actions/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 1.0.2 diff --git a/packages/quick_actions/quick_actions/example/pubspec.yaml b/packages/quick_actions/quick_actions/example/pubspec.yaml index 04cb5215a8c..073d2275851 100644 --- a/packages/quick_actions/quick_actions/example/pubspec.yaml +++ b/packages/quick_actions/quick_actions/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the quick_actions plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/quick_actions/quick_actions/pubspec.yaml b/packages/quick_actions/quick_actions/pubspec.yaml index d9d2439fa09..710a03eb411 100644 --- a/packages/quick_actions/quick_actions/pubspec.yaml +++ b/packages/quick_actions/quick_actions/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/CHANGELOG.md b/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md index 5d5083835eb..2f1d78a0c50 100644 --- a/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md +++ b/packages/quick_actions/quick_actions_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 1.0.4 diff --git a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml index e4272b83845..3e922177de4 100644 --- a/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml +++ b/packages/quick_actions/quick_actions_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 1.0.4 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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/CHANGELOG.md b/packages/url_launcher/url_launcher/CHANGELOG.md index 1e59d1d0a20..ea5f593f59e 100644 --- a/packages/url_launcher/url_launcher/CHANGELOG.md +++ b/packages/url_launcher/url_launcher/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 6.1.10 diff --git a/packages/url_launcher/url_launcher/example/pubspec.yaml b/packages/url_launcher/url_launcher/example/pubspec.yaml index 72766ef759e..736c1bee586 100644 --- a/packages/url_launcher/url_launcher/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the url_launcher plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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 795d7b1c583..58dce23759b 100644 --- a/packages/url_launcher/url_launcher/pubspec.yaml +++ b/packages/url_launcher/url_launcher/pubspec.yaml @@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.1.10 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/CHANGELOG.md b/packages/url_launcher/url_launcher_android/CHANGELOG.md index 8553d7333c9..1505525dfd4 100644 --- a/packages/url_launcher/url_launcher_android/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 6.0.26 * Bump RoboElectric dependency to 4.4.1 to support AndroidX. diff --git a/packages/url_launcher/url_launcher_android/example/pubspec.yaml b/packages/url_launcher/url_launcher_android/example/pubspec.yaml index f318cb3d108..18abe9ef6c3 100644 --- a/packages/url_launcher/url_launcher_android/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the url_launcher plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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 f3cca6a731e..ddfd3e5f22b 100644 --- a/packages/url_launcher/url_launcher_android/pubspec.yaml +++ b/packages/url_launcher/url_launcher_android/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 6.0.26 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/CHANGELOG.md b/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md index a292ce10fa6..fa03c093e91 100644 --- a/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_platform_interface/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 2.1.2 diff --git a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml index c2914a09e4b..50824528932 100644 --- a/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml +++ b/packages/url_launcher/url_launcher_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.2 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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/CHANGELOG.md b/packages/url_launcher/url_launcher_web/CHANGELOG.md index 49151cfcd18..91ef9e42e4f 100644 --- a/packages/url_launcher/url_launcher_web/CHANGELOG.md +++ b/packages/url_launcher/url_launcher_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.0.16 * Clarifies explanation of endorsement in README. diff --git a/packages/url_launcher/url_launcher_web/example/build.yaml b/packages/url_launcher/url_launcher_web/example/build.yaml index db3104bb04c..5a89bed84ef 100644 --- a/packages/url_launcher/url_launcher_web/example/build.yaml +++ b/packages/url_launcher/url_launcher_web/example/build.yaml @@ -4,3 +4,7 @@ targets: - integration_test/*.dart - lib/$lib$ - $package$ + builders: + mockito|mockBuilder: + generate_for: + - integration_test/** diff --git a/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart b/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart index 0717dc7ff47..004ac135ae4 100644 --- a/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart +++ b/packages/url_launcher/url_launcher_web/example/integration_test/url_launcher_web_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in regular_integration_tests/integration_test/url_launcher_web_test.dart. // Do not manually edit this file. diff --git a/packages/url_launcher/url_launcher_web/example/pubspec.yaml b/packages/url_launcher/url_launcher_web/example/pubspec.yaml index 7dfb428171e..a5fe899751f 100644 --- a/packages/url_launcher/url_launcher_web/example/pubspec.yaml +++ b/packages/url_launcher/url_launcher_web/example/pubspec.yaml @@ -2,8 +2,8 @@ name: regular_integration_tests publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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/url_launcher/url_launcher_web/pubspec.yaml b/packages/url_launcher/url_launcher_web/pubspec.yaml index e7aba636214..755dcd507a5 100644 --- a/packages/url_launcher/url_launcher_web/pubspec.yaml +++ b/packages/url_launcher/url_launcher_web/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.0.16 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/video_player/video_player_android/CHANGELOG.md b/packages/video_player/video_player_android/CHANGELOG.md index 6653f083bb7..fcb4f98f61f 100644 --- a/packages/video_player/video_player_android/CHANGELOG.md +++ b/packages/video_player/video_player_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.4.3 * Bumps ExoPlayer version to 2.18.5. diff --git a/packages/video_player/video_player_android/example/pubspec.yaml b/packages/video_player/video_player_android/example/pubspec.yaml index 8a6447e5916..2b4bb097905 100644 --- a/packages/video_player/video_player_android/example/pubspec.yaml +++ b/packages/video_player/video_player_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the video_player plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/video_player/video_player_android/pubspec.yaml b/packages/video_player/video_player_android/pubspec.yaml index e4d575de78b..b847a6d9c07 100644 --- a/packages/video_player/video_player_android/pubspec.yaml +++ b/packages/video_player/video_player_android/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.4.3 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: diff --git a/packages/webview_flutter/webview_flutter/CHANGELOG.md b/packages/webview_flutter/webview_flutter/CHANGELOG.md index 3fd3dec7ce8..0151146d724 100644 --- a/packages/webview_flutter/webview_flutter/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 4.0.7 * Updates the README with the migration of `WebView.initialCookies` and Hybrid Composition on diff --git a/packages/webview_flutter/webview_flutter/example/pubspec.yaml b/packages/webview_flutter/webview_flutter/example/pubspec.yaml index 135d8995851..742e9a7e01b 100644 --- a/packages/webview_flutter/webview_flutter/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/webview_flutter/webview_flutter/pubspec.yaml b/packages/webview_flutter/webview_flutter/pubspec.yaml index 60c1a832b77..8c013dec231 100644 --- a/packages/webview_flutter/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 4.0.7 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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/test/legacy/webview_flutter_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart index a40cf34828a..ae59ec3b5a7 100644 --- a/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/legacy/webview_flutter_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/legacy/webview_flutter_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart index a7ac41e558c..f290d4036c2 100644 --- a/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/navigation_delegate_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/navigation_delegate_test.dart. // Do not manually edit this file. @@ -228,4 +228,14 @@ class MockPlatformNavigationDelegate extends _i1.Mock returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), ) as _i8.Future); + @override + _i8.Future setOnUrlChange(_i3.UrlChangeCallback? onUrlChange) => + (super.noSuchMethod( + Invocation.method( + #setOnUrlChange, + [onUrlChange], + ), + returnValue: _i8.Future.value(), + returnValueForMissingStub: _i8.Future.value(), + ) as _i8.Future); } diff --git a/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart index 2bb1ef69132..27d06fdeeba 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/webview_controller_test.dart. // Do not manually edit this file. @@ -414,4 +414,14 @@ class MockPlatformNavigationDelegate extends _i1.Mock returnValue: _i5.Future.value(), returnValueForMissingStub: _i5.Future.value(), ) as _i5.Future); + @override + _i5.Future setOnUrlChange(_i6.UrlChangeCallback? onUrlChange) => + (super.noSuchMethod( + Invocation.method( + #setOnUrlChange, + [onUrlChange], + ), + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); } diff --git a/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart index 7cae6632d15..04e2b7f25db 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/webview_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart index 0e29ede0d56..3d4c5836b94 100644 --- a/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter/test/webview_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter/test/webview_widget_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/CHANGELOG.md b/packages/webview_flutter/webview_flutter_android/CHANGELOG.md index 9bb8d8205af..c3a16e84ae9 100644 --- a/packages/webview_flutter/webview_flutter_android/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_android/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 3.4.3 * Updates internal Java InstanceManager to be cleared on hot restart. diff --git a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml index 760f7d52abb..83f3f00312f 100644 --- a/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter_android plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/webview_flutter/webview_flutter_android/pubspec.yaml b/packages/webview_flutter/webview_flutter_android/pubspec.yaml index 5ae83c38194..4321673b66b 100644 --- a/packages/webview_flutter/webview_flutter_android/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_android/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 3.4.3 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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_android/test/android_navigation_delegate_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart index 25e2d424a44..aa0bf6569d8 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_navigation_delegate_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/android_navigation_delegate_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart index 76160aa7a07..88b1f7d38a7 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/android_webview_controller_test.dart. // Do not manually edit this file. @@ -343,6 +343,16 @@ class MockAndroidNavigationDelegate extends _i1.Mock returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), ) as _i9.Future); + @override + _i9.Future setOnUrlChange(_i3.UrlChangeCallback? onUrlChange) => + (super.noSuchMethod( + Invocation.method( + #setOnUrlChange, + [onUrlChange], + ), + returnValue: _i9.Future.value(), + returnValueForMissingStub: _i9.Future.value(), + ) as _i9.Future); } /// A class which mocks [AndroidWebViewController]. diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart index 07321805a55..d2937d54f92 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/android_webview_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart index 2cb0081ba8b..43eda09c429 100644 --- a/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/android_webview_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/android_webview_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart index b474bf1ff56..c9e6e4bfada 100644 --- a/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/instance_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/instance_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart index 85aed145bfb..b306f2c77d6 100644 --- a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/legacy/webview_android_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart index 67cdaa8bd58..0588a0b0d7f 100644 --- a/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_android/test/legacy/webview_android_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_android/test/legacy/webview_android_widget_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md b/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md index b94310b2fd5..808c85c7b23 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 2.1.0 * Adds support to track url changes. See `PlatformNavigationDelegate.setOnUrlChange`. diff --git a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml index 93bcf70dff9..6d05e0ab629 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_platform_interface/pubspec.yaml @@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 2.1.0 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: @@ -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_platform_interface/test/platform_webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.mocks.dart index 807ea02e051..5dbde6be102 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/test/platform_webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_platform_interface/test/platform_webview_controller_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart b/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart index d613cddccd5..e9ff0bd9f28 100644 --- a/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_platform_interface/test/webview_platform_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_platform_interface/test/webview_platform_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_web/CHANGELOG.md b/packages/webview_flutter/webview_flutter_web/CHANGELOG.md index 5ce2e1fff47..38f28aaf222 100644 --- a/packages/webview_flutter/webview_flutter_web/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_web/CHANGELOG.md @@ -1,5 +1,6 @@ ## NEXT +* Updates minimum Flutter version to 3.3. * Aligns Dart and Flutter SDK constraints. ## 0.2.2+1 diff --git a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml index 24953153ebd..2e1daffb1c8 100644 --- a/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter_web plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/webview_flutter/webview_flutter_web/pubspec.yaml b/packages/webview_flutter/webview_flutter_web/pubspec.yaml index d3b4cd14983..845d5785232 100644 --- a/packages/webview_flutter/webview_flutter_web/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_web/pubspec.yaml @@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ version: 0.2.2+1 environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" flutter: plugin: @@ -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_web/test/legacy/webview_flutter_web_test.mocks.dart b/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart index ac7122eacb6..06b57106e2b 100644 --- a/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_web/test/legacy/webview_flutter_web_test.mocks.dart @@ -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, diff --git a/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart index 5cb259a3f01..6f7a2c87953 100644 --- a/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_web/test/web_webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_web/test/web_webview_controller_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md b/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md index ab1921a7079..11714c394a4 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md +++ b/packages/webview_flutter/webview_flutter_wkwebview/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Updates minimum Flutter version to 3.3. + ## 3.2.3 * Updates to `pigeon` version 7. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml index b39ff595fc6..4af215cee74 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml +++ b/packages/webview_flutter/webview_flutter_wkwebview/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter_wkwebview plugin. publish_to: none environment: - sdk: ">=2.17.0 <4.0.0" - flutter: ">=3.0.0" + sdk: ">=2.18.0 <4.0.0" + flutter: ">=3.3.0" dependencies: flutter: diff --git a/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml b/packages/webview_flutter/webview_flutter_wkwebview/pubspec.yaml index 9b5f2a856f2..40e185d3219 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: ^7.0.5 diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart index 860e8dbeb4c..b88d686b205 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/legacy/web_kit_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart index e02b3fae518..6f5ffe0b5ac 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/legacy/web_kit_webview_widget_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart index d93198ed9d2..81c919ed51c 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/src/foundation/foundation_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/src/foundation/foundation_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.mocks.dart index 6200b8dbcad..355d69e7dc9 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/src/ui_kit/ui_kit_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/src/web_kit/web_kit_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/src/web_kit/web_kit_test.mocks.dart index 50e09560ed1..601964044de 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/src/web_kit/web_kit_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/src/web_kit/web_kit_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/src/web_kit/web_kit_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart index 9eab6dd9a3d..e445f9963e2 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_navigation_delegate_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/webkit_navigation_delegate_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.mocks.dart index 288105c0067..184d0a68aaf 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_controller_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/webkit_webview_controller_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.mocks.dart index c552d96ca31..95818c3cefa 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/webkit_webview_cookie_manager_test.dart. // Do not manually edit this file. diff --git a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart index 0f48af4d5da..1b4807eb0cc 100644 --- a/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart +++ b/packages/webview_flutter/webview_flutter_wkwebview/test/webkit_webview_widget_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in webview_flutter_wkwebview/test/webkit_webview_widget_test.dart. // Do not manually edit this file. diff --git a/script/tool/pubspec.yaml b/script/tool/pubspec.yaml index 2eb973b4e1f..dd42b0dde00 100644 --- a/script/tool/pubspec.yaml +++ b/script/tool/pubspec.yaml @@ -27,7 +27,7 @@ dependencies: dev_dependencies: build_runner: ^2.0.3 matcher: ^0.12.10 - mockito: 5.3.2 + mockito: '>=5.3.2 <=5.4.0' environment: sdk: '>=2.14.0 <4.0.0' diff --git a/script/tool/test/common/package_command_test.mocks.dart b/script/tool/test/common/package_command_test.mocks.dart index 79c5d4df1a8..69f706677a9 100644 --- a/script/tool/test/common/package_command_test.mocks.dart +++ b/script/tool/test/common/package_command_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.3.2 from annotations +// Mocks generated by Mockito 5.4.0 from annotations // in flutter_plugin_tools/test/common/package_command_test.dart. // Do not manually edit this file.