mod: 依赖升级

This commit is contained in:
guozhigq
2023-07-25 10:46:02 +08:00
parent 85eeacebb8
commit ec4c94cf5e
12 changed files with 281 additions and 266 deletions

View File

@ -26,6 +26,6 @@ subprojects {
project.evaluationDependsOn(':app') project.evaluationDependsOn(':app')
} }
task clean(type: Delete) { tasks.register("clean", Delete) {
delete rootProject.buildDir delete rootProject.buildDir
} }

View File

@ -10,7 +10,7 @@ PODS:
- FMDB (2.7.5): - FMDB (2.7.5):
- FMDB/standard (= 2.7.5) - FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5) - FMDB/standard (2.7.5)
- image_gallery_saver (1.5.0): - image_gallery_saver (2.0.2):
- Flutter - Flutter
- media_kit_libs_ios_video (1.0.4): - media_kit_libs_ios_video (1.0.4):
- Flutter - Flutter
@ -18,10 +18,12 @@ PODS:
- Flutter - Flutter
- media_kit_video (0.0.1): - media_kit_video (0.0.1):
- Flutter - Flutter
- package_info_plus (0.4.5):
- Flutter
- path_provider_foundation (0.0.1): - path_provider_foundation (0.0.1):
- Flutter - Flutter
- FlutterMacOS - FlutterMacOS
- permission_handler_apple (9.0.4): - permission_handler_apple (9.1.1):
- Flutter - Flutter
- ReachabilitySwift (5.0.0) - ReachabilitySwift (5.0.0)
- screen_brightness_ios (0.1.0): - screen_brightness_ios (0.1.0):
@ -31,12 +33,12 @@ PODS:
- shared_preferences_foundation (0.0.1): - shared_preferences_foundation (0.0.1):
- Flutter - Flutter
- FlutterMacOS - FlutterMacOS
- sqflite (0.0.2): - sqflite (0.0.3):
- Flutter - Flutter
- FMDB (>= 2.7.5) - FMDB (>= 2.7.5)
- volume_controller (0.0.1): - volume_controller (0.0.1):
- Flutter - Flutter
- wakelock (0.0.1): - wakelock_plus (0.0.1):
- Flutter - Flutter
- webview_cookie_manager (0.0.1): - webview_cookie_manager (0.0.1):
- Flutter - Flutter
@ -52,14 +54,15 @@ DEPENDENCIES:
- media_kit_libs_ios_video (from `.symlinks/plugins/media_kit_libs_ios_video/ios`) - media_kit_libs_ios_video (from `.symlinks/plugins/media_kit_libs_ios_video/ios`)
- media_kit_native_event_loop (from `.symlinks/plugins/media_kit_native_event_loop/ios`) - media_kit_native_event_loop (from `.symlinks/plugins/media_kit_native_event_loop/ios`)
- media_kit_video (from `.symlinks/plugins/media_kit_video/ios`) - media_kit_video (from `.symlinks/plugins/media_kit_video/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/ios`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`)
- screen_brightness_ios (from `.symlinks/plugins/screen_brightness_ios/ios`) - screen_brightness_ios (from `.symlinks/plugins/screen_brightness_ios/ios`)
- share_plus (from `.symlinks/plugins/share_plus/ios`) - share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/ios`) - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
- sqflite (from `.symlinks/plugins/sqflite/ios`) - sqflite (from `.symlinks/plugins/sqflite/ios`)
- volume_controller (from `.symlinks/plugins/volume_controller/ios`) - volume_controller (from `.symlinks/plugins/volume_controller/ios`)
- wakelock (from `.symlinks/plugins/wakelock/ios`) - wakelock_plus (from `.symlinks/plugins/wakelock_plus/ios`)
- webview_cookie_manager (from `.symlinks/plugins/webview_cookie_manager/ios`) - webview_cookie_manager (from `.symlinks/plugins/webview_cookie_manager/ios`)
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`) - webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/ios`)
@ -85,8 +88,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/media_kit_native_event_loop/ios" :path: ".symlinks/plugins/media_kit_native_event_loop/ios"
media_kit_video: media_kit_video:
:path: ".symlinks/plugins/media_kit_video/ios" :path: ".symlinks/plugins/media_kit_video/ios"
package_info_plus:
:path: ".symlinks/plugins/package_info_plus/ios"
path_provider_foundation: path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/ios" :path: ".symlinks/plugins/path_provider_foundation/darwin"
permission_handler_apple: permission_handler_apple:
:path: ".symlinks/plugins/permission_handler_apple/ios" :path: ".symlinks/plugins/permission_handler_apple/ios"
screen_brightness_ios: screen_brightness_ios:
@ -94,13 +99,13 @@ EXTERNAL SOURCES:
share_plus: share_plus:
:path: ".symlinks/plugins/share_plus/ios" :path: ".symlinks/plugins/share_plus/ios"
shared_preferences_foundation: shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/ios" :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
sqflite: sqflite:
:path: ".symlinks/plugins/sqflite/ios" :path: ".symlinks/plugins/sqflite/ios"
volume_controller: volume_controller:
:path: ".symlinks/plugins/volume_controller/ios" :path: ".symlinks/plugins/volume_controller/ios"
wakelock: wakelock_plus:
:path: ".symlinks/plugins/wakelock/ios" :path: ".symlinks/plugins/wakelock_plus/ios"
webview_cookie_manager: webview_cookie_manager:
:path: ".symlinks/plugins/webview_cookie_manager/ios" :path: ".symlinks/plugins/webview_cookie_manager/ios"
webview_flutter_wkwebview: webview_flutter_wkwebview:
@ -108,23 +113,24 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS: SPEC CHECKSUMS:
connectivity_plus: 413a8857dd5d9f1c399a39130850d02fe0feaf7e connectivity_plus: 413a8857dd5d9f1c399a39130850d02fe0feaf7e
device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed device_info_plus: 7545d84d8d1b896cb16a4ff98c19f07ec4b298ea
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_meedu_media_kit: 5059e8719e3fd4a65fe5312b0febc75491e553f9 flutter_meedu_media_kit: 5059e8719e3fd4a65fe5312b0febc75491e553f9
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
image_gallery_saver: 259eab68fb271cfd57d599904f7acdc7832e7ef2 image_gallery_saver: cb43cc43141711190510e92c460eb1655cd343cb
media_kit_libs_ios_video: 96259eccffaa309b63a7ee610c2c7786a3b335e5 media_kit_libs_ios_video: bcbf9a53dd3b60c0fcf92b0903e4706391ad0b65
media_kit_native_event_loop: 1eac6db2378101404392c80606103b42f7c2c491 media_kit_native_event_loop: 1eac6db2378101404392c80606103b42f7c2c491
media_kit_video: c6ae801433b484912087b519b45f1beac97b960b media_kit_video: 6c61501e3ab980488d80df6d705905d14b150b63
path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9 package_info_plus: fd030dabf36271f146f1f3beacd48f564b0f17f7
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825 ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
screen_brightness_ios: 715ca807df953bf676d339f11464e438143ee625 screen_brightness_ios: 715ca807df953bf676d339f11464e438143ee625
share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68 share_plus: 599aa54e4ea31d4b4c0e9c911bcc26c55e791028
shared_preferences_foundation: e2dae3258e06f44cc55f49d42024fd8dd03c590c shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904 sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
volume_controller: 531ddf792994285c9b17f9d8a7e4dcdd29b3eae9 volume_controller: 531ddf792994285c9b17f9d8a7e4dcdd29b3eae9
wakelock: d0fc7c864128eac40eba1617cb5264d9c940b46f wakelock_plus: 8b09852c8876491e4b6d179e17dfe2a0b5f60d47
webview_cookie_manager: eaf920722b493bd0f7611b5484771ca53fed03f7 webview_cookie_manager: eaf920722b493bd0f7611b5484771ca53fed03f7
webview_flutter_wkwebview: 2e2d318f21a5e036e2c3f26171342e95908bd60a webview_flutter_wkwebview: 2e2d318f21a5e036e2c3f26171342e95908bd60a

