Fix rangeError during dedupe
This commit is contained in:
parent
8842d01ce0
commit
95298d46b3
|
@ -98,6 +98,9 @@ PODS:
|
||||||
- Flutter
|
- Flutter
|
||||||
- video_player (0.0.1):
|
- video_player (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
|
- video_thumbnail (0.0.1):
|
||||||
|
- Flutter
|
||||||
|
- libwebp
|
||||||
- wakelock (0.0.1):
|
- wakelock (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
|
|
||||||
|
@ -133,6 +136,7 @@ DEPENDENCIES:
|
||||||
- uni_links (from `.symlinks/plugins/uni_links/ios`)
|
- uni_links (from `.symlinks/plugins/uni_links/ios`)
|
||||||
- url_launcher (from `.symlinks/plugins/url_launcher/ios`)
|
- url_launcher (from `.symlinks/plugins/url_launcher/ios`)
|
||||||
- video_player (from `.symlinks/plugins/video_player/ios`)
|
- video_player (from `.symlinks/plugins/video_player/ios`)
|
||||||
|
- video_thumbnail (from `.symlinks/plugins/video_thumbnail/ios`)
|
||||||
- wakelock (from `.symlinks/plugins/wakelock/ios`)
|
- wakelock (from `.symlinks/plugins/wakelock/ios`)
|
||||||
|
|
||||||
SPEC REPOS:
|
SPEC REPOS:
|
||||||
|
@ -210,6 +214,8 @@ EXTERNAL SOURCES:
|
||||||
:path: ".symlinks/plugins/url_launcher/ios"
|
:path: ".symlinks/plugins/url_launcher/ios"
|
||||||
video_player:
|
video_player:
|
||||||
:path: ".symlinks/plugins/video_player/ios"
|
:path: ".symlinks/plugins/video_player/ios"
|
||||||
|
video_thumbnail:
|
||||||
|
:path: ".symlinks/plugins/video_thumbnail/ios"
|
||||||
wakelock:
|
wakelock:
|
||||||
:path: ".symlinks/plugins/wakelock/ios"
|
:path: ".symlinks/plugins/wakelock/ios"
|
||||||
|
|
||||||
|
@ -254,6 +260,7 @@ SPEC CHECKSUMS:
|
||||||
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a
|
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a
|
||||||
url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
|
url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
|
||||||
video_player: 9cc823b1d9da7e8427ee591e8438bfbcde500e6e
|
video_player: 9cc823b1d9da7e8427ee591e8438bfbcde500e6e
|
||||||
|
video_thumbnail: c4e2a3c539e247d4de13cd545344fd2d26ffafd1
|
||||||
wakelock: b0843b2479edbf6504d8d262c2959446f35373aa
|
wakelock: b0843b2479edbf6504d8d262c2959446f35373aa
|
||||||
|
|
||||||
PODFILE CHECKSUM: a226c065c368c69fce961535a41a0b30b1ab932d
|
PODFILE CHECKSUM: a226c065c368c69fce961535a41a0b30b1ab932d
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||||
DA6BE5E826B3BC8600656280 /* ios in Resources */ = {isa = PBXBuildFile; fileRef = DA6BE5E726B3BC8600656280 /* ios */; };
|
DA6BE5E826B3BC8600656280 /* BuildFile in Resources */ = {isa = PBXBuildFile; };
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXCopyFilesBuildPhase section */
|
/* Begin PBXCopyFilesBuildPhase section */
|
||||||
|
@ -133,7 +133,6 @@
|
||||||
children = (
|
children = (
|
||||||
274DC65025920DD100F526A4 /* StoreKit.framework */,
|
274DC65025920DD100F526A4 /* StoreKit.framework */,
|
||||||
F82DAEEB9A7D9FD00E0FFA1E /* Pods_Runner.framework */,
|
F82DAEEB9A7D9FD00E0FFA1E /* Pods_Runner.framework */,
|
||||||
DA6BE5E726B3BC8600656280 /* ios */,
|
|
||||||
);
|
);
|
||||||
name = Frameworks;
|
name = Frameworks;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
|
@ -207,7 +206,7 @@
|
||||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
||||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
||||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
||||||
DA6BE5E826B3BC8600656280 /* ios in Resources */,
|
DA6BE5E826B3BC8600656280 /* BuildFile in Resources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
@ -288,6 +287,7 @@
|
||||||
"${BUILT_PRODUCTS_DIR}/uni_links/uni_links.framework",
|
"${BUILT_PRODUCTS_DIR}/uni_links/uni_links.framework",
|
||||||
"${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
|
"${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
|
||||||
"${BUILT_PRODUCTS_DIR}/video_player/video_player.framework",
|
"${BUILT_PRODUCTS_DIR}/video_player/video_player.framework",
|
||||||
|
"${BUILT_PRODUCTS_DIR}/video_thumbnail/video_thumbnail.framework",
|
||||||
"${BUILT_PRODUCTS_DIR}/wakelock/wakelock.framework",
|
"${BUILT_PRODUCTS_DIR}/wakelock/wakelock.framework",
|
||||||
);
|
);
|
||||||
name = "[CP] Embed Pods Frameworks";
|
name = "[CP] Embed Pods Frameworks";
|
||||||
|
@ -331,6 +331,7 @@
|
||||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/uni_links.framework",
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/uni_links.framework",
|
||||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
|
||||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/video_player.framework",
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/video_player.framework",
|
||||||
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/video_thumbnail.framework",
|
||||||
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/wakelock.framework",
|
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/wakelock.framework",
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
|
|
@ -19,6 +19,9 @@ class DeduplicationService {
|
||||||
Future<List<DuplicateFiles>> getDuplicateFiles() async {
|
Future<List<DuplicateFiles>> getDuplicateFiles() async {
|
||||||
try {
|
try {
|
||||||
DuplicateFilesResponse dupes = await _fetchDuplicateFileIDs();
|
DuplicateFilesResponse dupes = await _fetchDuplicateFileIDs();
|
||||||
|
if (dupes.duplicates.isEmpty) {
|
||||||
|
return <DuplicateFiles>[];
|
||||||
|
}
|
||||||
final ids = <int>[];
|
final ids = <int>[];
|
||||||
for (final dupe in dupes.duplicates) {
|
for (final dupe in dupes.duplicates) {
|
||||||
ids.addAll(dupe.fileIDs);
|
ids.addAll(dupe.fileIDs);
|
||||||
|
|
Loading…
Reference in a new issue