From b28c2085aab8cf1a290a070f6124153077768164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=8E?= <‎> Date: Tue, 31 Dec 2024 22:32:55 +0700 Subject: [PATCH] update --- general_documentation/pubspec.yaml | 4 ++-- package/general/.flutter-plugins | 2 +- package/general/.flutter-plugins-dependencies | 2 +- .../flutter/generated_plugin_registrant.cc | 4 ++++ .../linux/flutter/generated_plugins.cmake | 1 + .../Flutter/GeneratedPluginRegistrant.swift | 2 ++ package/general/example/pubspec.yaml | 6 +++--- .../flutter/generated_plugin_registrant.cc | 3 +++ .../windows/flutter/generated_plugins.cmake | 1 + package/general/lib/cli/cli.dart | 21 +++++++++++++------ .../lib/core/player/player_controller.dart | 2 +- .../general/lib/core/player/player_core.dart | 2 +- .../lib/flutter/camera/camera_core.dart | 15 ++++++++----- .../flutter/camera/widget/camera_widget.dart | 7 +++++-- .../flutter/player/widget/player_widget.dart | 2 +- package/general/pubspec.yaml | 10 ++++----- pubspec.yaml | 2 +- 17 files changed, 57 insertions(+), 29 deletions(-) diff --git a/general_documentation/pubspec.yaml b/general_documentation/pubspec.yaml index bda445f..2777997 100644 --- a/general_documentation/pubspec.yaml +++ b/general_documentation/pubspec.yaml @@ -12,8 +12,8 @@ dependencies: sdk: 'flutter' cupertino_icons: '^1.0.6' path: '^1.9.0' - general_lib: '^0.0.51' - general_lib_flutter: '^0.0.32' + general_lib: '^0.0.52' + general_lib_flutter: '^0.0.33' documentation: '^0.0.2' dev_dependencies: flutter_test: diff --git a/package/general/.flutter-plugins b/package/general/.flutter-plugins index e1a8abd..a5a8fb1 100644 --- a/package/general/.flutter-plugins +++ b/package/general/.flutter-plugins @@ -12,7 +12,7 @@ local_auth=/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth-2.3.0/ local_auth_android=/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_android-1.0.46/ local_auth_darwin=/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_darwin-1.4.1/ local_auth_windows=/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_windows-1.0.11/ -media_kit_video=/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video-1.2.5/ +media_kit_video_fork=/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video_fork-0.0.1/ package_info_plus=/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/ permission_handler=/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler-11.3.1/ permission_handler_android=/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.12/ diff --git a/package/general/.flutter-plugins-dependencies b/package/general/.flutter-plugins-dependencies index b280bff..b6aeb44 100644 --- a/package/general/.flutter-plugins-dependencies +++ b/package/general/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"camera_avfoundation","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.17+4/","native_build":true,"dependencies":[]},{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":true,"dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","native_build":true,"dependencies":[]},{"name":"local_auth_darwin","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_darwin-1.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"media_kit_video","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video-1.2.5/","native_build":true,"dependencies":["wakelock_plus","volume_controller"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/","native_build":true,"dependencies":[]},{"name":"screen_brightness_ios","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/screen_brightness_ios-0.1.0/","native_build":true,"dependencies":[]},{"name":"speech_to_text","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/speech_to_text-7.0.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"volume_controller","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/volume_controller-2.0.8/","native_build":true,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":true,"dependencies":["package_info_plus"]}],"android":[{"name":"camera_android_camerax","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.9+2/","native_build":true,"dependencies":[]},{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_background","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_background-1.3.0+1/","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.23/","native_build":true,"dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","native_build":true,"dependencies":[]},{"name":"local_auth_android","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_android-1.0.46/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"media_kit_video","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video-1.2.5/","native_build":true,"dependencies":["wakelock_plus","volume_controller"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.12/","native_build":true,"dependencies":[]},{"name":"screen_brightness_android","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/screen_brightness_android-0.1.0+2/","native_build":true,"dependencies":[]},{"name":"speech_to_text","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/speech_to_text-7.0.0/","native_build":true,"dependencies":[]},{"name":"volume_controller","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/volume_controller-2.0.8/","native_build":true,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":true,"dependencies":["package_info_plus"]}],"macos":[{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":false,"dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","native_build":true,"dependencies":[]},{"name":"local_auth_darwin","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_darwin-1.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"media_kit_video","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video-1.2.5/","native_build":true,"dependencies":["wakelock_plus"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":true,"dependencies":[]},{"name":"screen_brightness_macos","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/screen_brightness_macos-0.1.0+1/","native_build":true,"dependencies":[]},{"name":"speech_to_text","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/speech_to_text-7.0.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":true,"dependencies":["package_info_plus"]}],"linux":[{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":false,"dependencies":[]},{"name":"media_kit_video","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video-1.2.5/","native_build":true,"dependencies":["wakelock_plus"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":false,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":false,"dependencies":["package_info_plus"]}],"windows":[{"name":"camera_windows","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/camera_windows-0.2.6+1/","native_build":true,"dependencies":[]},{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":false,"dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","native_build":true,"dependencies":[]},{"name":"local_auth_windows","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_windows-1.0.11/","native_build":true,"dependencies":[]},{"name":"media_kit_video","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video-1.2.5/","native_build":true,"dependencies":["wakelock_plus"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[]},{"name":"screen_brightness_windows","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/screen_brightness_windows-0.1.3/","native_build":true,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":false,"dependencies":["package_info_plus"]}],"web":[{"name":"camera_web","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/camera_web-0.3.5/","dependencies":[]},{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","dependencies":[]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","dependencies":[]},{"name":"permission_handler_html","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+2/","dependencies":[]},{"name":"speech_to_text","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/speech_to_text-7.0.0/","dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","dependencies":["package_info_plus"]}]},"dependencyGraph":[{"name":"camera","dependencies":["camera_android_camerax","camera_avfoundation","camera_web","flutter_plugin_android_lifecycle"]},{"name":"camera_android_camerax","dependencies":[]},{"name":"camera_avfoundation","dependencies":[]},{"name":"camera_web","dependencies":[]},{"name":"camera_windows","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_background","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_tts","dependencies":[]},{"name":"local_auth","dependencies":["local_auth_android","local_auth_darwin","local_auth_windows"]},{"name":"local_auth_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"local_auth_darwin","dependencies":[]},{"name":"local_auth_windows","dependencies":[]},{"name":"media_kit_video","dependencies":["wakelock_plus","screen_brightness","volume_controller"]},{"name":"package_info_plus","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]},{"name":"screen_brightness","dependencies":["screen_brightness_android","screen_brightness_ios","screen_brightness_macos","screen_brightness_windows"]},{"name":"screen_brightness_android","dependencies":[]},{"name":"screen_brightness_ios","dependencies":[]},{"name":"screen_brightness_macos","dependencies":[]},{"name":"screen_brightness_windows","dependencies":[]},{"name":"speech_to_text","dependencies":[]},{"name":"volume_controller","dependencies":[]},{"name":"wakelock_plus","dependencies":["package_info_plus"]}],"date_created":"2024-12-31 08:26:12.173648","version":"3.27.0","swift_package_manager_enabled":false} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"camera_avfoundation","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.17+4/","native_build":true,"dependencies":[]},{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":true,"dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","native_build":true,"dependencies":[]},{"name":"local_auth_darwin","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_darwin-1.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"media_kit_video_fork","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video_fork-0.0.1/","native_build":true,"dependencies":["wakelock_plus","volume_controller"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/","native_build":true,"dependencies":[]},{"name":"screen_brightness_ios","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/screen_brightness_ios-0.1.0/","native_build":true,"dependencies":[]},{"name":"speech_to_text","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/speech_to_text-7.0.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"volume_controller","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/volume_controller-2.0.8/","native_build":true,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":true,"dependencies":["package_info_plus"]}],"android":[{"name":"camera_android_camerax","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.9+2/","native_build":true,"dependencies":[]},{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_background","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_background-1.3.0+1/","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.23/","native_build":true,"dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","native_build":true,"dependencies":[]},{"name":"local_auth_android","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_android-1.0.46/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"media_kit_video_fork","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video_fork-0.0.1/","native_build":true,"dependencies":["wakelock_plus","volume_controller"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.12/","native_build":true,"dependencies":[]},{"name":"screen_brightness_android","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/screen_brightness_android-0.1.0+2/","native_build":true,"dependencies":[]},{"name":"speech_to_text","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/speech_to_text-7.0.0/","native_build":true,"dependencies":[]},{"name":"volume_controller","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/volume_controller-2.0.8/","native_build":true,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":true,"dependencies":["package_info_plus"]}],"macos":[{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":false,"dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","native_build":true,"dependencies":[]},{"name":"local_auth_darwin","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_darwin-1.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"media_kit_video_fork","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video_fork-0.0.1/","native_build":true,"dependencies":["wakelock_plus"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":true,"dependencies":[]},{"name":"screen_brightness_macos","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/screen_brightness_macos-0.1.0+1/","native_build":true,"dependencies":[]},{"name":"speech_to_text","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/speech_to_text-7.0.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":true,"dependencies":["package_info_plus"]}],"linux":[{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":false,"dependencies":[]},{"name":"media_kit_video_fork","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video_fork-0.0.1/","native_build":true,"dependencies":["wakelock_plus"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":false,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":false,"dependencies":["package_info_plus"]}],"windows":[{"name":"camera_windows","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/camera_windows-0.2.6+1/","native_build":true,"dependencies":[]},{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","native_build":false,"dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","native_build":true,"dependencies":[]},{"name":"local_auth_windows","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/local_auth_windows-1.0.11/","native_build":true,"dependencies":[]},{"name":"media_kit_video_fork","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/media_kit_video_fork-0.0.1/","native_build":true,"dependencies":["wakelock_plus"]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[]},{"name":"screen_brightness_windows","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/screen_brightness_windows-0.1.3/","native_build":true,"dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","native_build":false,"dependencies":["package_info_plus"]}],"web":[{"name":"camera_web","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/camera_web-0.3.5/","dependencies":[]},{"name":"file_picker","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/file_picker-8.1.4/","dependencies":[]},{"name":"flutter_tts","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/flutter_tts-4.2.0/","dependencies":[]},{"name":"package_info_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/package_info_plus-8.0.3/","dependencies":[]},{"name":"permission_handler_html","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+2/","dependencies":[]},{"name":"speech_to_text","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/speech_to_text-7.0.0/","dependencies":[]},{"name":"wakelock_plus","path":"/home/galaxeus/.pub-cache/hosted/pub.dev/wakelock_plus-1.2.8/","dependencies":["package_info_plus"]}]},"dependencyGraph":[{"name":"camera","dependencies":["camera_android_camerax","camera_avfoundation","camera_web","flutter_plugin_android_lifecycle"]},{"name":"camera_android_camerax","dependencies":[]},{"name":"camera_avfoundation","dependencies":[]},{"name":"camera_web","dependencies":[]},{"name":"camera_windows","dependencies":[]},{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_background","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_tts","dependencies":[]},{"name":"local_auth","dependencies":["local_auth_android","local_auth_darwin","local_auth_windows"]},{"name":"local_auth_android","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"local_auth_darwin","dependencies":[]},{"name":"local_auth_windows","dependencies":[]},{"name":"media_kit_video_fork","dependencies":["wakelock_plus","screen_brightness","volume_controller"]},{"name":"package_info_plus","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]},{"name":"screen_brightness","dependencies":["screen_brightness_android","screen_brightness_ios","screen_brightness_macos","screen_brightness_windows"]},{"name":"screen_brightness_android","dependencies":[]},{"name":"screen_brightness_ios","dependencies":[]},{"name":"screen_brightness_macos","dependencies":[]},{"name":"screen_brightness_windows","dependencies":[]},{"name":"speech_to_text","dependencies":[]},{"name":"volume_controller","dependencies":[]},{"name":"wakelock_plus","dependencies":["package_info_plus"]}],"date_created":"2024-12-31 22:24:27.332904","version":"3.27.0","swift_package_manager_enabled":false} \ No newline at end of file diff --git a/package/general/example/linux/flutter/generated_plugin_registrant.cc b/package/general/example/linux/flutter/generated_plugin_registrant.cc index 9736a0c..afe56c2 100644 --- a/package/general/example/linux/flutter/generated_plugin_registrant.cc +++ b/package/general/example/linux/flutter/generated_plugin_registrant.cc @@ -7,9 +7,13 @@ #include "generated_plugin_registrant.h" #include +#include void fl_register_plugins(FlPluginRegistry* registry) { g_autoptr(FlPluginRegistrar) media_kit_video_registrar = fl_plugin_registry_get_registrar_for_plugin(registry, "MediaKitVideoPlugin"); media_kit_video_plugin_register_with_registrar(media_kit_video_registrar); + g_autoptr(FlPluginRegistrar) media_kit_video_fork_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "MediaKitVideoPlugin"); + media_kit_video_plugin_register_with_registrar(media_kit_video_fork_registrar); } diff --git a/package/general/example/linux/flutter/generated_plugins.cmake b/package/general/example/linux/flutter/generated_plugins.cmake index c1eb607..a037e3d 100644 --- a/package/general/example/linux/flutter/generated_plugins.cmake +++ b/package/general/example/linux/flutter/generated_plugins.cmake @@ -4,6 +4,7 @@ list(APPEND FLUTTER_PLUGIN_LIST media_kit_video + media_kit_video_fork ) list(APPEND FLUTTER_FFI_PLUGIN_LIST diff --git a/package/general/example/macos/Flutter/GeneratedPluginRegistrant.swift b/package/general/example/macos/Flutter/GeneratedPluginRegistrant.swift index 35da62b..7ff6bea 100644 --- a/package/general/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/package/general/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -8,6 +8,7 @@ import Foundation import flutter_tts import local_auth_darwin import media_kit_video +import media_kit_video_fork import package_info_plus import screen_brightness_macos import speech_to_text @@ -17,6 +18,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FlutterTtsPlugin.register(with: registry.registrar(forPlugin: "FlutterTtsPlugin")) FLALocalAuthPlugin.register(with: registry.registrar(forPlugin: "FLALocalAuthPlugin")) MediaKitVideoPlugin.register(with: registry.registrar(forPlugin: "MediaKitVideoPlugin")) + MediaKitVideoPlugin.register(with: registry.registrar(forPlugin: "MediaKitVideoPlugin")) FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) ScreenBrightnessMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenBrightnessMacosPlugin")) SpeechToTextPlugin.register(with: registry.registrar(forPlugin: "SpeechToTextPlugin")) diff --git a/package/general/example/pubspec.yaml b/package/general/example/pubspec.yaml index 8ab6a7d..2cbb50a 100644 --- a/package/general/example/pubspec.yaml +++ b/package/general/example/pubspec.yaml @@ -12,9 +12,9 @@ dependencies: path: '../' media_kit_video: '^1.2.5' local_auth: '^2.2.0' - telegram_client: '^0.8.29' - general_lib: '^0.0.51' - general_lib_flutter: '^0.0.32' + telegram_client: '^0.8.30' + general_lib: '^0.0.52' + general_lib_flutter: '^0.0.33' dev_dependencies: flutter_test: sdk: 'flutter' diff --git a/package/general/example/windows/flutter/generated_plugin_registrant.cc b/package/general/example/windows/flutter/generated_plugin_registrant.cc index e0ececc..dfe5d2b 100644 --- a/package/general/example/windows/flutter/generated_plugin_registrant.cc +++ b/package/general/example/windows/flutter/generated_plugin_registrant.cc @@ -10,6 +10,7 @@ #include #include #include +#include #include #include @@ -22,6 +23,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) { registry->GetRegistrarForPlugin("LocalAuthPlugin")); MediaKitVideoPluginCApiRegisterWithRegistrar( registry->GetRegistrarForPlugin("MediaKitVideoPluginCApi")); + MediaKitVideoPluginCApiRegisterWithRegistrar( + registry->GetRegistrarForPlugin("MediaKitVideoPluginCApi")); PermissionHandlerWindowsPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); ScreenBrightnessWindowsPluginRegisterWithRegistrar( diff --git a/package/general/example/windows/flutter/generated_plugins.cmake b/package/general/example/windows/flutter/generated_plugins.cmake index 5897b9b..4c534ae 100644 --- a/package/general/example/windows/flutter/generated_plugins.cmake +++ b/package/general/example/windows/flutter/generated_plugins.cmake @@ -7,6 +7,7 @@ list(APPEND FLUTTER_PLUGIN_LIST flutter_tts local_auth_windows media_kit_video + media_kit_video_fork permission_handler_windows screen_brightness_windows ) diff --git a/package/general/lib/cli/cli.dart b/package/general/lib/cli/cli.dart index b7944f6..29b891a 100644 --- a/package/general/lib/cli/cli.dart +++ b/package/general/lib/cli/cli.dart @@ -39,20 +39,26 @@ Future generalLibraryCli({ } if (command == "init") { - await generalLibraryApi.create(newName: ".", directoryBase: Directory.current).listen((event) { + await generalLibraryApi + .create(newName: ".", directoryBase: Directory.current) + .listen((event) { printed(event); }).asFuture(); exit(0); } if (command == "setup") { - await generalLibraryApi.setup(directoryBase: Directory.current).listen((event) { + await generalLibraryApi + .setup(directoryBase: Directory.current) + .listen((event) { printed(event); }).asFuture(); exit(0); } if (command == "patch") { - await generalLibraryApi.patch(directoryBase: Directory.current).listen((event) { + await generalLibraryApi + .patch(directoryBase: Directory.current) + .listen((event) { printed(event); }).asFuture(); exit(0); @@ -63,16 +69,19 @@ Future generalLibraryCli({ Progress progress = logger.progress("message"); void printed(GeneralLibraryApiStatus event) { - if (event.serverUniverseApiStatusType == GeneralLibraryApiStatusType.progress_start) { + if (event.serverUniverseApiStatusType == + GeneralLibraryApiStatusType.progress_start) { progress.cancel(); progress = logger.progress(event.value); return; } - if (event.serverUniverseApiStatusType == GeneralLibraryApiStatusType.progress) { + if (event.serverUniverseApiStatusType == + GeneralLibraryApiStatusType.progress) { progress.update(event.value); return; } - if (event.serverUniverseApiStatusType == GeneralLibraryApiStatusType.progress_complete) { + if (event.serverUniverseApiStatusType == + GeneralLibraryApiStatusType.progress_complete) { progress.complete(event.value); // progress.cancel(); diff --git a/package/general/lib/core/player/player_controller.dart b/package/general/lib/core/player/player_controller.dart index 3400bff..3845e7b 100644 --- a/package/general/lib/core/player/player_controller.dart +++ b/package/general/lib/core/player/player_controller.dart @@ -37,7 +37,7 @@ Bukan maksud kami menipu itu karena harga yang sudah di kalkulasi + bantuan tiba import 'dart:typed_data'; import 'package:general/core/player/player_model_data.dart'; -import 'package:media_kit/media_kit.dart'; +import 'package:media_kit_fork/media_kit_fork.dart'; extension GeneralLibraryPlayerMediaBaseExtesnion on GeneralLibraryPlayerMediaBase { diff --git a/package/general/lib/core/player/player_core.dart b/package/general/lib/core/player/player_core.dart index 6eaf3e5..2102b63 100644 --- a/package/general/lib/core/player/player_core.dart +++ b/package/general/lib/core/player/player_core.dart @@ -39,7 +39,7 @@ import 'package:general_lib/dart/executable_type/executable_type.dart'; import 'package:general_lib/general_lib.dart'; import 'player_controller.dart'; -import 'package:media_kit/media_kit.dart'; +import 'package:media_kit_fork/media_kit_fork.dart'; class GeneralLibraryPlayerBase implements GeneralLibraryCore { static List players = []; diff --git a/package/general/lib/flutter/camera/camera_core.dart b/package/general/lib/flutter/camera/camera_core.dart index 755480f..0890856 100644 --- a/package/general/lib/flutter/camera/camera_core.dart +++ b/package/general/lib/flutter/camera/camera_core.dart @@ -53,7 +53,8 @@ class GeneralLibraryCameraBaseFlutter implements GeneralLibraryCameraBase { bool is_select_camera = false; bool is_camera_active = false; - bool get isDesktop => Platform.isWindows || Platform.isLinux || Platform.isMacOS; + bool get isDesktop => + Platform.isWindows || Platform.isLinux || Platform.isMacOS; bool get isMobile => Platform.isAndroid || Platform.isIOS || kIsWeb; Future initializeCameras() async { @@ -99,7 +100,8 @@ class GeneralLibraryCameraBaseFlutter implements GeneralLibraryCameraBase { if (isDesktop) { if (Platform.isWindows) { - camera_id = await camera_windows.createCamera(camera_mobile_datas.first, camera_package.ResolutionPreset.max); + camera_id = await camera_windows.createCamera( + camera_mobile_datas.first, camera_package.ResolutionPreset.max); is_select_camera = true; setState(() {}); } @@ -117,7 +119,8 @@ class GeneralLibraryCameraBaseFlutter implements GeneralLibraryCameraBase { } if (isMobile) { for (var i = 0; i < camera_mobile_datas.length; i++) { - camera_package.CameraDescription camera_mobile_data = camera_mobile_datas[i]; + camera_package.CameraDescription camera_mobile_data = + camera_mobile_datas[i]; if (i == (camera_id - 1)) { camera_mobile_controller = camera_package.CameraController( camera_mobile_data, @@ -132,7 +135,8 @@ class GeneralLibraryCameraBaseFlutter implements GeneralLibraryCameraBase { if (isDesktop) { if (Platform.isWindows) { for (var i = 0; i < camera_mobile_datas.length; i++) { - camera_package.CameraDescription camera_mobile_data = camera_mobile_datas[i]; + camera_package.CameraDescription camera_mobile_data = + camera_mobile_datas[i]; if (i == (camera_id - 1)) { camera_id = await camera_windows.createCamera( camera_mobile_data, @@ -549,5 +553,6 @@ class CameraTakePictureData { String path; String name; - CameraTakePictureData({required this.mimeType, required this.path, required this.name}); + CameraTakePictureData( + {required this.mimeType, required this.path, required this.name}); } diff --git a/package/general/lib/flutter/camera/widget/camera_widget.dart b/package/general/lib/flutter/camera/widget/camera_widget.dart index 662bc3d..612eeb5 100644 --- a/package/general/lib/flutter/camera/widget/camera_widget.dart +++ b/package/general/lib/flutter/camera/widget/camera_widget.dart @@ -64,7 +64,9 @@ class CameraWidget extends StatefulWidget { class _CameraState extends State { @override Widget build(BuildContext context) { - if (!widget.generalLibraryCameraBase.is_camera_init || !widget.generalLibraryCameraBase.is_select_camera || !widget.generalLibraryCameraBase.is_camera_active) { + if (!widget.generalLibraryCameraBase.is_camera_init || + !widget.generalLibraryCameraBase.is_select_camera || + !widget.generalLibraryCameraBase.is_camera_active) { if (!widget.generalLibraryCameraBase.is_camera_init) { return widget.onCameraNotInit(context); } @@ -90,7 +92,8 @@ class _CameraState extends State { ), ); return Visibility( - visible: widget.generalLibraryCameraBase.camera_mobile_controller.value.isInitialized, + visible: widget.generalLibraryCameraBase.camera_mobile_controller.value + .isInitialized, replacement: const CircularProgressIndicator(), child: camera_package.CameraPreview( widget.generalLibraryCameraBase.camera_mobile_controller, diff --git a/package/general/lib/flutter/player/widget/player_widget.dart b/package/general/lib/flutter/player/widget/player_widget.dart index 9958578..8f63578 100644 --- a/package/general/lib/flutter/player/widget/player_widget.dart +++ b/package/general/lib/flutter/player/widget/player_widget.dart @@ -36,7 +36,7 @@ Bukan maksud kami menipu itu karena harga yang sudah di kalkulasi + bantuan tiba import 'package:flutter/widgets.dart'; import 'package:general/core/core.dart'; -import 'package:media_kit_video/media_kit_video.dart'; +import 'package:media_kit_video_fork/media_kit_video_fork.dart'; class PlayerWidget extends StatefulWidget { final GeneralLibraryPlayerControllerBase diff --git a/package/general/pubspec.yaml b/package/general/pubspec.yaml index 7c0ada0..9b27827 100644 --- a/package/general/pubspec.yaml +++ b/package/general/pubspec.yaml @@ -2,7 +2,7 @@ name: 'general' description: | General is Library for help you integrate any package commong used like audio, video, permission, location gamepad, local auth fingerprint, biometric, camera, and many more only use one library -version: '0.0.34' +version: '0.0.35' homepage: 'https://github.com/azkadev/general' repository: 'https://github.com/azkadev/general' issue_tracker: 'https://t.me/DEVELOPER_GLOBAL_PUBLIC' @@ -22,8 +22,8 @@ executables: environment: sdk: '>=3.6.0 <4.0.0' dependencies: - general_lib: '^0.0.51' - media_kit: '^1.1.1' + general_lib: '^0.0.52' + media_kit_fork: '^0.0.1' path: '^1.9.0' io_universe: '^0.0.2' mason_logger: '^0.3.1' @@ -38,8 +38,8 @@ dependencies: flutter_tts: '^4.2.0' permission_handler: '^11.3.1' speech_to_text: '^7.0.0' - general_lib_flutter: '^0.0.32' - media_kit_video: '^1.2.5' + general_lib_flutter: '^0.0.33' + media_kit_video_fork: '^0.0.1' local_auth: '^2.3.0' wakelock_plus: '^1.2.8' camera: '^0.11.0+2' diff --git a/pubspec.yaml b/pubspec.yaml index 0a52415..9807c2e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ funding: environment: sdk: '>=3.6.0 <4.0.0' dependencies: - general_lib: '^0.0.51' + general_lib: '^0.0.52' http: '^1.2.2' mason_logger: '^0.3.1' path: '^1.9.0'