View File

@ -205,6 +205,7 @@
files = ( files = (
); );
inputPaths = ( inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
); );
name = "Thin Binary"; name = "Thin Binary";
outputPaths = ( outputPaths = (

View File

@ -16,9 +16,10 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
MediaKit.ensureInitialized(); MediaKit.ensureInitialized();
await GStrorage.init(); await GStrorage.init();
runApp(const MyApp());
await Request.setCookie(); await Request.setCookie();
await Data.init(); await Data.init();
runApp(const MyApp()); await GStrorage.lazyInit();
} }
class MyApp extends StatelessWidget { class MyApp extends StatelessWidget {

View File

@ -105,7 +105,7 @@ class _ActionPanelState extends State<ActionPanel> {
}, },
child: Text( child: Text(
stat.like!.count ?? '点赞', stat.like!.count ?? '点赞',
key: ValueKey<String>(stat.like!.count!), key: ValueKey<String>(stat.like!.count ?? '点赞'),
style: TextStyle( style: TextStyle(
color: stat.like!.status! ? primary : color, color: stat.like!.status! ? primary : color,
), ),

View File

@ -7,7 +7,7 @@ import 'package:pilipala/models/search/hot.dart';
import 'package:pilipala/models/search/suggest.dart'; import 'package:pilipala/models/search/suggest.dart';
import 'package:pilipala/utils/storage.dart'; import 'package:pilipala/utils/storage.dart';
class SearchController extends GetxController { class SSearchController extends GetxController {
final FocusNode searchFocusNode = FocusNode(); final FocusNode searchFocusNode = FocusNode();
RxString searchKeyWord = ''.obs; RxString searchKeyWord = ''.obs;
Rx<TextEditingController> controller = TextEditingController().obs; Rx<TextEditingController> controller = TextEditingController().obs;

View File

@ -17,7 +17,7 @@ class SearchPage extends StatefulWidget {
} }
class _SearchPageState extends State<SearchPage> with RouteAware { class _SearchPageState extends State<SearchPage> with RouteAware {
final SearchController _searchController = Get.put(SearchController()); final SSearchController _searchController = Get.put(SSearchController());
@override @override
// 返回当前页面时 // 返回当前页面时

View File

@ -9,7 +9,6 @@ import 'package:pilipala/pages/video/detail/reply/index.dart';
import 'package:pilipala/pages/video/detail/controller.dart'; import 'package:pilipala/pages/video/detail/controller.dart';
import 'package:pilipala/pages/video/detail/introduction/index.dart'; import 'package:pilipala/pages/video/detail/introduction/index.dart';
import 'package:pilipala/pages/video/detail/related/index.dart'; import 'package:pilipala/pages/video/detail/related/index.dart';
import 'package:wakelock/wakelock.dart';
import 'widgets/app_bar.dart'; import 'widgets/app_bar.dart';
@ -45,7 +44,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
videoDetailController.markHeartBeat(); videoDetailController.markHeartBeat();
playerStatus = status; playerStatus = status;
if (status == PlayerStatus.playing) { if (status == PlayerStatus.playing) {
Wakelock.enable();
isPlay = false; isPlay = false;
isShowCover = false; isShowCover = false;
setState(() {}); setState(() {});
@ -54,7 +52,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
videoDetailController.timer!.cancel(); videoDetailController.timer!.cancel();
isPlay = true; isPlay = true;
setState(() {}); setState(() {});
Wakelock.disable();
// 播放完成停止 or 切换下一个 // 播放完成停止 or 切换下一个
if (status == PlayerStatus.completed) {} if (status == PlayerStatus.completed) {}
} }
@ -77,7 +74,6 @@ class _VideoDetailPageState extends State<VideoDetailPage>
await _meeduPlayerController!.dispose(); await _meeduPlayerController!.dispose();
_meeduPlayerController = null; _meeduPlayerController = null;
// The next line disables the wakelock again. // The next line disables the wakelock again.
await Wakelock.disable();
} }
} }

View File

@ -25,10 +25,6 @@ class GStrorage {
recVideo = await Hive.openBox('recVideo'); recVideo = await Hive.openBox('recVideo');
// 登录用户信息 // 登录用户信息
userInfo = await Hive.openBox('userInfo'); userInfo = await Hive.openBox('userInfo');
// 热搜关键词
hotKeyword = await Hive.openBox('hotKeyword');
// 搜索历史
historyword = await Hive.openBox('historyWord');
// 本地缓存 // 本地缓存
localCache = await Hive.openBox('localCache'); localCache = await Hive.openBox('localCache');
} }
@ -43,6 +39,13 @@ class GStrorage {
Hive.registerAdapter(HotSearchModelAdapter()); Hive.registerAdapter(HotSearchModelAdapter());
Hive.registerAdapter(HotSearchItemAdapter()); Hive.registerAdapter(HotSearchItemAdapter());
} }
static Future<void> lazyInit() async {
// 热搜关键词
hotKeyword = await Hive.openBox('hotKeyword');
// 搜索历史
historyword = await Hive.openBox('historyWord');
}
} }
// 约定 key // 约定 key

