mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 16:01:58 +00:00
fixed last updated
This commit is contained in:
parent
454445ad25
commit
90dadbd2c6
7 changed files with 35 additions and 12 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
PODS:
|
PODS:
|
||||||
|
- app_links (0.0.2):
|
||||||
|
- Flutter
|
||||||
- audio_session (0.0.1):
|
- audio_session (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- connectivity_plus (0.0.1):
|
- connectivity_plus (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- FlutterMacOS
|
|
||||||
- DKImagePickerController/Core (4.3.4):
|
- DKImagePickerController/Core (4.3.4):
|
||||||
- DKImagePickerController/ImageDataManager
|
- DKImagePickerController/ImageDataManager
|
||||||
- DKImagePickerController/Resource
|
- DKImagePickerController/Resource
|
||||||
|
|
@ -95,8 +96,9 @@ PODS:
|
||||||
- FlutterMacOS
|
- FlutterMacOS
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
|
- app_links (from `.symlinks/plugins/app_links/ios`)
|
||||||
- audio_session (from `.symlinks/plugins/audio_session/ios`)
|
- audio_session (from `.symlinks/plugins/audio_session/ios`)
|
||||||
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/darwin`)
|
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
|
||||||
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
||||||
- Flutter (from `Flutter`)
|
- Flutter (from `Flutter`)
|
||||||
- flutter_inappwebview_ios (from `.symlinks/plugins/flutter_inappwebview_ios/ios`)
|
- flutter_inappwebview_ios (from `.symlinks/plugins/flutter_inappwebview_ios/ios`)
|
||||||
|
|
@ -129,10 +131,12 @@ SPEC REPOS:
|
||||||
- SwiftyGif
|
- SwiftyGif
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
|
app_links:
|
||||||
|
:path: ".symlinks/plugins/app_links/ios"
|
||||||
audio_session:
|
audio_session:
|
||||||
:path: ".symlinks/plugins/audio_session/ios"
|
:path: ".symlinks/plugins/audio_session/ios"
|
||||||
connectivity_plus:
|
connectivity_plus:
|
||||||
:path: ".symlinks/plugins/connectivity_plus/darwin"
|
:path: ".symlinks/plugins/connectivity_plus/ios"
|
||||||
file_picker:
|
file_picker:
|
||||||
:path: ".symlinks/plugins/file_picker/ios"
|
:path: ".symlinks/plugins/file_picker/ios"
|
||||||
Flutter:
|
Flutter:
|
||||||
|
|
@ -179,8 +183,9 @@ EXTERNAL SOURCES:
|
||||||
:path: ".symlinks/plugins/webview_flutter_wkwebview/darwin"
|
:path: ".symlinks/plugins/webview_flutter_wkwebview/darwin"
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
|
app_links: 76b66b60cc809390ca1ad69bfd66b998d2387ac7
|
||||||
audio_session: f08db0697111ac84ba46191b55488c0563bb29c6
|
audio_session: f08db0697111ac84ba46191b55488c0563bb29c6
|
||||||
connectivity_plus: 2256d3e20624a7749ed21653aafe291a46446fee
|
connectivity_plus: cb623214f4e1f6ef8fe7403d580fdad517d2f7dd
|
||||||
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
|
DKImagePickerController: b512c28220a2b8ac7419f21c491fc8534b7601ac
|
||||||
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
|
DKPhotoGallery: fdfad5125a9fdda9cc57df834d49df790dbb4179
|
||||||
file_picker: 9b3292d7c8bc68c8a7bf8eb78f730e49c8efc517
|
file_picker: 9b3292d7c8bc68c8a7bf8eb78f730e49c8efc517
|
||||||
|
|
@ -205,7 +210,7 @@ SPEC CHECKSUMS:
|
||||||
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
|
SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f
|
||||||
url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
|
url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
|
||||||
video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b
|
video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b
|
||||||
volume_controller: ca1cde542ee70fad77d388f82e9616488110942b
|
volume_controller: 3657a1f65bedb98fa41ff7dc5793537919f31b12
|
||||||
wakelock_plus: 04623e3f525556020ebd4034310f20fe7fda8b49
|
wakelock_plus: 04623e3f525556020ebd4034310f20fe7fda8b49
|
||||||
webview_flutter_wkwebview: 44d4dee7d7056d5ad185d25b38404436d56c547c
|
webview_flutter_wkwebview: 44d4dee7d7056d5ad185d25b38404436d56c547c
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
debugDocumentVersioning = "YES"
|
debugDocumentVersioning = "YES"
|
||||||
debugServiceExtension = "internal"
|
debugServiceExtension = "internal"
|
||||||
|
enableGPUValidationMode = "1"
|
||||||
allowLocationSimulation = "YES">
|
allowLocationSimulation = "YES">
|
||||||
<BuildableProductRunnable
|
<BuildableProductRunnable
|
||||||
runnableDebuggingMode = "0">
|
runnableDebuggingMode = "0">
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ Future<dynamic> updateMangaDetail(
|
||||||
Ref ref, {
|
Ref ref, {
|
||||||
required int? mangaId,
|
required int? mangaId,
|
||||||
required bool isInit,
|
required bool isInit,
|
||||||
|
bool showToast = true,
|
||||||
}) async {
|
}) async {
|
||||||
final manga = isar.mangas.getSync(mangaId!);
|
final manga = isar.mangas.getSync(mangaId!);
|
||||||
if (manga!.chapters.isNotEmpty && isInit) {
|
if (manga!.chapters.isNotEmpty && isInit) {
|
||||||
|
|
@ -29,7 +30,7 @@ Future<dynamic> updateMangaDetail(
|
||||||
getDetailProvider(url: manga.link!, source: source!).future,
|
getDetailProvider(url: manga.link!, source: source!).future,
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
botToast(e.toString());
|
if (showToast) botToast(e.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final genre =
|
final genre =
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ part of 'update_manga_detail_providers.dart';
|
||||||
// RiverpodGenerator
|
// RiverpodGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$updateMangaDetailHash() => r'cfeaefe8375a38abbf07a774830d97ca57c6f2c9';
|
String _$updateMangaDetailHash() => r'47fb1d79d48c4832fa7027ea76020044eb1fa2b4';
|
||||||
|
|
||||||
/// Copied from Dart SDK
|
/// Copied from Dart SDK
|
||||||
class _SystemHash {
|
class _SystemHash {
|
||||||
|
|
@ -42,10 +42,12 @@ class UpdateMangaDetailFamily extends Family<AsyncValue<dynamic>> {
|
||||||
UpdateMangaDetailProvider call({
|
UpdateMangaDetailProvider call({
|
||||||
required int? mangaId,
|
required int? mangaId,
|
||||||
required bool isInit,
|
required bool isInit,
|
||||||
|
bool showToast = true,
|
||||||
}) {
|
}) {
|
||||||
return UpdateMangaDetailProvider(
|
return UpdateMangaDetailProvider(
|
||||||
mangaId: mangaId,
|
mangaId: mangaId,
|
||||||
isInit: isInit,
|
isInit: isInit,
|
||||||
|
showToast: showToast,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -56,6 +58,7 @@ class UpdateMangaDetailFamily extends Family<AsyncValue<dynamic>> {
|
||||||
return call(
|
return call(
|
||||||
mangaId: provider.mangaId,
|
mangaId: provider.mangaId,
|
||||||
isInit: provider.isInit,
|
isInit: provider.isInit,
|
||||||
|
showToast: provider.showToast,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -80,11 +83,13 @@ class UpdateMangaDetailProvider extends AutoDisposeFutureProvider<dynamic> {
|
||||||
UpdateMangaDetailProvider({
|
UpdateMangaDetailProvider({
|
||||||
required int? mangaId,
|
required int? mangaId,
|
||||||
required bool isInit,
|
required bool isInit,
|
||||||
|
bool showToast = true,
|
||||||
}) : this._internal(
|
}) : this._internal(
|
||||||
(ref) => updateMangaDetail(
|
(ref) => updateMangaDetail(
|
||||||
ref as UpdateMangaDetailRef,
|
ref as UpdateMangaDetailRef,
|
||||||
mangaId: mangaId,
|
mangaId: mangaId,
|
||||||
isInit: isInit,
|
isInit: isInit,
|
||||||
|
showToast: showToast,
|
||||||
),
|
),
|
||||||
from: updateMangaDetailProvider,
|
from: updateMangaDetailProvider,
|
||||||
name: r'updateMangaDetailProvider',
|
name: r'updateMangaDetailProvider',
|
||||||
|
|
@ -97,6 +102,7 @@ class UpdateMangaDetailProvider extends AutoDisposeFutureProvider<dynamic> {
|
||||||
UpdateMangaDetailFamily._allTransitiveDependencies,
|
UpdateMangaDetailFamily._allTransitiveDependencies,
|
||||||
mangaId: mangaId,
|
mangaId: mangaId,
|
||||||
isInit: isInit,
|
isInit: isInit,
|
||||||
|
showToast: showToast,
|
||||||
);
|
);
|
||||||
|
|
||||||
UpdateMangaDetailProvider._internal(
|
UpdateMangaDetailProvider._internal(
|
||||||
|
|
@ -108,10 +114,12 @@ class UpdateMangaDetailProvider extends AutoDisposeFutureProvider<dynamic> {
|
||||||
required super.from,
|
required super.from,
|
||||||
required this.mangaId,
|
required this.mangaId,
|
||||||
required this.isInit,
|
required this.isInit,
|
||||||
|
required this.showToast,
|
||||||
}) : super.internal();
|
}) : super.internal();
|
||||||
|
|
||||||
final int? mangaId;
|
final int? mangaId;
|
||||||
final bool isInit;
|
final bool isInit;
|
||||||
|
final bool showToast;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Override overrideWith(
|
Override overrideWith(
|
||||||
|
|
@ -128,6 +136,7 @@ class UpdateMangaDetailProvider extends AutoDisposeFutureProvider<dynamic> {
|
||||||
debugGetCreateSourceHash: null,
|
debugGetCreateSourceHash: null,
|
||||||
mangaId: mangaId,
|
mangaId: mangaId,
|
||||||
isInit: isInit,
|
isInit: isInit,
|
||||||
|
showToast: showToast,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -141,7 +150,8 @@ class UpdateMangaDetailProvider extends AutoDisposeFutureProvider<dynamic> {
|
||||||
bool operator ==(Object other) {
|
bool operator ==(Object other) {
|
||||||
return other is UpdateMangaDetailProvider &&
|
return other is UpdateMangaDetailProvider &&
|
||||||
other.mangaId == mangaId &&
|
other.mangaId == mangaId &&
|
||||||
other.isInit == isInit;
|
other.isInit == isInit &&
|
||||||
|
other.showToast == showToast;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -149,6 +159,7 @@ class UpdateMangaDetailProvider extends AutoDisposeFutureProvider<dynamic> {
|
||||||
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
||||||
hash = _SystemHash.combine(hash, mangaId.hashCode);
|
hash = _SystemHash.combine(hash, mangaId.hashCode);
|
||||||
hash = _SystemHash.combine(hash, isInit.hashCode);
|
hash = _SystemHash.combine(hash, isInit.hashCode);
|
||||||
|
hash = _SystemHash.combine(hash, showToast.hashCode);
|
||||||
|
|
||||||
return _SystemHash.finish(hash);
|
return _SystemHash.finish(hash);
|
||||||
}
|
}
|
||||||
|
|
@ -162,6 +173,9 @@ mixin UpdateMangaDetailRef on AutoDisposeFutureProviderRef<dynamic> {
|
||||||
|
|
||||||
/// The parameter `isInit` of this provider.
|
/// The parameter `isInit` of this provider.
|
||||||
bool get isInit;
|
bool get isInit;
|
||||||
|
|
||||||
|
/// The parameter `showToast` of this provider.
|
||||||
|
bool get showToast;
|
||||||
}
|
}
|
||||||
|
|
||||||
class _UpdateMangaDetailProviderElement
|
class _UpdateMangaDetailProviderElement
|
||||||
|
|
@ -173,6 +187,8 @@ class _UpdateMangaDetailProviderElement
|
||||||
int? get mangaId => (origin as UpdateMangaDetailProvider).mangaId;
|
int? get mangaId => (origin as UpdateMangaDetailProvider).mangaId;
|
||||||
@override
|
@override
|
||||||
bool get isInit => (origin as UpdateMangaDetailProvider).isInit;
|
bool get isInit => (origin as UpdateMangaDetailProvider).isInit;
|
||||||
|
@override
|
||||||
|
bool get showToast => (origin as UpdateMangaDetailProvider).showToast;
|
||||||
}
|
}
|
||||||
// ignore_for_file: type=lint
|
// ignore_for_file: type=lint
|
||||||
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ class _UpdatesScreenState extends ConsumerState<UpdatesScreen>
|
||||||
for (var manga in mangaList) {
|
for (var manga in mangaList) {
|
||||||
try {
|
try {
|
||||||
await ref.read(
|
await ref.read(
|
||||||
updateMangaDetailProvider(mangaId: manga.id, isInit: false).future,
|
updateMangaDetailProvider(mangaId: manga.id, isInit: false, showToast: false).future,
|
||||||
);
|
);
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
numbers++;
|
numbers++;
|
||||||
|
|
@ -357,7 +357,7 @@ class _UpdateTabState extends ConsumerState<UpdateTab> {
|
||||||
data
|
data
|
||||||
.map((e) => e.chapter.value!.manga.value!.lastUpdate!)
|
.map((e) => e.chapter.value!.manga.value!.lastUpdate!)
|
||||||
.toList();
|
.toList();
|
||||||
lastUpdatedList.sort((a, b) => a.compareTo(b));
|
lastUpdatedList.sort((a, b) => b.compareTo(a));
|
||||||
final lastUpdated = lastUpdatedList.firstOrNull;
|
final lastUpdated = lastUpdatedList.firstOrNull;
|
||||||
if (entries.isNotEmpty) {
|
if (entries.isNotEmpty) {
|
||||||
return CustomScrollView(
|
return CustomScrollView(
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ part of 'aniskip.dart';
|
||||||
// RiverpodGenerator
|
// RiverpodGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$aniSkipHash() => r'2e5d19b025a2207ff64da7bf7908450ea9e5ff8c';
|
String _$aniSkipHash() => r'887869b54e2e151633efd46da83bde845e14f421';
|
||||||
|
|
||||||
/// See also [AniSkip].
|
/// See also [AniSkip].
|
||||||
@ProviderFor(AniSkip)
|
@ProviderFor(AniSkip)
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ part of 'anilist.dart';
|
||||||
// RiverpodGenerator
|
// RiverpodGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$anilistHash() => r'ddd07acc8d28d2aa95c942566109e9393ca9e5ed';
|
String _$anilistHash() => r'70e8cd537270a9054a1ef72de117fc7ad5545218';
|
||||||
|
|
||||||
/// Copied from Dart SDK
|
/// Copied from Dart SDK
|
||||||
class _SystemHash {
|
class _SystemHash {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue