From d26257ecb9b7095a3625014db5775fdf4fdbfa53 Mon Sep 17 00:00:00 2001 From: orz12 Date: Sun, 22 Dec 2024 16:32:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=80=8A=E4=B8=80=E4=BA=9B=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E3=80=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- android/app/build.gradle | 4 +- android/app/src/debug/AndroidManifest.xml | 3 +- android/app/src/main/AndroidManifest.xml | 5 +- .../com/orz12/PiliPalaX/MainActivity.kt | 4 +- android/app/src/profile/AndroidManifest.xml | 2 +- android/build.gradle | 43 ++ lib/common/constants.dart | 2 +- .../widgets/audio_video_progress_bar.dart | 6 +- lib/common/widgets/badge.dart | 2 +- lib/common/widgets/spring_physics.dart | 2 +- lib/common/widgets/video_card_v.dart | 16 +- lib/common/widgets/video_popup_menu.dart | 64 +- lib/http/api.dart | 5 +- lib/http/html.dart | 10 +- lib/http/init.dart | 18 + lib/http/login.dart | 27 +- lib/http/video.dart | 28 +- lib/main.dart | 139 ++-- lib/models/common/side_bar_position.dart | 28 + lib/models/common/theme_type.dart | 6 + lib/models/home/rcmd/result.dart | 111 ++-- lib/pages/about/index.dart | 2 +- lib/pages/bangumi/view.dart | 2 + lib/pages/blacklist/index.dart | 2 + lib/pages/dynamics/detail/view.dart | 2 + lib/pages/dynamics/tab/view.dart | 2 + lib/pages/dynamics/view.dart | 2 +- lib/pages/fan/view.dart | 2 + lib/pages/follow/widgets/follow_list.dart | 2 + .../follow/widgets/owner_follow_list.dart | 2 + lib/pages/history/view.dart | 2 + lib/pages/home/controller.dart | 10 +- lib/pages/home/view.dart | 8 +- lib/pages/hot/view.dart | 2 + lib/pages/live/view.dart | 2 + lib/pages/live_room/view.dart | 5 +- .../live_room/widgets/bottom_control.dart | 2 +- lib/pages/login/controller.dart | 201 +++--- lib/pages/login/view.dart | 104 ++- lib/pages/main/view.dart | 258 ++++---- lib/pages/member/controller.dart | 30 +- lib/pages/member/view.dart | 2 +- lib/pages/member_archive/view.dart | 2 + lib/pages/member_dynamics/view.dart | 2 + lib/pages/member_seasons_and_series/view.dart | 2 + lib/pages/mine/controller.dart | 2 +- lib/pages/mine/view.dart | 441 +++++++------ lib/pages/msg_feed_top/at_me/view.dart | 2 + lib/pages/msg_feed_top/like_me/view.dart | 2 + lib/pages/msg_feed_top/reply_me/view.dart | 2 + lib/pages/msg_feed_top/sys_msg/view.dart | 2 + lib/pages/rank/zone/controller.dart | 20 +- lib/pages/rank/zone/view.dart | 21 +- lib/pages/rcmd/view.dart | 2 + lib/pages/search_panel/view.dart | 2 + lib/pages/setting/extra_setting.dart | 8 + lib/pages/setting/pages/color_select.dart | 52 ++ lib/pages/setting/pages/gesture_select.dart | 117 ++++ lib/pages/setting/play_setting.dart | 72 +- lib/pages/setting/style_setting.dart | 47 +- lib/pages/setting/video_setting.dart | 40 +- lib/pages/video/controller.dart | 75 ++- .../introduction/bangumi/controller.dart | 53 +- .../video/introduction/bangumi/view.dart | 19 +- .../video/introduction/detail/controller.dart | 66 +- lib/pages/video/introduction/detail/view.dart | 198 +++--- .../introduction/widgets/action_item.dart | 3 +- .../introduction/widgets/intro_detail.dart | 118 +++- lib/pages/video/reply/view.dart | 2 + lib/pages/video/reply_reply/view.dart | 2 + lib/pages/video/view.dart | 218 ++++--- lib/pages/video/widgets/header_control.dart | 616 +++++++++--------- lib/pages/whisper/view.dart | 2 + lib/pages/whisper_detail/view.dart | 2 + .../whisper_detail/widget/chat_item.dart | 66 ++ lib/plugin/pl_player/controller.dart | 347 ++++++++-- .../pl_player/models/bottom_control_type.dart | 1 + .../models/bottom_progress_behavior.dart | 8 +- lib/plugin/pl_player/models/data_source.dart | 26 + .../pl_player/models/fullscreen_mode.dart | 16 +- lib/plugin/pl_player/models/play_repeat.dart | 10 +- .../models/player_gesture_action.dart | 22 + .../models/player_middle_gesture.dart | 22 + lib/plugin/pl_player/view.dart | 336 +++++++--- lib/plugin/pl_player/widgets/app_bar_ani.dart | 6 +- .../pl_player/widgets/bottom_control.dart | 15 +- .../pl_player/widgets/play_pause_btn.dart | 2 +- lib/router/app_pages.dart | 4 + lib/services/audio_handler.dart | 34 +- lib/services/service_locator.dart | 5 + lib/utils/feed_back.dart | 2 +- lib/utils/login.dart | 14 +- lib/utils/storage.dart | 15 +- lib/utils/utils.dart | 43 +- pubspec.lock | 248 +++---- pubspec.yaml | 55 +- 97 files changed, 3076 insertions(+), 1604 deletions(-) create mode 100644 lib/models/common/side_bar_position.dart create mode 100644 lib/pages/setting/pages/gesture_select.dart create mode 100644 lib/plugin/pl_player/models/player_gesture_action.dart create mode 100644 lib/plugin/pl_player/models/player_middle_gesture.dart diff --git a/README.md b/README.md index d906fd5ab..781c9b056 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ flutter --version Android相关版本: > JDK: 21.0.4 > gradle: 8.10.2 -> kotlin: 1.9.22 +> kotlin: 2.0.20 > minSdk: 21 > targetSdk: 34 > compileSdk: 34 diff --git a/android/app/build.gradle b/android/app/build.gradle index ef0053198..daf084773 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -96,8 +96,8 @@ flutter { } dependencies { - implementation 'androidx.annotation:annotation:1.9.0' - implementation 'org.conscrypt:conscrypt-android:2.5.2' + api 'androidx.annotation:annotation:1.9.0' + api 'org.conscrypt:conscrypt-android:2.5.2' } ext.abiCodes = ["x86_64": 1, "armeabi-v7a": 2, "arm64-v8a": 3] diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index ac7fe57c9..e82d417c0 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -1,7 +1,6 @@ + xmlns:tools="http://schemas.android.com/tools">