View File

@ -11,13 +11,14 @@ import dynamic_color
import flutter_meedu_media_kit import flutter_meedu_media_kit
import media_kit_libs_macos_video import media_kit_libs_macos_video
import media_kit_video import media_kit_video
import package_info_plus
import path_provider_foundation import path_provider_foundation
import screen_brightness_macos import screen_brightness_macos
import screen_retriever import screen_retriever
import share_plus import share_plus
import shared_preferences_foundation import shared_preferences_foundation
import sqflite import sqflite
import wakelock_macos import wakelock_plus
import window_manager import window_manager
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
@ -27,12 +28,13 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FlutterMeeduMediaKitPlugin.register(with: registry.registrar(forPlugin: "FlutterMeeduMediaKitPlugin")) FlutterMeeduMediaKitPlugin.register(with: registry.registrar(forPlugin: "FlutterMeeduMediaKitPlugin"))
MediaKitLibsMacosVideoPlugin.register(with: registry.registrar(forPlugin: "MediaKitLibsMacosVideoPlugin")) MediaKitLibsMacosVideoPlugin.register(with: registry.registrar(forPlugin: "MediaKitLibsMacosVideoPlugin"))
MediaKitVideoPlugin.register(with: registry.registrar(forPlugin: "MediaKitVideoPlugin")) MediaKitVideoPlugin.register(with: registry.registrar(forPlugin: "MediaKitVideoPlugin"))
FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
ScreenBrightnessMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenBrightnessMacosPlugin")) ScreenBrightnessMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenBrightnessMacosPlugin"))
ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin")) ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin"))
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
WakelockMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockMacosPlugin")) WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin"))
WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin")) WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin"))
} }

