diff --git a/analysis_options.yaml b/analysis_options.yaml index 9f2ba5e67..e18b09d8f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -12,7 +12,6 @@ analyzer: # something (https://github.com/flutter/flutter/issues/143312) deprecated_member_use: ignore deprecated_member_use_from_same_package: ignore - unnecessary_null_comparison: ignore # Temporarily ingnored from flutter-tizen. exclude: # DIFFERENT FROM FLUTTER/FLUTTER # Ignore generated files - '**/*.g.dart' @@ -80,7 +79,7 @@ linter: # - constant_identifier_names # needs an opt-out https://github.com/dart-lang/linter/issues/204 - control_flow_in_finally - curly_braces_in_flow_control_structures - # - dangling_library_doc_comments # Temporarily ingnored from flutter-tizen. + - dangling_library_doc_comments - depend_on_referenced_packages - deprecated_consistency # - deprecated_member_use_from_same_package # we allow self-references to deprecated members @@ -115,7 +114,7 @@ linter: - no_duplicate_case_values - no_leading_underscores_for_library_prefixes - no_leading_underscores_for_local_identifiers - # - no_literal_bool_comparisons # Temporarily ingnored from flutter-tizen. + - no_literal_bool_comparisons - no_logic_in_create_state - no_runtimeType_toString # DIFFERENT FROM FLUTTER/FLUTTER - no_self_assignments @@ -189,7 +188,7 @@ linter: # - type_annotate_public_apis # subset of always_specify_types - type_init_formals - type_literal_in_constant_pattern - # - unawaited_futures # DIFFERENT FROM FLUTTER/FLUTTER: It's disabled there for "too many false positives"; that's not an issue here, and missing awaits have caused production issues in plugins. # Temporarily ingnored from flutter-tizen. + - unawaited_futures # DIFFERENT FROM FLUTTER/FLUTTER: It's disabled there for "too many false positives"; that's not an issue here, and missing awaits have caused production issues in plugins. - unnecessary_await_in_return - unnecessary_brace_in_string_interps - unnecessary_breaks @@ -199,7 +198,7 @@ linter: - unnecessary_getters_setters # - unnecessary_lambdas # has false positives: https://github.com/dart-lang/linter/issues/498 - unnecessary_late - # - unnecessary_library_directive # Temporarily ingnored from flutter-tizen. + - unnecessary_library_directive - unnecessary_new - unnecessary_null_aware_assignments - unnecessary_null_aware_operator_on_extension_on_nullable @@ -218,9 +217,9 @@ linter: - unrelated_type_equality_checks - unsafe_html - use_build_context_synchronously - # - use_colored_box # Temporarily ingnored from flutter-tizen. + - use_colored_box # - use_decorated_box # leads to bugs: DecoratedBox and Container are not equivalent (Container inserts extra padding) - # - use_enums # Temporarily ingnored from flutter-tizen. + - use_enums - use_full_hex_values_for_flutter_colors - use_function_type_syntax_for_parameters - use_if_null_to_convert_nulls_to_bools @@ -232,7 +231,7 @@ linter: - use_rethrow_when_possible - use_setters_to_change_properties # - use_string_buffers # has false positives: https://github.com/dart-lang/sdk/issues/34182 - # - use_string_in_part_of_directives # Temporarily ingnored from flutter-tizen. + - use_string_in_part_of_directives - use_super_parameters - use_test_throws_matchers # - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review diff --git a/packages/audioplayers/CHANGELOG.md b/packages/audioplayers/CHANGELOG.md index aebad577d..2f8cac1d5 100644 --- a/packages/audioplayers/CHANGELOG.md +++ b/packages/audioplayers/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 3.0.1 * Update audioplayers to 5.1.0. diff --git a/packages/audioplayers/example/pubspec.yaml b/packages/audioplayers/example/pubspec.yaml index d0ea5bcf1..6ea98fec4 100644 --- a/packages/audioplayers/example/pubspec.yaml +++ b/packages/audioplayers/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the audioplayers plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: audioplayers: ^5.1.0 diff --git a/packages/audioplayers/pubspec.yaml b/packages/audioplayers/pubspec.yaml index 5e044bd79..538c70d9d 100644 --- a/packages/audioplayers/pubspec.yaml +++ b/packages/audioplayers/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/audiop version: 3.0.1 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/battery_plus/CHANGELOG.md b/packages/battery_plus/CHANGELOG.md index edcdff481..feac0ae74 100644 --- a/packages/battery_plus/CHANGELOG.md +++ b/packages/battery_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.1.2 * Update battery_plus to 4.0.1. diff --git a/packages/battery_plus/example/pubspec.yaml b/packages/battery_plus/example/pubspec.yaml index 6aabfe280..ad9af0885 100644 --- a/packages/battery_plus/example/pubspec.yaml +++ b/packages/battery_plus/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the battery_plus plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: battery_plus: ^4.0.1 diff --git a/packages/battery_plus/pubspec.yaml b/packages/battery_plus/pubspec.yaml index f69a4a5ab..90c22b6c4 100644 --- a/packages/battery_plus/pubspec.yaml +++ b/packages/battery_plus/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/batter version: 1.1.2 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/camera/CHANGELOG.md b/packages/camera/CHANGELOG.md index ccd1c5703..d40002737 100644 --- a/packages/camera/CHANGELOG.md +++ b/packages/camera/CHANGELOG.md @@ -1,6 +1,7 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. +* Fix new lint warnings. ## 0.3.4 diff --git a/packages/camera/example/lib/main.dart b/packages/camera/example/lib/main.dart index e2a226208..5d41c8ba3 100644 --- a/packages/camera/example/lib/main.dart +++ b/packages/camera/example/lib/main.dart @@ -250,9 +250,7 @@ class _CameraExampleHomeState extends State child: Center( child: AspectRatio( aspectRatio: - localVideoController.value.size != null - ? localVideoController.value.aspectRatio - : 1.0, + localVideoController.value.aspectRatio, child: VideoPlayer(localVideoController)), ), ), @@ -380,7 +378,7 @@ class _CameraExampleHomeState extends State return SizeTransition( sizeFactor: _exposureModeControlRowAnimation, child: ClipRect( - child: Container( + child: ColoredBox( color: Colors.grey.shade50, child: Column( children: [ @@ -463,7 +461,7 @@ class _CameraExampleHomeState extends State return SizeTransition( sizeFactor: _focusModeControlRowAnimation, child: ClipRect( - child: Container( + child: ColoredBox( color: Colors.grey.shade50, child: Column( children: [ @@ -680,30 +678,23 @@ class _CameraExampleHomeState extends State switch (e.code) { case 'CameraAccessDenied': showInSnackBar('You have denied camera access.'); - break; case 'CameraAccessDeniedWithoutPrompt': // iOS only showInSnackBar('Please go to Settings app to enable camera access.'); - break; case 'CameraAccessRestricted': // iOS only showInSnackBar('Camera access is restricted.'); - break; case 'AudioAccessDenied': showInSnackBar('You have denied audio access.'); - break; case 'AudioAccessDeniedWithoutPrompt': // iOS only showInSnackBar('Please go to Settings app to enable audio access.'); - break; case 'AudioAccessRestricted': // iOS only showInSnackBar('Audio access is restricted.'); - break; case 'cameraPermission': // Android & web only showInSnackBar('Unknown permission error.'); - break; default: _showCameraException(e); break; @@ -1001,7 +992,7 @@ class _CameraExampleHomeState extends State : VideoPlayerController.file(File(videoFile!.path)); videoPlayerListener = () { - if (videoController != null && videoController!.value.size != null) { + if (videoController != null) { // Refreshing the state to update video player with the correct ratio. if (mounted) { setState(() {}); diff --git a/packages/camera/example/pubspec.yaml b/packages/camera/example/pubspec.yaml index 00f5146ff..78d9db26e 100644 --- a/packages/camera/example/pubspec.yaml +++ b/packages/camera/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the camera plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: camera: ^0.9.4 diff --git a/packages/camera/lib/camera_tizen.dart b/packages/camera/lib/camera_tizen.dart index 7073df738..51e13b9f7 100644 --- a/packages/camera/lib/camera_tizen.dart +++ b/packages/camera/lib/camera_tizen.dart @@ -536,7 +536,6 @@ class CameraTizen extends CameraPlatform { final Map arguments = _getArgumentDictionary(call); _deviceEventStreamController.add(DeviceOrientationChangedEvent( deserializeDeviceOrientation(arguments['orientation']! as String))); - break; default: throw MissingPluginException(); } @@ -556,7 +555,6 @@ class CameraTizen extends CameraPlatform { deserializeFocusMode(arguments['focusMode']! as String), arguments['focusPointSupported']! as bool, )); - break; case 'resolution_changed': final Map arguments = _getArgumentDictionary(call); _cameraEventStreamController.add(CameraResolutionChangedEvent( @@ -564,12 +562,10 @@ class CameraTizen extends CameraPlatform { arguments['captureWidth']! as double, arguments['captureHeight']! as double, )); - break; case 'camera_closing': _cameraEventStreamController.add(CameraClosingEvent( cameraId, )); - break; case 'video_recorded': final Map arguments = _getArgumentDictionary(call); _cameraEventStreamController.add(VideoRecordedEvent( @@ -579,14 +575,12 @@ class CameraTizen extends CameraPlatform { ? Duration(milliseconds: arguments['maxVideoDuration']! as int) : null, )); - break; case 'error': final Map arguments = _getArgumentDictionary(call); _cameraEventStreamController.add(CameraErrorEvent( cameraId, arguments['description']! as String, )); - break; default: throw MissingPluginException(); } diff --git a/packages/camera/pubspec.yaml b/packages/camera/pubspec.yaml index aba242d02..35c1dd683 100644 --- a/packages/camera/pubspec.yaml +++ b/packages/camera/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/camera version: 0.3.4 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: camera_platform_interface: ^2.1.1 diff --git a/packages/connectivity_plus/CHANGELOG.md b/packages/connectivity_plus/CHANGELOG.md index 8a0d20ad8..523332b81 100644 --- a/packages/connectivity_plus/CHANGELOG.md +++ b/packages/connectivity_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.1.4 * Update connectivity_plus to 4.0.1. diff --git a/packages/connectivity_plus/example/pubspec.yaml b/packages/connectivity_plus/example/pubspec.yaml index e2cab9531..1c4bebdeb 100644 --- a/packages/connectivity_plus/example/pubspec.yaml +++ b/packages/connectivity_plus/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the connectivity_plus_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: connectivity_plus: ^4.0.1 diff --git a/packages/connectivity_plus/pubspec.yaml b/packages/connectivity_plus/pubspec.yaml index b486b8478..7f132caaf 100644 --- a/packages/connectivity_plus/pubspec.yaml +++ b/packages/connectivity_plus/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/connec version: 1.1.4 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/device_info_plus/CHANGELOG.md b/packages/device_info_plus/CHANGELOG.md index 86b795978..ce21d791f 100644 --- a/packages/device_info_plus/CHANGELOG.md +++ b/packages/device_info_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.2.0 * Add `TizenDeviceInfo.data` which represents the device info as a map. diff --git a/packages/device_info_plus/example/pubspec.yaml b/packages/device_info_plus/example/pubspec.yaml index 3d27391f2..09110649a 100644 --- a/packages/device_info_plus/example/pubspec.yaml +++ b/packages/device_info_plus/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the device_info_plus_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: device_info_plus_tizen: diff --git a/packages/device_info_plus/pubspec.yaml b/packages/device_info_plus/pubspec.yaml index 7a2c4eba7..57af6b638 100644 --- a/packages/device_info_plus/pubspec.yaml +++ b/packages/device_info_plus/pubspec.yaml @@ -6,8 +6,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/device version: 1.2.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/firebase_core/CHANGELOG.md b/packages/firebase_core/CHANGELOG.md index 22b9fce11..fc8a2fd8d 100644 --- a/packages/firebase_core/CHANGELOG.md +++ b/packages/firebase_core/CHANGELOG.md @@ -1,6 +1,7 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. +* Fix new lint warnings. ## 0.1.1 diff --git a/packages/firebase_core/example/pubspec.yaml b/packages/firebase_core/example/pubspec.yaml index de84a5fa5..442cd2278 100644 --- a/packages/firebase_core/example/pubspec.yaml +++ b/packages/firebase_core/example/pubspec.yaml @@ -3,8 +3,8 @@ description: An example application demonstrating calls to Firebase Core. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: firebase_core: ^2.4.0 diff --git a/packages/firebase_core/lib/firebase_app_tizen.dart b/packages/firebase_core/lib/firebase_app_tizen.dart index 3a4cc389d..94ee484f9 100644 --- a/packages/firebase_core/lib/firebase_app_tizen.dart +++ b/packages/firebase_core/lib/firebase_app_tizen.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file. -part of firebase_core_tizen; +part of 'firebase_core_tizen.dart'; /// A Dart only implementation of a Firebase app instance. class FirebaseApp extends FirebaseAppPlatform { diff --git a/packages/firebase_core/pubspec.yaml b/packages/firebase_core/pubspec.yaml index 63f2a6670..6b5ca7f30 100644 --- a/packages/firebase_core/pubspec.yaml +++ b/packages/firebase_core/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/fireba version: 0.1.1 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: firebase_core_dart: ^1.0.1 diff --git a/packages/flutter_app_badger/CHANGELOG.md b/packages/flutter_app_badger/CHANGELOG.md index 2f66a9f25..932b37533 100644 --- a/packages/flutter_app_badger/CHANGELOG.md +++ b/packages/flutter_app_badger/CHANGELOG.md @@ -1,6 +1,6 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 0.1.0 diff --git a/packages/flutter_app_badger/example/pubspec.yaml b/packages/flutter_app_badger/example/pubspec.yaml index e387b6411..39ed1bc96 100644 --- a/packages/flutter_app_badger/example/pubspec.yaml +++ b/packages/flutter_app_badger/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the flutter_app_badger_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/flutter_app_badger/pubspec.yaml b/packages/flutter_app_badger/pubspec.yaml index 131466be2..e9a7df487 100644 --- a/packages/flutter_app_badger/pubspec.yaml +++ b/packages/flutter_app_badger/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/flutte version: 0.1.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/flutter_secure_storage/CHANGELOG.md b/packages/flutter_secure_storage/CHANGELOG.md index c8447bb42..594d8d481 100644 --- a/packages/flutter_secure_storage/CHANGELOG.md +++ b/packages/flutter_secure_storage/CHANGELOG.md @@ -1,3 +1,8 @@ +## NEXT + +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 0.1.1 * Update flutter_secure_storage to 9.0.0. diff --git a/packages/flutter_secure_storage/example/lib/main.dart b/packages/flutter_secure_storage/example/lib/main.dart index bdc76ce26..51955983b 100644 --- a/packages/flutter_secure_storage/example/lib/main.dart +++ b/packages/flutter_secure_storage/example/lib/main.dart @@ -98,7 +98,6 @@ class ItemsWidgetState extends State { switch (action) { case _Actions.deleteAll: _deleteAll(); - break; } }, itemBuilder: (BuildContext context) => >[ @@ -191,7 +190,6 @@ class ItemsWidgetState extends State { ); _readAll(); - break; case _ItemActions.edit: if (!context.mounted) return; final result = await showDialog( @@ -207,7 +205,6 @@ class ItemsWidgetState extends State { ); _readAll(); } - break; case _ItemActions.containsKey: if (!context.mounted) return; final key = await _displayTextInputDialog(context, item.key); @@ -219,7 +216,6 @@ class ItemsWidgetState extends State { backgroundColor: result ? Colors.green : Colors.red, ), ); - break; case _ItemActions.read: if (!context.mounted) return; final key = await _displayTextInputDialog(context, item.key); @@ -231,7 +227,6 @@ class ItemsWidgetState extends State { content: Text('value: $result'), ), ); - break; } } diff --git a/packages/flutter_secure_storage/example/pubspec.yaml b/packages/flutter_secure_storage/example/pubspec.yaml index 172888309..984bedf60 100644 --- a/packages/flutter_secure_storage/example/pubspec.yaml +++ b/packages/flutter_secure_storage/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the flutter_secure_storage_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/flutter_secure_storage/pubspec.yaml b/packages/flutter_secure_storage/pubspec.yaml index ac7da99b3..256473ced 100644 --- a/packages/flutter_secure_storage/pubspec.yaml +++ b/packages/flutter_secure_storage/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/flutte version: 0.1.1 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/flutter_tts/CHANGELOG.md b/packages/flutter_tts/CHANGELOG.md index f3d07436e..ec827b00c 100644 --- a/packages/flutter_tts/CHANGELOG.md +++ b/packages/flutter_tts/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.4.0 * Update flutter_tts to 3.6.3. diff --git a/packages/flutter_tts/example/pubspec.yaml b/packages/flutter_tts/example/pubspec.yaml index 59e040d05..b383496ce 100644 --- a/packages/flutter_tts/example/pubspec.yaml +++ b/packages/flutter_tts/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the flutter_tts_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/flutter_tts/pubspec.yaml b/packages/flutter_tts/pubspec.yaml index b724fc0ae..f2ee10183 100644 --- a/packages/flutter_tts/pubspec.yaml +++ b/packages/flutter_tts/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/flutte version: 1.4.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/flutter_webrtc/CHANGELOG.md b/packages/flutter_webrtc/CHANGELOG.md index 66de06050..834f4dcce 100644 --- a/packages/flutter_webrtc/CHANGELOG.md +++ b/packages/flutter_webrtc/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 0.1.3 * Increase the minimum Flutter version to 3.3. diff --git a/packages/flutter_webrtc/example/flutter_webrtc_demo/pubspec.yaml b/packages/flutter_webrtc/example/flutter_webrtc_demo/pubspec.yaml index b972e4849..72ac915e1 100644 --- a/packages/flutter_webrtc/example/flutter_webrtc_demo/pubspec.yaml +++ b/packages/flutter_webrtc/example/flutter_webrtc_demo/pubspec.yaml @@ -3,8 +3,8 @@ description: A new Flutter application. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: cupertino_icons: ^1.0.3 diff --git a/packages/flutter_webrtc/example/flutter_webrtc_example/pubspec.yaml b/packages/flutter_webrtc/example/flutter_webrtc_example/pubspec.yaml index b3cec1407..6ada7e41f 100644 --- a/packages/flutter_webrtc/example/flutter_webrtc_example/pubspec.yaml +++ b/packages/flutter_webrtc/example/flutter_webrtc_example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webrtc plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/flutter_webrtc/pubspec.yaml b/packages/flutter_webrtc/pubspec.yaml index eedde57a1..195432d30 100644 --- a/packages/flutter_webrtc/pubspec.yaml +++ b/packages/flutter_webrtc/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/flutte version: 0.1.3 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/geolocator/CHANGELOG.md b/packages/geolocator/CHANGELOG.md index 6c85a3a6b..90a6ef004 100644 --- a/packages/geolocator/CHANGELOG.md +++ b/packages/geolocator/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.0.6 * Remove unnecessary `StreamHandlerError` implementation. diff --git a/packages/geolocator/example/pubspec.yaml b/packages/geolocator/example/pubspec.yaml index 6e3b9bc8a..3a44be7e1 100644 --- a/packages/geolocator/example/pubspec.yaml +++ b/packages/geolocator/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the geolocator_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: baseflow_plugin_template: ^2.1.2 diff --git a/packages/geolocator/pubspec.yaml b/packages/geolocator/pubspec.yaml index 907f74004..c3759b195 100644 --- a/packages/geolocator/pubspec.yaml +++ b/packages/geolocator/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/geoloc version: 1.0.6 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/CHANGELOG.md index 8876cef41..840c63495 100644 --- a/packages/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/CHANGELOG.md @@ -1,6 +1,7 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 0.1.5 diff --git a/packages/google_maps_flutter/example/pubspec.yaml b/packages/google_maps_flutter/example/pubspec.yaml index 54b285f85..c7f0610b9 100644 --- a/packages/google_maps_flutter/example/pubspec.yaml +++ b/packages/google_maps_flutter/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the google_maps_flutter_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/google_maps_flutter/lib/src/circle.dart b/packages/google_maps_flutter/lib/src/circle.dart index a65f666bc..3acf17428 100644 --- a/packages/google_maps_flutter/lib/src/circle.dart +++ b/packages/google_maps_flutter/lib/src/circle.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// The `CircleController` class wraps a [GCircle] and its `onTap` behavior. class CircleController { diff --git a/packages/google_maps_flutter/lib/src/circles.dart b/packages/google_maps_flutter/lib/src/circles.dart index f8d496fa1..a3f8f4679 100644 --- a/packages/google_maps_flutter/lib/src/circles.dart +++ b/packages/google_maps_flutter/lib/src/circles.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// This class manages all the [CircleController]s associated to a [GoogleMapController]. class CirclesController extends GeometryController { diff --git a/packages/google_maps_flutter/lib/src/convert.dart b/packages/google_maps_flutter/lib/src/convert.dart index 4ef60c040..ef2f0c553 100644 --- a/packages/google_maps_flutter/lib/src/convert.dart +++ b/packages/google_maps_flutter/lib/src/convert.dart @@ -5,7 +5,7 @@ // ignore_for_file: avoid_dynamic_calls -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; // Indices in the plugin side don't match with the ones Map _mapTypeToMapTypeId = { @@ -93,12 +93,9 @@ String _applyInitialPosition( CameraPosition initialPosition, String options, ) { - // Adjust the initial position, if passed... - if (initialPosition != null) { - options += ', zoom: ${initialPosition.zoom}'; - options += - ', center: {lat: ${initialPosition.target.latitude} ,lng: ${initialPosition.target.longitude}}'; - } + options += ', zoom: ${initialPosition.zoom}'; + options += + ', center: {lat: ${initialPosition.target.latitude} ,lng: ${initialPosition.target.longitude}}'; return options; } diff --git a/packages/google_maps_flutter/lib/src/google_maps_controller.dart b/packages/google_maps_flutter/lib/src/google_maps_controller.dart index 59b9250fc..cc8a97b24 100644 --- a/packages/google_maps_flutter/lib/src/google_maps_controller.dart +++ b/packages/google_maps_flutter/lib/src/google_maps_controller.dart @@ -5,7 +5,7 @@ // ignore_for_file: avoid_dynamic_calls -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// This class implements a Map Controller and its events class GoogleMapsController { @@ -188,7 +188,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'BoundChanged', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null) { + if (_widget == null) { return; } final LatLng center = await getCenter(); @@ -212,7 +212,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'Idle', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null) { + if (_widget == null) { return; } _mapIsMoving = false; @@ -224,7 +224,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'Tilesloaded', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null || _isFirst) { + if (_widget == null || _isFirst) { return; } try { @@ -240,7 +240,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'Click', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null) { + if (_widget == null) { return; } try { @@ -262,7 +262,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'RightClick', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null) { + if (_widget == null) { return; } try { @@ -283,7 +283,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'MarkerClick', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null) { + if (_widget == null) { return; } try { @@ -306,7 +306,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'MarkerDragEnd', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null) { + if (_widget == null) { return; } try { @@ -338,7 +338,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'PolylineClick', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null) { + if (_widget == null) { return; } try { @@ -362,7 +362,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'PolygonClick', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null) { + if (_widget == null) { return; } try { @@ -386,7 +386,7 @@ class GoogleMapsController { return JavascriptChannel( name: 'CircleClick', onMessageReceived: (JavascriptMessage message) async { - if (_widget == null || _streamController == null) { + if (_widget == null) { return; } try { @@ -586,21 +586,16 @@ class GoogleMapsController { '{heading: ${json[1]['bearing']}, zoom: ${json[1]['zoom']}, tilt: ${json[1]['tilt']}}'); await _setPanTo( '{lat:${json[1]['target'][0]}, lng: ${json[1]['target'][1]}}'); - break; case 'newLatLng': await _setPanTo('{lat:${json[1][0]}, lng:${json[1][1]}}'); - break; case 'newLatLngZoom': await _setMoveCamera('{zoom: ${json[2]}}'); await _setPanTo('{lat:${json[1][0]}, lng: ${json[1][1]}}'); - break; case 'newLatLngBounds': await _setFitBounds( '{south:${json[1][0][0]}, west:${json[1][0][1]}, north:${json[1][1][0]}, east:${json[1][1][1]}}, ${json[2]}'); - break; case 'scrollBy': await _setPanBy('${json[1]}, ${json[2]}'); - break; case 'zoomBy': String? focusLatLng; double zoomDelta = 0.0; @@ -623,16 +618,12 @@ class GoogleMapsController { if (focusLatLng != null) { await _setPanTo(focusLatLng); } - break; case 'zoomIn': await _setZoom('${(await getZoomLevel()) + 1}'); - break; case 'zoomOut': await _setZoom('${(await getZoomLevel()) - 1}'); - break; case 'zoomTo': await _setZoom('${json[1]}'); - break; default: throw UnimplementedError('Unimplemented CameraMove: ${json[0]}.'); } diff --git a/packages/google_maps_flutter/lib/src/google_maps_flutter_tizen.dart b/packages/google_maps_flutter/lib/src/google_maps_flutter_tizen.dart index 6f963b6ae..32f6f1078 100644 --- a/packages/google_maps_flutter/lib/src/google_maps_flutter_tizen.dart +++ b/packages/google_maps_flutter/lib/src/google_maps_flutter_tizen.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// The Tizen implementation of [GoogleMapsFlutterPlatform]. /// @@ -43,7 +43,6 @@ class GoogleMapsPlugin extends GoogleMapsFlutterPlatform { @override Future init(int mapId) async { _map(mapId).init(); - assert(_map(mapId) != null, 'Must call buildWidget before init!'); } /// Updates the options of a given `mapId`. diff --git a/packages/google_maps_flutter/lib/src/marker.dart b/packages/google_maps_flutter/lib/src/marker.dart index 9ed731095..9b234f4ec 100644 --- a/packages/google_maps_flutter/lib/src/marker.dart +++ b/packages/google_maps_flutter/lib/src/marker.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; // Marker Size const int _markerWidth = 24; diff --git a/packages/google_maps_flutter/lib/src/markers.dart b/packages/google_maps_flutter/lib/src/markers.dart index 1c14a87bf..5f80a0363 100644 --- a/packages/google_maps_flutter/lib/src/markers.dart +++ b/packages/google_maps_flutter/lib/src/markers.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// This class manages a set of [MarkerController]s associated to a [GoogleMapController]. class MarkersController extends GeometryController { diff --git a/packages/google_maps_flutter/lib/src/polygon.dart b/packages/google_maps_flutter/lib/src/polygon.dart index b776c3cc6..e8da652bc 100644 --- a/packages/google_maps_flutter/lib/src/polygon.dart +++ b/packages/google_maps_flutter/lib/src/polygon.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// The `PolygonController` class wraps a [GPolygon] and its `onTap` behavior. class PolygonController { diff --git a/packages/google_maps_flutter/lib/src/polygons.dart b/packages/google_maps_flutter/lib/src/polygons.dart index 7412156bb..6fce09366 100644 --- a/packages/google_maps_flutter/lib/src/polygons.dart +++ b/packages/google_maps_flutter/lib/src/polygons.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// This class manages a set of [PolygonController]s associated to a [GoogleMapController]. class PolygonsController extends GeometryController { diff --git a/packages/google_maps_flutter/lib/src/polyline.dart b/packages/google_maps_flutter/lib/src/polyline.dart index 1a4ada3c8..735d27dc6 100644 --- a/packages/google_maps_flutter/lib/src/polyline.dart +++ b/packages/google_maps_flutter/lib/src/polyline.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// The `PolygonController` class wraps a [GPolyline] and its `onTap` behavior. class PolylineController { diff --git a/packages/google_maps_flutter/lib/src/polylines.dart b/packages/google_maps_flutter/lib/src/polylines.dart index 684d6e40d..3d2996996 100644 --- a/packages/google_maps_flutter/lib/src/polylines.dart +++ b/packages/google_maps_flutter/lib/src/polylines.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// This class manages a set of [PolylinesController]s associated to a [GoogleMapController]. class PolylinesController extends GeometryController { diff --git a/packages/google_maps_flutter/lib/src/types.dart b/packages/google_maps_flutter/lib/src/types.dart index b16be4037..d2c6297ec 100644 --- a/packages/google_maps_flutter/lib/src/types.dart +++ b/packages/google_maps_flutter/lib/src/types.dart @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -part of google_maps_flutter_tizen; +part of '../google_maps_flutter_tizen.dart'; /// A void function that handles a [LatLng] as a parameter. /// diff --git a/packages/google_maps_flutter/lib/src/util.dart b/packages/google_maps_flutter/lib/src/util.dart index c28f9bc0d..bf8b7dedc 100644 --- a/packages/google_maps_flutter/lib/src/util.dart +++ b/packages/google_maps_flutter/lib/src/util.dart @@ -5,7 +5,7 @@ // ignore_for_file: avoid_setters_without_getters -//part of google_maps_flutter_tizen; +//part of '../google_maps_flutter_tizen.dart'; import 'dart:async'; import 'package:google_maps_flutter_platform_interface/google_maps_flutter_platform_interface.dart'; import 'package:webview_flutter/webview_flutter.dart'; diff --git a/packages/google_maps_flutter/pubspec.yaml b/packages/google_maps_flutter/pubspec.yaml index 236c6dc69..6df59323c 100644 --- a/packages/google_maps_flutter/pubspec.yaml +++ b/packages/google_maps_flutter/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/google version: 0.1.5 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/google_sign_in/CHANGELOG.md b/packages/google_sign_in/CHANGELOG.md index 7261b4b8b..bb4ed7ee6 100644 --- a/packages/google_sign_in/CHANGELOG.md +++ b/packages/google_sign_in/CHANGELOG.md @@ -1,6 +1,6 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 0.1.3 diff --git a/packages/google_sign_in/example/pubspec.yaml b/packages/google_sign_in/example/pubspec.yaml index ed9b2293d..aa6c711d2 100644 --- a/packages/google_sign_in/example/pubspec.yaml +++ b/packages/google_sign_in/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the google_sign_in_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/google_sign_in/pubspec.yaml b/packages/google_sign_in/pubspec.yaml index 9699c232e..9489b0365 100644 --- a/packages/google_sign_in/pubspec.yaml +++ b/packages/google_sign_in/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/google version: 0.1.3 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/image_picker/CHANGELOG.md b/packages/image_picker/CHANGELOG.md index de0ac1e0d..af5788c49 100644 --- a/packages/image_picker/CHANGELOG.md +++ b/packages/image_picker/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 2.3.0 * Update image_picker to 1.0.1. diff --git a/packages/image_picker/example/pubspec.yaml b/packages/image_picker/example/pubspec.yaml index 4ca30b94e..a78d7c00c 100644 --- a/packages/image_picker/example/pubspec.yaml +++ b/packages/image_picker/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/image_picker/pubspec.yaml b/packages/image_picker/pubspec.yaml index c55a817d7..c6932e538 100644 --- a/packages/image_picker/pubspec.yaml +++ b/packages/image_picker/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/image_ version: 2.3.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/in_app_purchase/CHANGELOG.md b/packages/in_app_purchase/CHANGELOG.md index 607323422..69186854a 100644 --- a/packages/in_app_purchase/CHANGELOG.md +++ b/packages/in_app_purchase/CHANGELOG.md @@ -1,3 +1,8 @@ +## NEXT + +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 0.1.0 * Initial release. diff --git a/packages/in_app_purchase/example/lib/main.dart b/packages/in_app_purchase/example/lib/main.dart index d34ba25a2..5236b7340 100644 --- a/packages/in_app_purchase/example/lib/main.dart +++ b/packages/in_app_purchase/example/lib/main.dart @@ -291,7 +291,7 @@ class _MyAppState extends State<_MyApp> { }); } - Future deliverProduct(PurchaseDetails purchaseDetails) async { + void deliverProduct(PurchaseDetails purchaseDetails) { // IMPORTANT!! Always verify purchase details before delivering the product. setState(() { _purchases.add(purchaseDetails); diff --git a/packages/in_app_purchase/example/pubspec.yaml b/packages/in_app_purchase/example/pubspec.yaml index 1571b753c..6b04bf5c3 100644 --- a/packages/in_app_purchase/example/pubspec.yaml +++ b/packages/in_app_purchase/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the in_app_purchase_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/in_app_purchase/lib/src/in_app_purchase_tizen_platform.dart b/packages/in_app_purchase/lib/src/in_app_purchase_tizen_platform.dart index 246c6da7e..47975be5c 100644 --- a/packages/in_app_purchase/lib/src/in_app_purchase_tizen_platform.dart +++ b/packages/in_app_purchase/lib/src/in_app_purchase_tizen_platform.dart @@ -140,7 +140,7 @@ class InAppPurchaseTizenPlatform extends InAppPurchasePlatform { final String invoiceId = billingResultWrapper.payDetails['InvoiceID'] ?? ''; - billingManager + unawaited(billingManager .requestPurchases() .then((GetUserPurchaseListAPIResult responses) { for (int i = 0; i < responses.invoiceDetails.length; i++) { @@ -163,7 +163,7 @@ class InAppPurchaseTizenPlatform extends InAppPurchasePlatform { } }).catchError((Object error) { _purchaseUpdatedController.addError(error); - }); + })); return true; } else { @@ -174,7 +174,7 @@ class InAppPurchaseTizenPlatform extends InAppPurchasePlatform { @override Future buyConsumable( {required PurchaseParam purchaseParam, bool autoConsume = true}) { - assert(autoConsume == true, 'On Tizen, we should always auto consume'); + assert(autoConsume, 'On Tizen, we should always auto consume'); return buyNonConsumable(purchaseParam: purchaseParam); } } diff --git a/packages/in_app_purchase/pubspec.yaml b/packages/in_app_purchase/pubspec.yaml index 10b7549fb..aef24d792 100644 --- a/packages/in_app_purchase/pubspec.yaml +++ b/packages/in_app_purchase/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/in_app version: 0.1.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/integration_test/CHANGELOG.md b/packages/integration_test/CHANGELOG.md index 2a00fab12..6d11a429d 100644 --- a/packages/integration_test/CHANGELOG.md +++ b/packages/integration_test/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 2.0.2 * Increase the minimum Flutter version to 3.3. diff --git a/packages/integration_test/example/pubspec.yaml b/packages/integration_test/example/pubspec.yaml index 6e3c94808..6299ae1be 100644 --- a/packages/integration_test/example/pubspec.yaml +++ b/packages/integration_test/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the integration_test_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/integration_test/pubspec.yaml b/packages/integration_test/pubspec.yaml index 68e82b330..b2d4c161c 100644 --- a/packages/integration_test/pubspec.yaml +++ b/packages/integration_test/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/integr version: 2.0.2 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/messageport/CHANGELOG.md b/packages/messageport/CHANGELOG.md index d86d8a64a..e0be66fcd 100644 --- a/packages/messageport/CHANGELOG.md +++ b/packages/messageport/CHANGELOG.md @@ -1,3 +1,8 @@ +## NEXT + +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 0.3.2 * Remove unnecessary `StreamHandlerError` implementation. diff --git a/packages/messageport/example/lib/main.dart b/packages/messageport/example/lib/main.dart index 1934a03bb..25979fdd0 100644 --- a/packages/messageport/example/lib/main.dart +++ b/packages/messageport/example/lib/main.dart @@ -67,7 +67,7 @@ class _MyAppState extends State { 'Unregister', () async { try { - _localPort?.unregister(); + await _localPort?.unregister(); _log('Local port unregistration done'); setState(() {}); } catch (error) { diff --git a/packages/messageport/example/pubspec.yaml b/packages/messageport/example/pubspec.yaml index 10da1b2c9..60650a3c9 100644 --- a/packages/messageport/example/pubspec.yaml +++ b/packages/messageport/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the messageport_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/messageport/pubspec.yaml b/packages/messageport/pubspec.yaml index f8f1c895a..039f7117b 100644 --- a/packages/messageport/pubspec.yaml +++ b/packages/messageport/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/messag version: 0.3.2 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/network_info_plus/CHANGELOG.md b/packages/network_info_plus/CHANGELOG.md index 6601fe1ae..8862813b6 100644 --- a/packages/network_info_plus/CHANGELOG.md +++ b/packages/network_info_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.1.4 * Update network_info_plus to 4.1.0. diff --git a/packages/network_info_plus/example/pubspec.yaml b/packages/network_info_plus/example/pubspec.yaml index 22b5f98bb..3343d2d45 100644 --- a/packages/network_info_plus/example/pubspec.yaml +++ b/packages/network_info_plus/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the network_info_plus_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/network_info_plus/pubspec.yaml b/packages/network_info_plus/pubspec.yaml index fd86e76c3..dc1466a29 100644 --- a/packages/network_info_plus/pubspec.yaml +++ b/packages/network_info_plus/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/networ version: 1.1.4 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/package_info_plus/CHANGELOG.md b/packages/package_info_plus/CHANGELOG.md index a98c65d7e..f35062f8f 100644 --- a/packages/package_info_plus/CHANGELOG.md +++ b/packages/package_info_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.0.3 * Update package_info_plus to 4.0.1. diff --git a/packages/package_info_plus/example/pubspec.yaml b/packages/package_info_plus/example/pubspec.yaml index 6429a6cbc..1a23cf763 100644 --- a/packages/package_info_plus/example/pubspec.yaml +++ b/packages/package_info_plus/example/pubspec.yaml @@ -4,8 +4,8 @@ version: 1.2.3+4 publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/package_info_plus/pubspec.yaml b/packages/package_info_plus/pubspec.yaml index 602318f94..0dbf97d78 100644 --- a/packages/package_info_plus/pubspec.yaml +++ b/packages/package_info_plus/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/packag version: 1.0.3 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/path_provider/CHANGELOG.md b/packages/path_provider/CHANGELOG.md index 7cff1c38e..11b8efc56 100644 --- a/packages/path_provider/CHANGELOG.md +++ b/packages/path_provider/CHANGELOG.md @@ -1,6 +1,7 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 2.1.0 diff --git a/packages/path_provider/example/pubspec.yaml b/packages/path_provider/example/pubspec.yaml index fd7131925..bbe56c324 100644 --- a/packages/path_provider/example/pubspec.yaml +++ b/packages/path_provider/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the path_provider_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/path_provider/lib/path_provider_tizen.dart b/packages/path_provider/lib/path_provider_tizen.dart index 2f3f73a90..3fda83ef4 100644 --- a/packages/path_provider/lib/path_provider_tizen.dart +++ b/packages/path_provider/lib/path_provider_tizen.dart @@ -39,31 +39,23 @@ class PathProviderPlugin extends PathProviderPlatform { switch (type) { case StorageDirectory.music: dirType = storage_directory_e.STORAGE_DIRECTORY_MUSIC; - break; case StorageDirectory.ringtones: dirType = storage_directory_e.STORAGE_DIRECTORY_SYSTEM_RINGTONES; - break; case StorageDirectory.pictures: dirType = storage_directory_e.STORAGE_DIRECTORY_IMAGES; - break; case StorageDirectory.movies: dirType = storage_directory_e.STORAGE_DIRECTORY_VIDEOS; - break; case StorageDirectory.downloads: dirType = storage_directory_e.STORAGE_DIRECTORY_DOWNLOADS; - break; case StorageDirectory.dcim: dirType = storage_directory_e.STORAGE_DIRECTORY_CAMERA; - break; case StorageDirectory.documents: dirType = storage_directory_e.STORAGE_DIRECTORY_DOCUMENTS; - break; case StorageDirectory.podcasts: case StorageDirectory.alarms: case StorageDirectory.notifications: case null: dirType = storage_directory_e.STORAGE_DIRECTORY_OTHERS; - break; } return [await storage.getDirectory(dirType)]; } diff --git a/packages/path_provider/pubspec.yaml b/packages/path_provider/pubspec.yaml index 3639f83e5..67608d42e 100644 --- a/packages/path_provider/pubspec.yaml +++ b/packages/path_provider/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/path_p version: 2.1.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/permission_handler/CHANGELOG.md b/packages/permission_handler/CHANGELOG.md index 40a9683c0..9e0a33a11 100644 --- a/packages/permission_handler/CHANGELOG.md +++ b/packages/permission_handler/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.3.0 * Increase the minimum Flutter version to 3.3. diff --git a/packages/permission_handler/example/pubspec.yaml b/packages/permission_handler/example/pubspec.yaml index 366e95207..c7b820bf6 100644 --- a/packages/permission_handler/example/pubspec.yaml +++ b/packages/permission_handler/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the permission_handler_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: baseflow_plugin_template: ^2.1.2 diff --git a/packages/permission_handler/pubspec.yaml b/packages/permission_handler/pubspec.yaml index 7eb25c35a..0101ca77a 100644 --- a/packages/permission_handler/pubspec.yaml +++ b/packages/permission_handler/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/permis version: 1.3.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/sensors_plus/CHANGELOG.md b/packages/sensors_plus/CHANGELOG.md index f9ec7375d..983d70bf3 100644 --- a/packages/sensors_plus/CHANGELOG.md +++ b/packages/sensors_plus/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.1.4 * Implement set*SamplingPeriod method call. diff --git a/packages/sensors_plus/example/pubspec.yaml b/packages/sensors_plus/example/pubspec.yaml index 582b38a3f..05781c44a 100644 --- a/packages/sensors_plus/example/pubspec.yaml +++ b/packages/sensors_plus/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the sensors_plus plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/sensors_plus/pubspec.yaml b/packages/sensors_plus/pubspec.yaml index 39557ad59..e32dc7559 100644 --- a/packages/sensors_plus/pubspec.yaml +++ b/packages/sensors_plus/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/sensor version: 1.1.4 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/shared_preferences/CHANGELOG.md b/packages/shared_preferences/CHANGELOG.md index cc8680c41..cc7f6a8b2 100644 --- a/packages/shared_preferences/CHANGELOG.md +++ b/packages/shared_preferences/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 2.2.0 * Increase the minimum Flutter version to 3.3. diff --git a/packages/shared_preferences/example/pubspec.yaml b/packages/shared_preferences/example/pubspec.yaml index 43021b29f..370134e0d 100644 --- a/packages/shared_preferences/example/pubspec.yaml +++ b/packages/shared_preferences/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the shared_preferences_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/shared_preferences/pubspec.yaml b/packages/shared_preferences/pubspec.yaml index 3d3ff391b..ec8449f6b 100644 --- a/packages/shared_preferences/pubspec.yaml +++ b/packages/shared_preferences/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/shared version: 2.2.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/sqflite/CHANGELOG.md b/packages/sqflite/CHANGELOG.md index 9d314d42f..e73b8b4eb 100644 --- a/packages/sqflite/CHANGELOG.md +++ b/packages/sqflite/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 0.1.3 * Update sqflite to 2.3.0. diff --git a/packages/sqflite/example/pubspec.yaml b/packages/sqflite/example/pubspec.yaml index 8e27f923a..2b3dee22e 100644 --- a/packages/sqflite/example/pubspec.yaml +++ b/packages/sqflite/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the sqflite_tizen plugin. publish_to: "none" environment: - sdk: ">=3.0.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: path: any diff --git a/packages/sqflite/pubspec.yaml b/packages/sqflite/pubspec.yaml index e076fb171..b9314840a 100644 --- a/packages/sqflite/pubspec.yaml +++ b/packages/sqflite/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/sqflit version: 0.1.3 environment: - sdk: ">=3.0.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/tizen_app_control/CHANGELOG.md b/packages/tizen_app_control/CHANGELOG.md index 7ecce192c..78f7bf8e5 100644 --- a/packages/tizen_app_control/CHANGELOG.md +++ b/packages/tizen_app_control/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 0.2.3 * Add static `AppControl.setAutoRestart` method. diff --git a/packages/tizen_app_control/example/pubspec.yaml b/packages/tizen_app_control/example/pubspec.yaml index 44f01621e..1f1787ee5 100644 --- a/packages/tizen_app_control/example/pubspec.yaml +++ b/packages/tizen_app_control/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the tizen_app_control plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_app_control/pubspec.yaml b/packages/tizen_app_control/pubspec.yaml index 2ca7021f6..29ad2c1c0 100644 --- a/packages/tizen_app_control/pubspec.yaml +++ b/packages/tizen_app_control/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/tizen_ version: 0.2.3 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: ffi: ">=1.1.2 <3.0.0" diff --git a/packages/tizen_app_manager/CHANGELOG.md b/packages/tizen_app_manager/CHANGELOG.md index 6b29a35b6..d68e1be8c 100644 --- a/packages/tizen_app_manager/CHANGELOG.md +++ b/packages/tizen_app_manager/CHANGELOG.md @@ -1,6 +1,6 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 0.2.2 diff --git a/packages/tizen_app_manager/example/pubspec.yaml b/packages/tizen_app_manager/example/pubspec.yaml index 6a479c375..8c0bce06b 100644 --- a/packages/tizen_app_manager/example/pubspec.yaml +++ b/packages/tizen_app_manager/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the tizen_app_manager plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: device_info_plus_tizen: diff --git a/packages/tizen_app_manager/pubspec.yaml b/packages/tizen_app_manager/pubspec.yaml index d9c095986..6889bf91f 100644 --- a/packages/tizen_app_manager/pubspec.yaml +++ b/packages/tizen_app_manager/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/tizen_ version: 0.2.2 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: ffi: ^2.0.1 diff --git a/packages/tizen_audio_manager/CHANGELOG.md b/packages/tizen_audio_manager/CHANGELOG.md index 99160da5c..8edf00065 100644 --- a/packages/tizen_audio_manager/CHANGELOG.md +++ b/packages/tizen_audio_manager/CHANGELOG.md @@ -1,6 +1,7 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 0.1.1 diff --git a/packages/tizen_audio_manager/example/integration_test/audio_manager_test.dart b/packages/tizen_audio_manager/example/integration_test/audio_manager_test.dart index 1aac584b3..f4cde6516 100644 --- a/packages/tizen_audio_manager/example/integration_test/audio_manager_test.dart +++ b/packages/tizen_audio_manager/example/integration_test/audio_manager_test.dart @@ -60,12 +60,12 @@ void main() { testWidgets('test alarm set level', (WidgetTester tester) async { final int max = await AudioManager.volumeController.getMaxLevel(AudioVolumeType.alarm); - AudioManager.volumeController.setLevel(AudioVolumeType.alarm, max); + await AudioManager.volumeController.setLevel(AudioVolumeType.alarm, max); int level = await AudioManager.volumeController.getLevel(AudioVolumeType.alarm); expect(level, equals(max)); - AudioManager.volumeController.setLevel(AudioVolumeType.alarm, 0); + await AudioManager.volumeController.setLevel(AudioVolumeType.alarm, 0); level = await AudioManager.volumeController.getLevel(AudioVolumeType.alarm); expect(level, equals(0)); }); @@ -73,12 +73,12 @@ void main() { testWidgets('test call set level', (WidgetTester tester) async { final int max = await AudioManager.volumeController.getMaxLevel(AudioVolumeType.call); - AudioManager.volumeController.setLevel(AudioVolumeType.call, max); + await AudioManager.volumeController.setLevel(AudioVolumeType.call, max); int level = await AudioManager.volumeController.getLevel(AudioVolumeType.call); expect(level, equals(max)); - AudioManager.volumeController.setLevel(AudioVolumeType.call, 0); + await AudioManager.volumeController.setLevel(AudioVolumeType.call, 0); level = await AudioManager.volumeController.getLevel(AudioVolumeType.call); expect(level, equals(0)); }); @@ -86,12 +86,12 @@ void main() { testWidgets('test media set level', (WidgetTester tester) async { final int max = await AudioManager.volumeController.getMaxLevel(AudioVolumeType.media); - AudioManager.volumeController.setLevel(AudioVolumeType.media, max); + await AudioManager.volumeController.setLevel(AudioVolumeType.media, max); int level = await AudioManager.volumeController.getLevel(AudioVolumeType.media); expect(level, equals(max)); - AudioManager.volumeController.setLevel(AudioVolumeType.media, 0); + await AudioManager.volumeController.setLevel(AudioVolumeType.media, 0); level = await AudioManager.volumeController.getLevel(AudioVolumeType.media); expect(level, equals(0)); }); @@ -99,12 +99,14 @@ void main() { testWidgets('test notification set level', (WidgetTester tester) async { final int max = await AudioManager.volumeController .getMaxLevel(AudioVolumeType.notification); - AudioManager.volumeController.setLevel(AudioVolumeType.notification, max); + await AudioManager.volumeController + .setLevel(AudioVolumeType.notification, max); int level = await AudioManager.volumeController .getLevel(AudioVolumeType.notification); expect(level, equals(max)); - AudioManager.volumeController.setLevel(AudioVolumeType.notification, 0); + await AudioManager.volumeController + .setLevel(AudioVolumeType.notification, 0); level = await AudioManager.volumeController .getLevel(AudioVolumeType.notification); expect(level, equals(0)); @@ -113,12 +115,12 @@ void main() { testWidgets('test ringtone set level', (WidgetTester tester) async { final int max = await AudioManager.volumeController .getMaxLevel(AudioVolumeType.ringtone); - AudioManager.volumeController.setLevel(AudioVolumeType.ringtone, max); + await AudioManager.volumeController.setLevel(AudioVolumeType.ringtone, max); int level = await AudioManager.volumeController.getLevel(AudioVolumeType.ringtone); expect(level, equals(max)); - AudioManager.volumeController.setLevel(AudioVolumeType.ringtone, 0); + await AudioManager.volumeController.setLevel(AudioVolumeType.ringtone, 0); level = await AudioManager.volumeController.getLevel(AudioVolumeType.ringtone); expect(level, equals(0)); @@ -127,12 +129,12 @@ void main() { testWidgets('test system set level', (WidgetTester tester) async { final int max = await AudioManager.volumeController.getMaxLevel(AudioVolumeType.system); - AudioManager.volumeController.setLevel(AudioVolumeType.system, max); + await AudioManager.volumeController.setLevel(AudioVolumeType.system, max); int level = await AudioManager.volumeController.getLevel(AudioVolumeType.system); expect(level, equals(max)); - AudioManager.volumeController.setLevel(AudioVolumeType.system, 0); + await AudioManager.volumeController.setLevel(AudioVolumeType.system, 0); level = await AudioManager.volumeController.getLevel(AudioVolumeType.system); expect(level, equals(0)); @@ -141,12 +143,12 @@ void main() { testWidgets('test voice set level', (WidgetTester tester) async { final int max = await AudioManager.volumeController.getMaxLevel(AudioVolumeType.voice); - AudioManager.volumeController.setLevel(AudioVolumeType.voice, max); + await AudioManager.volumeController.setLevel(AudioVolumeType.voice, max); int level = await AudioManager.volumeController.getLevel(AudioVolumeType.voice); expect(level, equals(max)); - AudioManager.volumeController.setLevel(AudioVolumeType.voice, 0); + await AudioManager.volumeController.setLevel(AudioVolumeType.voice, 0); level = await AudioManager.volumeController.getLevel(AudioVolumeType.voice); expect(level, equals(0)); }); @@ -154,12 +156,12 @@ void main() { testWidgets('test voip set level', (WidgetTester tester) async { final int max = await AudioManager.volumeController.getMaxLevel(AudioVolumeType.voip); - AudioManager.volumeController.setLevel(AudioVolumeType.voip, max); + await AudioManager.volumeController.setLevel(AudioVolumeType.voip, max); int level = await AudioManager.volumeController.getLevel(AudioVolumeType.voip); expect(level, equals(max)); - AudioManager.volumeController.setLevel(AudioVolumeType.voip, 0); + await AudioManager.volumeController.setLevel(AudioVolumeType.voip, 0); level = await AudioManager.volumeController.getLevel(AudioVolumeType.voip); expect(level, equals(0)); }); diff --git a/packages/tizen_audio_manager/example/pubspec.yaml b/packages/tizen_audio_manager/example/pubspec.yaml index 3a8d64b19..b2df5c19b 100644 --- a/packages/tizen_audio_manager/example/pubspec.yaml +++ b/packages/tizen_audio_manager/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the tizen_audio_manager plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_audio_manager/pubspec.yaml b/packages/tizen_audio_manager/pubspec.yaml index 8a3526378..7e391f588 100644 --- a/packages/tizen_audio_manager/pubspec.yaml +++ b/packages/tizen_audio_manager/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/tizen_ version: 0.1.1 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_bundle/CHANGELOG.md b/packages/tizen_bundle/CHANGELOG.md index 9efd7e3cb..4b7e81c02 100644 --- a/packages/tizen_bundle/CHANGELOG.md +++ b/packages/tizen_bundle/CHANGELOG.md @@ -1,6 +1,6 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. * Fix token in finalizer to be different from value. ## 0.1.1 diff --git a/packages/tizen_bundle/example/pubspec.yaml b/packages/tizen_bundle/example/pubspec.yaml index 0691c15e3..51952345d 100644 --- a/packages/tizen_bundle/example/pubspec.yaml +++ b/packages/tizen_bundle/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the tizen_bundle plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_bundle/pubspec.yaml b/packages/tizen_bundle/pubspec.yaml index 192f15871..592d54f6b 100644 --- a/packages/tizen_bundle/pubspec.yaml +++ b/packages/tizen_bundle/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/tizen_ version: 0.1.1 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: ffi: ^2.0.1 diff --git a/packages/tizen_log/CHANGELOG.md b/packages/tizen_log/CHANGELOG.md index bd85a0657..7c0a8fa24 100644 --- a/packages/tizen_log/CHANGELOG.md +++ b/packages/tizen_log/CHANGELOG.md @@ -1,6 +1,7 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. +* Fix new lint warnings. ## 0.1.2 diff --git a/packages/tizen_log/example/pubspec.yaml b/packages/tizen_log/example/pubspec.yaml index af034ba1e..318b1d3d4 100644 --- a/packages/tizen_log/example/pubspec.yaml +++ b/packages/tizen_log/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the tizen_log plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_log/lib/tizen_log.dart b/packages/tizen_log/lib/tizen_log.dart index deb3698c2..c762fd2e7 100644 --- a/packages/tizen_log/lib/tizen_log.dart +++ b/packages/tizen_log/lib/tizen_log.dart @@ -175,7 +175,7 @@ class Log { _stackTraceRegExp.allMatches(StackTrace.current.toString()); for (final RegExpMatch match in matches) { final List groups = match.groups([1, 2, 3, 4]); - if (groups.any((String? group) => group == null) == false) { + if (!groups.any((String? group) => group == null)) { final int frameIndex = int.parse(groups[0]!); if (frameIndex == index) { final List funcParts = groups[1]!.trim().split('.'); @@ -197,17 +197,17 @@ class Log { } } -class _LogPriority { +enum _LogPriority { + verbose._(2), + debug._(3), + info._(4), + warn._(5), + error._(6), + fatal._(7); + const _LogPriority._(this.value); final int value; - - static const _LogPriority verbose = _LogPriority._(2); - static const _LogPriority debug = _LogPriority._(3); - static const _LogPriority info = _LogPriority._(4); - static const _LogPriority warn = _LogPriority._(5); - static const _LogPriority error = _LogPriority._(6); - static const _LogPriority fatal = _LogPriority._(7); } class _StackFrame { diff --git a/packages/tizen_log/pubspec.yaml b/packages/tizen_log/pubspec.yaml index 80d3b35fa..3fe1562bc 100644 --- a/packages/tizen_log/pubspec.yaml +++ b/packages/tizen_log/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/tizen_ version: 0.1.2 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: ffi: ">=1.1.2 <3.0.0" diff --git a/packages/tizen_notification/CHANGELOG.md b/packages/tizen_notification/CHANGELOG.md index 897b07b51..4c9b98268 100644 --- a/packages/tizen_notification/CHANGELOG.md +++ b/packages/tizen_notification/CHANGELOG.md @@ -1,6 +1,6 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 0.2.0 diff --git a/packages/tizen_notification/example/pubspec.yaml b/packages/tizen_notification/example/pubspec.yaml index c42095353..212ca9530 100644 --- a/packages/tizen_notification/example/pubspec.yaml +++ b/packages/tizen_notification/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the tizen_notification plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_notification/pubspec.yaml b/packages/tizen_notification/pubspec.yaml index 6ee6e353a..26797b185 100644 --- a/packages/tizen_notification/pubspec.yaml +++ b/packages/tizen_notification/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/tizen_ version: 0.2.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_package_manager/CHANGELOG.md b/packages/tizen_package_manager/CHANGELOG.md index 13f81291f..fe8fa17be 100644 --- a/packages/tizen_package_manager/CHANGELOG.md +++ b/packages/tizen_package_manager/CHANGELOG.md @@ -1,6 +1,6 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 0.2.1 diff --git a/packages/tizen_package_manager/example/pubspec.yaml b/packages/tizen_package_manager/example/pubspec.yaml index ac8588b85..26baa7ade 100644 --- a/packages/tizen_package_manager/example/pubspec.yaml +++ b/packages/tizen_package_manager/example/pubspec.yaml @@ -4,8 +4,8 @@ version: 1.0.0 publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_package_manager/pubspec.yaml b/packages/tizen_package_manager/pubspec.yaml index 41fa01dc5..51d85aa87 100644 --- a/packages/tizen_package_manager/pubspec.yaml +++ b/packages/tizen_package_manager/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/tizen_ version: 0.2.1 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_rpc_port/CHANGELOG.md b/packages/tizen_rpc_port/CHANGELOG.md index f6d635da9..2ff75ec51 100644 --- a/packages/tizen_rpc_port/CHANGELOG.md +++ b/packages/tizen_rpc_port/CHANGELOG.md @@ -1,6 +1,8 @@ ## NEXT * Fix token in finalizer to be different from value. +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 0.1.3 diff --git a/packages/tizen_rpc_port/example/client/analysis_options.yaml b/packages/tizen_rpc_port/example/client/analysis_options.yaml new file mode 100644 index 000000000..431fc6883 --- /dev/null +++ b/packages/tizen_rpc_port/example/client/analysis_options.yaml @@ -0,0 +1,6 @@ +include: ../../../../analysis_options.yaml + +analyzer: +linter: + rules: + unawaited_futures: false diff --git a/packages/tizen_rpc_port/example/client/pubspec.yaml b/packages/tizen_rpc_port/example/client/pubspec.yaml index aa28df0cb..b83f036d9 100644 --- a/packages/tizen_rpc_port/example/client/pubspec.yaml +++ b/packages/tizen_rpc_port/example/client/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the tizen_rpc_port client API. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_rpc_port/example/server/analysis_options.yaml b/packages/tizen_rpc_port/example/server/analysis_options.yaml new file mode 100644 index 000000000..431fc6883 --- /dev/null +++ b/packages/tizen_rpc_port/example/server/analysis_options.yaml @@ -0,0 +1,6 @@ +include: ../../../../analysis_options.yaml + +analyzer: +linter: + rules: + unawaited_futures: false diff --git a/packages/tizen_rpc_port/example/server/lib/main.dart b/packages/tizen_rpc_port/example/server/lib/main.dart index cb2233c36..24a55543f 100644 --- a/packages/tizen_rpc_port/example/server/lib/main.dart +++ b/packages/tizen_rpc_port/example/server/lib/main.dart @@ -42,7 +42,7 @@ class EchoService extends ServiceBase { Future onSend(String message) async { print('Received: $message'); if (_callback != null) { - _callback!.invoke(_name!, message); + await _callback!.invoke(_name!, message); } return 0; } diff --git a/packages/tizen_rpc_port/example/server/pubspec.yaml b/packages/tizen_rpc_port/example/server/pubspec.yaml index 55c912e2d..df06c6149 100644 --- a/packages/tizen_rpc_port/example/server/pubspec.yaml +++ b/packages/tizen_rpc_port/example/server/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the tizen_rpc_port server API. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/tizen_rpc_port/lib/src/proxy_base.dart b/packages/tizen_rpc_port/lib/src/proxy_base.dart index e546e1425..29ca62c1d 100644 --- a/packages/tizen_rpc_port/lib/src/proxy_base.dart +++ b/packages/tizen_rpc_port/lib/src/proxy_base.dart @@ -109,13 +109,13 @@ abstract class ProxyBase { } else if (event == 'disconnected') { _isConnected = false; await _onDisconnectedEvent(); - _streamSubscription?.cancel(); + await _streamSubscription?.cancel(); _streamSubscription = null; } else if (event == 'rejected') { _isConnected = false; final String error = map['error'] as String; await _onRejectedEvent(error); - _streamSubscription?.cancel(); + await _streamSubscription?.cancel(); _streamSubscription = null; } else if (event == 'received') { final Uint8List rawData = map['rawData'] as Uint8List; diff --git a/packages/tizen_rpc_port/lib/src/stub_base.dart b/packages/tizen_rpc_port/lib/src/stub_base.dart index 1227188b1..ba3b0eec8 100644 --- a/packages/tizen_rpc_port/lib/src/stub_base.dart +++ b/packages/tizen_rpc_port/lib/src/stub_base.dart @@ -130,7 +130,7 @@ abstract class StubBase { /// All active connections will be closed immediately. No operation can be /// made to this stub after this call. Future close() async { - _streamSubscription?.cancel(); + await _streamSubscription?.cancel(); tizen.rpc_port_stub_destroy(_handle); } diff --git a/packages/tizen_rpc_port/pubspec.yaml b/packages/tizen_rpc_port/pubspec.yaml index 504639119..992378a14 100644 --- a/packages/tizen_rpc_port/pubspec.yaml +++ b/packages/tizen_rpc_port/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/tizen_ version: 0.1.3 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: ffi: ^2.0.1 diff --git a/packages/url_launcher/CHANGELOG.md b/packages/url_launcher/CHANGELOG.md index fea07286c..e2c52ca04 100644 --- a/packages/url_launcher/CHANGELOG.md +++ b/packages/url_launcher/CHANGELOG.md @@ -1,6 +1,6 @@ ## NEXT -* Increase the minimum Flutter version to 3.3. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 2.1.2 diff --git a/packages/url_launcher/example/pubspec.yaml b/packages/url_launcher/example/pubspec.yaml index 50ec32baa..c953bea19 100644 --- a/packages/url_launcher/example/pubspec.yaml +++ b/packages/url_launcher/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the url_launcher_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/url_launcher/pubspec.yaml b/packages/url_launcher/pubspec.yaml index 1f1d5982b..dd246e432 100644 --- a/packages/url_launcher/pubspec.yaml +++ b/packages/url_launcher/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/url_la version: 2.1.2 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/video_player/CHANGELOG.md b/packages/video_player/CHANGELOG.md index 13478ee63..3f0e106d9 100644 --- a/packages/video_player/CHANGELOG.md +++ b/packages/video_player/CHANGELOG.md @@ -1,3 +1,8 @@ +## NEXT + +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 2.4.9 * Fix event channel issue, sending messages from native to Flutter on the platform thread. diff --git a/packages/video_player/example/lib/main.dart b/packages/video_player/example/lib/main.dart index 000fdfc87..c1ab86097 100644 --- a/packages/video_player/example/lib/main.dart +++ b/packages/video_player/example/lib/main.dart @@ -6,6 +6,8 @@ /// An example of using the plugin, controlling lifecycle and playback of the /// video. +library; + import 'package:flutter/material.dart'; import 'package:video_player/video_player.dart'; @@ -299,9 +301,9 @@ class _ControlsOverlay extends StatelessWidget { reverseDuration: const Duration(milliseconds: 200), child: controller.value.isPlaying ? const SizedBox.shrink() - : Container( + : const ColoredBox( color: Colors.black26, - child: const Center( + child: Center( child: Icon( Icons.play_arrow, color: Colors.white, diff --git a/packages/video_player/example/pubspec.yaml b/packages/video_player/example/pubspec.yaml index 252d7b760..5d553675a 100644 --- a/packages/video_player/example/pubspec.yaml +++ b/packages/video_player/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the video_player_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/video_player/lib/video_player_tizen.dart b/packages/video_player/lib/video_player_tizen.dart index 4867fd6b8..2a4ba3359 100644 --- a/packages/video_player/lib/video_player_tizen.dart +++ b/packages/video_player/lib/video_player_tizen.dart @@ -41,18 +41,14 @@ class VideoPlayerTizen extends VideoPlayerPlatform { case DataSourceType.asset: asset = dataSource.asset; packageName = dataSource.package; - break; case DataSourceType.network: uri = dataSource.uri; formatHint = _videoFormatStringMap[dataSource.formatHint]; httpHeaders = dataSource.httpHeaders; - break; case DataSourceType.file: uri = dataSource.uri; - break; case DataSourceType.contentUri: uri = dataSource.uri; - break; } final CreateMessage message = CreateMessage( asset: asset, diff --git a/packages/video_player/pubspec.yaml b/packages/video_player/pubspec.yaml index 55dec9357..98cf21e23 100644 --- a/packages/video_player/pubspec.yaml +++ b/packages/video_player/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/video_ version: 2.4.9 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/video_player_avplay/CHANGELOG.md b/packages/video_player_avplay/CHANGELOG.md index 37b9537c9..79ca7abb8 100644 --- a/packages/video_player_avplay/CHANGELOG.md +++ b/packages/video_player_avplay/CHANGELOG.md @@ -1,3 +1,8 @@ +## NEXT + +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 0.4.0 * Minor refactor. diff --git a/packages/video_player_avplay/example/lib/main.dart b/packages/video_player_avplay/example/lib/main.dart index f6e6b049e..d07cab6bc 100644 --- a/packages/video_player_avplay/example/lib/main.dart +++ b/packages/video_player_avplay/example/lib/main.dart @@ -6,6 +6,7 @@ /// An example of using the plugin, controlling lifecycle and playback of the /// video. +library; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -536,9 +537,9 @@ class _ControlsOverlay extends StatelessWidget { reverseDuration: const Duration(milliseconds: 200), child: controller.value.isPlaying ? const SizedBox.shrink() - : Container( + : const ColoredBox( color: Colors.black26, - child: const Center( + child: Center( child: Icon( Icons.play_arrow, color: Colors.white, diff --git a/packages/video_player_avplay/example/pubspec.yaml b/packages/video_player_avplay/example/pubspec.yaml index f32e1231a..6eaf44bc8 100644 --- a/packages/video_player_avplay/example/pubspec.yaml +++ b/packages/video_player_avplay/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the video_player_avplay plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/video_player_avplay/lib/src/video_player_tizen.dart b/packages/video_player_avplay/lib/src/video_player_tizen.dart index 1350b71fc..df2aa1eaf 100644 --- a/packages/video_player_avplay/lib/src/video_player_tizen.dart +++ b/packages/video_player_avplay/lib/src/video_player_tizen.dart @@ -33,7 +33,6 @@ class VideoPlayerTizen extends VideoPlayerPlatform { case DataSourceType.asset: message.asset = dataSource.asset; message.packageName = dataSource.package; - break; case DataSourceType.network: message.uri = dataSource.uri; message.formatHint = _videoFormatStringMap[dataSource.formatHint]; @@ -47,13 +46,10 @@ class VideoPlayerTizen extends VideoPlayerPlatform { in dataSource.streamingProperty!.entries) _streamingPropertyType[entry.key]!: entry.value }; - break; case DataSourceType.file: message.uri = dataSource.uri; - break; case DataSourceType.contentUri: message.uri = dataSource.uri; - break; } final PlayerMessage response = await _api.create(message); diff --git a/packages/video_player_avplay/lib/video_player.dart b/packages/video_player_avplay/lib/video_player.dart index 2e84e1ad5..585ba968b 100644 --- a/packages/video_player_avplay/lib/video_player.dart +++ b/packages/video_player_avplay/lib/video_player.dart @@ -377,7 +377,6 @@ class VideoPlayerController extends ValueNotifier { asset: dataSource, package: package, ); - break; case DataSourceType.network: dataSourceDescription = DataSource( sourceType: DataSourceType.network, @@ -388,19 +387,16 @@ class VideoPlayerController extends ValueNotifier { playerOptions: playerOptions, streamingProperty: streamingProperty, ); - break; case DataSourceType.file: dataSourceDescription = DataSource( sourceType: DataSourceType.file, uri: dataSource, ); - break; case DataSourceType.contentUri: dataSourceDescription = DataSource( sourceType: DataSourceType.contentUri, uri: dataSource, ); - break; } if (videoPlayerOptions?.mixWithOthers != null) { @@ -435,7 +431,6 @@ class VideoPlayerController extends ValueNotifier { _applyVolume(); _durationTimer?.cancel(); _durationTimer = _createDurationTimer(); - break; case VideoEventType.completed: // In this case we need to stop _timer, set isPlaying=false, and // position=value.duration. Instead of setting the values directly, @@ -443,16 +438,12 @@ class VideoPlayerController extends ValueNotifier { // and seeks to the last frame of the video. pause().then((void pauseResult) => seekTo(value.duration.end)); _durationTimer?.cancel(); - break; case VideoEventType.bufferingUpdate: value = value.copyWith(buffered: event.buffered); - break; case VideoEventType.bufferingStart: value = value.copyWith(isBuffering: true); - break; case VideoEventType.bufferingEnd: value = value.copyWith(isBuffering: false); - break; case VideoEventType.subtitleUpdate: final Caption caption = Caption( number: 0, @@ -461,7 +452,6 @@ class VideoPlayerController extends ValueNotifier { text: event.text ?? '', ); value = value.copyWith(caption: caption); - break; case VideoEventType.unknown: break; } diff --git a/packages/video_player_avplay/pubspec.yaml b/packages/video_player_avplay/pubspec.yaml index 414b08131..9ce4f45ef 100644 --- a/packages/video_player_avplay/pubspec.yaml +++ b/packages/video_player_avplay/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/video_ version: 0.4.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/video_player_videohole/CHANGELOG.md b/packages/video_player_videohole/CHANGELOG.md index 5b5b0c862..e590ef27f 100644 --- a/packages/video_player_videohole/CHANGELOG.md +++ b/packages/video_player_videohole/CHANGELOG.md @@ -1,3 +1,8 @@ +## NEXT + +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 0.5.1 * Free response buffer after install key. diff --git a/packages/video_player_videohole/example/lib/main.dart b/packages/video_player_videohole/example/lib/main.dart index 5a953b672..7b07aee9d 100644 --- a/packages/video_player_videohole/example/lib/main.dart +++ b/packages/video_player_videohole/example/lib/main.dart @@ -6,6 +6,7 @@ /// An example of using the plugin, controlling lifecycle and playback of the /// video. +library; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -471,9 +472,9 @@ class _ControlsOverlay extends StatelessWidget { reverseDuration: const Duration(milliseconds: 200), child: controller.value.isPlaying ? const SizedBox.shrink() - : Container( + : const ColoredBox( color: Colors.black26, - child: const Center( + child: Center( child: Icon( Icons.play_arrow, color: Colors.white, diff --git a/packages/video_player_videohole/example/pubspec.yaml b/packages/video_player_videohole/example/pubspec.yaml index 964c322c6..7492e1cce 100644 --- a/packages/video_player_videohole/example/pubspec.yaml +++ b/packages/video_player_videohole/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the video_player_videohole plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/video_player_videohole/lib/src/video_player_tizen.dart b/packages/video_player_videohole/lib/src/video_player_tizen.dart index 5ec4e1e2b..90310927c 100644 --- a/packages/video_player_videohole/lib/src/video_player_tizen.dart +++ b/packages/video_player_videohole/lib/src/video_player_tizen.dart @@ -35,20 +35,16 @@ class VideoPlayerTizen extends VideoPlayerPlatform { case DataSourceType.asset: message.asset = dataSource.asset; message.packageName = dataSource.package; - break; case DataSourceType.network: message.uri = dataSource.uri; message.formatHint = _videoFormatStringMap[dataSource.formatHint]; message.httpHeaders = dataSource.httpHeaders; message.drmConfigs = dataSource.drmConfigs?.toMap(); message.playerOptions = dataSource.playerOptions; - break; case DataSourceType.file: message.uri = dataSource.uri; - break; case DataSourceType.contentUri: message.uri = dataSource.uri; - break; } final PlayerMessage response = await _api.create(message); diff --git a/packages/video_player_videohole/lib/video_player.dart b/packages/video_player_videohole/lib/video_player.dart index 8f660bc34..9b079312f 100644 --- a/packages/video_player_videohole/lib/video_player.dart +++ b/packages/video_player_videohole/lib/video_player.dart @@ -368,7 +368,6 @@ class VideoPlayerController extends ValueNotifier { asset: dataSource, package: package, ); - break; case DataSourceType.network: dataSourceDescription = DataSource( sourceType: DataSourceType.network, @@ -378,19 +377,16 @@ class VideoPlayerController extends ValueNotifier { drmConfigs: drmConfigs, playerOptions: playerOptions, ); - break; case DataSourceType.file: dataSourceDescription = DataSource( sourceType: DataSourceType.file, uri: dataSource, ); - break; case DataSourceType.contentUri: dataSourceDescription = DataSource( sourceType: DataSourceType.contentUri, uri: dataSource, ); - break; } if (videoPlayerOptions?.mixWithOthers != null) { @@ -422,7 +418,6 @@ class VideoPlayerController extends ValueNotifier { _applyPlayPause(); _durationTimer?.cancel(); _durationTimer = _createDurationTimer(); - break; case VideoEventType.completed: // In this case we need to stop _timer, set isPlaying=false, and // position=value.duration. Instead of setting the values directly, @@ -430,16 +425,12 @@ class VideoPlayerController extends ValueNotifier { // and seeks to the last frame of the video. pause().then((void pauseResult) => seekTo(value.duration.end)); _durationTimer?.cancel(); - break; case VideoEventType.bufferingUpdate: value = value.copyWith(buffered: event.buffered); - break; case VideoEventType.bufferingStart: value = value.copyWith(isBuffering: true); - break; case VideoEventType.bufferingEnd: value = value.copyWith(isBuffering: false); - break; case VideoEventType.subtitleUpdate: final Caption caption = Caption( number: 0, @@ -448,7 +439,6 @@ class VideoPlayerController extends ValueNotifier { text: event.text ?? '', ); value = value.copyWith(caption: caption); - break; case VideoEventType.unknown: break; } diff --git a/packages/video_player_videohole/pubspec.yaml b/packages/video_player_videohole/pubspec.yaml index 2e2ef26e2..09bdffcb3 100644 --- a/packages/video_player_videohole/pubspec.yaml +++ b/packages/video_player_videohole/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/video_ version: 0.5.1 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/wakelock/CHANGELOG.md b/packages/wakelock/CHANGELOG.md index b269aeb8b..2beea4025 100644 --- a/packages/wakelock/CHANGELOG.md +++ b/packages/wakelock/CHANGELOG.md @@ -1,3 +1,7 @@ +## NEXT + +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 1.0.2 * Switch to a MethodChannel-based implementation. diff --git a/packages/wakelock/example/pubspec.yaml b/packages/wakelock/example/pubspec.yaml index 362b2b9c3..bf6bfefc9 100644 --- a/packages/wakelock/example/pubspec.yaml +++ b/packages/wakelock/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the wakelock_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/wakelock/pubspec.yaml b/packages/wakelock/pubspec.yaml index ed35450eb..e2623841a 100644 --- a/packages/wakelock/pubspec.yaml +++ b/packages/wakelock/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/wakelo version: 1.0.2 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/wearable_rotary/CHANGELOG.md b/packages/wearable_rotary/CHANGELOG.md index c4c061c27..a6e10b091 100644 --- a/packages/wearable_rotary/CHANGELOG.md +++ b/packages/wearable_rotary/CHANGELOG.md @@ -1,3 +1,8 @@ +## NEXT + +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 2.0.2 * Adds namespace to `build.gradle` for compatibility with Gradle 8 diff --git a/packages/wearable_rotary/example/pubspec.yaml b/packages/wearable_rotary/example/pubspec.yaml index c86a406ea..dc05ccd86 100644 --- a/packages/wearable_rotary/example/pubspec.yaml +++ b/packages/wearable_rotary/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the wearable_rotary plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/wearable_rotary/lib/wearable_rotary.dart b/packages/wearable_rotary/lib/wearable_rotary.dart index c0f9f688f..b15569f9c 100644 --- a/packages/wearable_rotary/lib/wearable_rotary.dart +++ b/packages/wearable_rotary/lib/wearable_rotary.dart @@ -1,4 +1,2 @@ -library wearable_rotary; - export 'src/rotary_scroll_controller.dart'; export 'src/wearable_rotary_base.dart'; diff --git a/packages/wearable_rotary/pubspec.yaml b/packages/wearable_rotary/pubspec.yaml index 459475cda..aea02a715 100644 --- a/packages/wearable_rotary/pubspec.yaml +++ b/packages/wearable_rotary/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/wearab version: 2.0.2 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/webview_flutter/CHANGELOG.md b/packages/webview_flutter/CHANGELOG.md index 859fa9135..9042c43b4 100644 --- a/packages/webview_flutter/CHANGELOG.md +++ b/packages/webview_flutter/CHANGELOG.md @@ -1,6 +1,8 @@ ## NEXT * Add ewk_set_version_policy() call. +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. ## 0.9.0 diff --git a/packages/webview_flutter/example/lib/main.dart b/packages/webview_flutter/example/lib/main.dart index cdd059f42..6ca2ba8a1 100644 --- a/packages/webview_flutter/example/lib/main.dart +++ b/packages/webview_flutter/example/lib/main.dart @@ -231,46 +231,32 @@ class SampleMenu extends StatelessWidget { switch (value) { case MenuOptions.showUserAgent: _onShowUserAgent(); - break; case MenuOptions.listCookies: _onListCookies(context); - break; case MenuOptions.clearCookies: _onClearCookies(context); - break; case MenuOptions.addToCache: _onAddToCache(context); - break; case MenuOptions.listCache: _onListCache(); - break; case MenuOptions.clearCache: _onClearCache(context); - break; case MenuOptions.navigationDelegate: _onNavigationDelegateExample(); - break; case MenuOptions.doPostRequest: _onDoPostRequest(); - break; case MenuOptions.loadLocalFile: _onLoadLocalFileExample(); - break; case MenuOptions.loadFlutterAsset: _onLoadFlutterAssetExample(); - break; case MenuOptions.loadHtmlString: _onLoadHtmlStringExample(); - break; case MenuOptions.transparentBackground: _onTransparentBackground(); - break; case MenuOptions.setCookie: _onSetCookie(); - break; case MenuOptions.logExample: _onLogExample(); - break; } }, itemBuilder: (BuildContext context) => >[ diff --git a/packages/webview_flutter/example/pubspec.yaml b/packages/webview_flutter/example/pubspec.yaml index e06c60cb6..b164e920e 100644 --- a/packages/webview_flutter/example/pubspec.yaml +++ b/packages/webview_flutter/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter_tizen plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/webview_flutter/lib/src/tizen_webview_controller.dart b/packages/webview_flutter/lib/src/tizen_webview_controller.dart index 88a47bb9c..355f35c89 100644 --- a/packages/webview_flutter/lib/src/tizen_webview_controller.dart +++ b/packages/webview_flutter/lib/src/tizen_webview_controller.dart @@ -47,19 +47,14 @@ class TizenWebViewController extends PlatformWebViewController { switch (arguments['level']! as String) { case 'error': level = JavaScriptLogLevel.error; - break; case 'warning': level = JavaScriptLogLevel.warning; - break; case 'debug': level = JavaScriptLogLevel.debug; - break; case 'info': level = JavaScriptLogLevel.info; - break; case 'log': level = JavaScriptLogLevel.log; - break; } if (_onConsoleLogCallback != null) { @@ -88,7 +83,7 @@ class TizenWebViewController extends PlatformWebViewController { @override Future loadFile(String absoluteFilePath) { - assert(absoluteFilePath != null); + assert(absoluteFilePath.isNotEmpty); return _webview.loadFile(absoluteFilePath); } @@ -103,7 +98,7 @@ class TizenWebViewController extends PlatformWebViewController { String html, { String? baseUrl, }) { - assert(html != null); + assert(html.isNotEmpty); return _webview.loadHtmlString(html, baseUrl: baseUrl); } diff --git a/packages/webview_flutter/lib/webview_flutter_tizen.dart b/packages/webview_flutter/lib/webview_flutter_tizen.dart index b2f7b7dcb..93609d614 100644 --- a/packages/webview_flutter/lib/webview_flutter_tizen.dart +++ b/packages/webview_flutter/lib/webview_flutter_tizen.dart @@ -3,8 +3,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -library webview_flutter_tizen; - export 'src/tizen_webview_controller.dart'; export 'src/tizen_webview_cookie_manager.dart'; export 'src/tizen_webview_platform.dart'; diff --git a/packages/webview_flutter/pubspec.yaml b/packages/webview_flutter/pubspec.yaml index b22c51928..15c1cdd09 100644 --- a/packages/webview_flutter/pubspec.yaml +++ b/packages/webview_flutter/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/webvie version: 0.9.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: diff --git a/packages/webview_flutter_lwe/CHANGELOG.md b/packages/webview_flutter_lwe/CHANGELOG.md index 0858a2891..cd3a118f0 100644 --- a/packages/webview_flutter_lwe/CHANGELOG.md +++ b/packages/webview_flutter_lwe/CHANGELOG.md @@ -1,3 +1,8 @@ +## NEXT + +* Fix new lint warnings. +* Update minimum Flutter and Dart version to 3.13 and 3.1. + ## 0.3.0 * Update webivew_flutter to 4.4.2. diff --git a/packages/webview_flutter_lwe/example/lib/main.dart b/packages/webview_flutter_lwe/example/lib/main.dart index 068c4479a..5c20f15b5 100644 --- a/packages/webview_flutter_lwe/example/lib/main.dart +++ b/packages/webview_flutter_lwe/example/lib/main.dart @@ -225,46 +225,32 @@ class SampleMenu extends StatelessWidget { switch (value) { case MenuOptions.showUserAgent: _onShowUserAgent(); - break; case MenuOptions.listCookies: _onListCookies(context); - break; case MenuOptions.clearCookies: _onClearCookies(context); - break; case MenuOptions.addToCache: _onAddToCache(context); - break; case MenuOptions.listCache: _onListCache(); - break; case MenuOptions.clearCache: _onClearCache(context); - break; case MenuOptions.navigationDelegate: _onNavigationDelegateExample(); - break; case MenuOptions.doPostRequest: _onDoPostRequest(); - break; case MenuOptions.loadLocalFile: _onLoadLocalFileExample(); - break; case MenuOptions.loadFlutterAsset: _onLoadFlutterAssetExample(); - break; case MenuOptions.loadHtmlString: _onLoadHtmlStringExample(); - break; case MenuOptions.transparentBackground: _onTransparentBackground(); - break; case MenuOptions.setCookie: _onSetCookie(); - break; case MenuOptions.logExample: _onLogExample(); - break; } }, itemBuilder: (BuildContext context) => >[ diff --git a/packages/webview_flutter_lwe/example/pubspec.yaml b/packages/webview_flutter_lwe/example/pubspec.yaml index bcb8f807a..058680a4e 100644 --- a/packages/webview_flutter_lwe/example/pubspec.yaml +++ b/packages/webview_flutter_lwe/example/pubspec.yaml @@ -3,8 +3,8 @@ description: Demonstrates how to use the webview_flutter_lwe plugin. publish_to: "none" environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" dependencies: flutter: diff --git a/packages/webview_flutter_lwe/lib/src/lwe_webview_controller.dart b/packages/webview_flutter_lwe/lib/src/lwe_webview_controller.dart index ddb76466a..dd0074034 100644 --- a/packages/webview_flutter_lwe/lib/src/lwe_webview_controller.dart +++ b/packages/webview_flutter_lwe/lib/src/lwe_webview_controller.dart @@ -36,7 +36,7 @@ class LweWebViewController extends PlatformWebViewController { @override Future loadFile(String absoluteFilePath) { - assert(absoluteFilePath != null); + assert(absoluteFilePath.isNotEmpty); return _webview.loadFile(absoluteFilePath); } @@ -51,7 +51,7 @@ class LweWebViewController extends PlatformWebViewController { String html, { String? baseUrl, }) { - assert(html != null); + assert(html.isNotEmpty); return _webview.loadHtmlString(html, baseUrl: baseUrl); } diff --git a/packages/webview_flutter_lwe/lib/webview_flutter_lwe.dart b/packages/webview_flutter_lwe/lib/webview_flutter_lwe.dart index e84611276..51c5c74b2 100644 --- a/packages/webview_flutter_lwe/lib/webview_flutter_lwe.dart +++ b/packages/webview_flutter_lwe/lib/webview_flutter_lwe.dart @@ -3,8 +3,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -library webview_flutter_lwe; - export 'src/lwe_webview_controller.dart'; export 'src/lwe_webview_cookie_manager.dart'; export 'src/lwe_webview_platform.dart'; diff --git a/packages/webview_flutter_lwe/pubspec.yaml b/packages/webview_flutter_lwe/pubspec.yaml index d94577ea3..61e7470cb 100644 --- a/packages/webview_flutter_lwe/pubspec.yaml +++ b/packages/webview_flutter_lwe/pubspec.yaml @@ -5,8 +5,8 @@ repository: https://github.com/flutter-tizen/plugins/tree/master/packages/webvie version: 0.3.0 environment: - sdk: ">=2.18.0 <4.0.0" - flutter: ">=3.3.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" flutter: plugin: