Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

deps: bump flutter to 3.47.0

Prediditb0ce7c7733d8
diff --git a/analysis_options.yaml b/analysis_options.yaml
index b780dce4..cbdb82ca 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -36,3 +36,9 @@ analyzer:
- lib/bbcode/generated/**
- "**/*.g.dart"
- "**/*.freezed.dart"
+ - android/**
+ - ios/**
+ - web/**
+ - windows/**
+ - macos/**
+ - linux/**
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 2ebb5d47..d7b2d30a 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -25,9 +25,9 @@ if (flutterVersionName == null) {
android {
namespace "com.example.kazumi"
compileSdk flutter.compileSdkVersion
- // Pin ndk version to 21.3.6528147 to fix android build warning
- // The build warning throws by gradle plugin, when the ndk is older than gradle plugin required version
- ndkVersion "27.2.12479018"
+ // Use the highest NDK required by the native plugins. Newer NDKs remain
+ // backward compatible with plugins that declare an older version.
+ ndkVersion "28.2.13676358"
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
diff --git a/fastlane/.flutter b/fastlane/.flutter
index 6b182d2c..4cf24164 160000
--- a/fastlane/.flutter
+++ b/fastlane/.flutter
@@ -1 +1 @@
-Subproject commit 6b182d2c7585eba26d4edce0f97630effd256c33
+Subproject commit 4cf24164269a5ebf0c16a028a00727d0e77bbb05
diff --git a/fastlane/.libmpv-android-video-build b/fastlane/.libmpv-android-video-build
index 045cd0f5..dd2bfba8 160000
--- a/fastlane/.libmpv-android-video-build
+++ b/fastlane/.libmpv-android-video-build
@@ -1 +1 @@
-Subproject commit 045cd0f584769a6ed8967624443045b4a33b122d
+Subproject commit dd2bfba8209bcd22e2d4c79f125b40e619e637ed
diff --git a/lib/app_widget.dart b/lib/app_widget.dart
index 9f7956a6..d1a63047 100644
--- a/lib/app_widget.dart
+++ b/lib/app_widget.dart
@@ -133,30 +133,6 @@ class _AppWidgetState extends State<AppWidget>
return Color(int.parse(defaultThemeColor, radix: 16));
}
- /// dynamic_color builds its ColorScheme from the legacy CorePalette path,
- /// which leaves the surfaceContainer* roles unset. ColorScheme then falls
- /// back to `surface` for all of them, so cards and other containers become
- /// indistinguishable from the page background. Rebuild the surface family
- /// from the dynamic primary when that happens.
- ColorScheme _completeDynamicScheme(
- ColorScheme scheme, Brightness brightness) {
- if (scheme.surfaceContainerLow != scheme.surface) return scheme;
- final seeded = ColorScheme.fromSeed(
- seedColor: scheme.primary,
- brightness: brightness,
- );
- return scheme.copyWith(
- surface: seeded.surface,
- surfaceDim: seeded.surfaceDim,
- surfaceBright: seeded.surfaceBright,
- surfaceContainerLowest: seeded.surfaceContainerLowest,
- surfaceContainerLow: seeded.surfaceContainerLow,
- surfaceContainer: seeded.surfaceContainer,
- surfaceContainerHigh: seeded.surfaceContainerHigh,
- surfaceContainerHighest: seeded.surfaceContainerHighest,
- );
- }
-
ThemeData _buildAppTheme({
required Brightness brightness,
required String? fontFamily,
@@ -168,9 +144,7 @@ class _AppWidgetState extends State<AppWidget>
fontFamily: fontFamily,
brightness: brightness,
colorSchemeSeed: color,
- colorScheme: colorScheme == null
- ? null
- : _completeDynamicScheme(colorScheme, brightness),
+ colorScheme: colorScheme,
progressIndicatorTheme: progressIndicatorTheme2024,
sliderTheme: sliderTheme2024,
pageTransitionsTheme: pageTransitionsTheme2024,
diff --git a/lib/pages/settings/displaymode_settings.dart b/lib/pages/settings/displaymode_settings.dart
index 21e750a3..46d3a38e 100644
--- a/lib/pages/settings/displaymode_settings.dart
+++ b/lib/pages/settings/displaymode_settings.dart
@@ -49,7 +49,7 @@ class _SetDisplayModeState extends State<SetDisplayMode> {
FlutterDisplayMode.setPreferredMode(preferred!);
}
- Future<DisplayMode> getDisplayModeType(modes) async {
+ Future<DisplayMode> getDisplayModeType(List<DisplayMode> modes) async {
var value = GStorage.getSetting(SettingsKeys.displayMode);
DisplayMode f = DisplayMode.auto;
if (value != null) {
diff --git a/lib/utils/constants.dart b/lib/utils/constants.dart
index 9ec1ca1e..75c34557 100644
--- a/lib/utils/constants.dart
+++ b/lib/utils/constants.dart
@@ -14,14 +14,14 @@ const String customAppFontFamily = "MI_Sans_Regular";
/// Opts into the newer Material progress indicator appearance while Flutter
/// still exposes the compatibility flag.
-/// ignore: deprecated_member_use
const ProgressIndicatorThemeData progressIndicatorTheme2024 =
+ // ignore: deprecated_member_use
ProgressIndicatorThemeData(year2023: false);
/// Opts into the newer Material slider appearance while Flutter still exposes
/// the compatibility flag.
-/// ignore: deprecated_member_use
const SliderThemeData sliderTheme2024 = SliderThemeData(
+ // ignore: deprecated_member_use
year2023: false,
showValueIndicator: ShowValueIndicator.onDrag,
);
diff --git a/pubspec.lock b/pubspec.lock
index e140ca54..ee2b2a9a 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -384,10 +384,10 @@ packages:
dependency: "direct main"
description:
name: dynamic_color
- sha256: "43a5a6679649a7731ab860334a5812f2067c2d9ce6452cf069c5e0c25336c17c"
+ sha256: "4aeb76de323e8eb660bab5557d826ad7ebbf1434a598f0c6aa8a11a9696a6757"
url: "https://pub.dev"
source: hosted
- version: "1.8.1"
+ version: "1.9.0"
equatable:
dependency: transitive
description:
@@ -804,10 +804,10 @@ packages:
dependency: transitive
description:
name: intl
- sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5"
+ sha256: "1ca20c894b1717686a2319b8548763d812bc0aabdac580420a44c5178c57a867"
url: "https://pub.dev"
source: hosted
- version: "0.20.2"
+ version: "0.20.3"
io:
dependency: transitive
description:
@@ -940,10 +940,10 @@ packages:
dependency: transitive
description:
name: matcher
- sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
+ sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
url: "https://pub.dev"
source: hosted
- version: "0.12.19"
+ version: "0.12.20"
material_color_utilities:
dependency: "direct main"
description:
@@ -1053,10 +1053,10 @@ packages:
dependency: transitive
description:
name: meta
- sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
+ sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
url: "https://pub.dev"
source: hosted
- version: "1.18.0"
+ version: "1.19.0"
mime:
dependency: transitive
description:
@@ -1642,10 +1642,10 @@ packages:
dependency: transitive
description:
name: test_api
- sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
+ sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
url: "https://pub.dev"
source: hosted
- version: "0.7.11"
+ version: "0.7.12"
tray_manager:
dependency: "direct main"
description:
@@ -1794,10 +1794,10 @@ packages:
dependency: transitive
description:
name: vector_math
- sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
+ sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47
url: "https://pub.dev"
source: hosted
- version: "2.2.0"
+ version: "2.4.2"
version:
dependency: transitive
description:
@@ -1953,4 +1953,4 @@ packages:
version: "2.1.0"
sdks:
dart: ">=3.11.0 <4.0.0"
- flutter: ">=3.44.9"
+ flutter: ">=3.47.0"
diff --git a/pubspec.yaml b/pubspec.yaml
index c48487b5..6c07acfb 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -20,7 +20,7 @@ version: 2.2.7+20207
environment:
sdk: ">=3.3.4 <4.0.0"
- flutter: 3.44.9
+ flutter: 3.47.0
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
@@ -69,7 +69,7 @@ dependencies:
url: https://github.com/Predidit/audio_service_win.git
ref: 8ad650c6eb487208b9861d44755c8e58db061c88
audio_session: ^0.2.2
- dynamic_color: ^1.8.1
+ dynamic_color: ^1.9.0
flutter_displaymode: ^0.6.0
url_launcher: ^6.3.0