File diff suppressed because it is too large Load Diff

View File

@ -49,8 +49,8 @@ dependencies:
# 图片 # 图片
cached_network_image: ^3.2.3 cached_network_image: ^3.2.3
extended_image: ^7.0.2 extended_image: ^8.0.2
image_gallery_saver: ^1.7.1 image_gallery_saver: ^2.0.3
# 存储 # 存储
path_provider: ^2.0.14 path_provider: ^2.0.14
@ -58,15 +58,15 @@ dependencies:
hive_flutter: ^1.1.0 hive_flutter: ^1.1.0
# 设备信息 # 设备信息
device_info_plus: ^8.2.0 device_info_plus: ^9.0.2
# 权限 # 权限
permission_handler: ^10.2.0 permission_handler: ^10.4.3
# 分享 # 分享
share_plus: ^6.3.1 share_plus: ^7.0.2
# cookie 管理 # cookie 管理
webview_cookie_manager: ^2.0.6 webview_cookie_manager: ^2.0.6
# 浏览器 # 浏览器
webview_flutter: ^4.2.0 webview_flutter: ^4.2.2
# 解决sliver滑动不同步 # 解决sliver滑动不同步
extended_nested_scroll_view: ^6.0.0 extended_nested_scroll_view: ^6.0.0
# 上拉加载 # 上拉加载
@ -81,11 +81,11 @@ dependencies:
dismissible_page: ^1.0.2 dismissible_page: ^1.0.2
# 媒体播放 # 媒体播放
flutter_meedu_media_kit: flutter_meedu_media_kit:
# path: /Users/rr/Desktop/code/flutter_meedu_media_kit/package path: /Users/rr/Desktop/code/flutter_meedu_media_kit/package
git: # git:
url: https://github.com/guozhigq/flutter_meedu_media_kit.git # url: https://github.com/guozhigq/flutter_meedu_media_kit.git
ref: feature-custom # ref: feature-custom
path: package # path: package
custom_sliding_segmented_control: ^1.7.5 custom_sliding_segmented_control: ^1.7.5
# 加密 # 加密
crypto: ^3.0.3 crypto: ^3.0.3