From 25a52cc66d4e6abc0106afd92a4573df22453920 Mon Sep 17 00:00:00 2001 From: henry9610 Date: Mon, 23 Sep 2024 11:36:45 +0800 Subject: [PATCH] The last 5 automatic backup images may cause an endless increase in the number of uploads. --- Pod/Classes/SeafPhotoBackupTool.m | 13 ++++++++----- Pod/Classes/Version.h | 2 +- Seafile.podspec | 2 +- seafilePro.xcodeproj/project.pbxproj | 4 ++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Pod/Classes/SeafPhotoBackupTool.m b/Pod/Classes/SeafPhotoBackupTool.m index 498d8e12..7ffd4166 100644 --- a/Pod/Classes/SeafPhotoBackupTool.m +++ b/Pod/Classes/SeafPhotoBackupTool.m @@ -166,10 +166,10 @@ - (void)pickPhotosForUpload { } } - if (self.photosArray.count == 0) { - Debug("Force check if there are new photos after all synced."); - [self checkPhotos:true]; - } +// if (self.photosArray.count == 0) { +// Debug("Force check if there are new photos after all synced."); +// [self checkPhotos:true]; +// } }); } @@ -218,7 +218,10 @@ - (void)filterOutNeedUploadPhotos { _inCheckPhotos = true; } - [self resetUploadingArray]; +// [self resetUploadingArray]; + @synchronized(self) { + self.photosArray = [[NSMutableArray alloc] init]; + } PHFetchOptions *fetchOptions = [[PHFetchOptions alloc] init]; fetchOptions.predicate = predicate; diff --git a/Pod/Classes/Version.h b/Pod/Classes/Version.h index 9068ab16..7f6a55be 100644 --- a/Pod/Classes/Version.h +++ b/Pod/Classes/Version.h @@ -9,6 +9,6 @@ #ifndef version_h #define version_h -#define SEAFILE_VERSION @"2.9.28" +#define SEAFILE_VERSION @"2.9.29" #endif /* version_h */ diff --git a/Seafile.podspec b/Seafile.podspec index ffb24b01..a1965ccc 100644 --- a/Seafile.podspec +++ b/Seafile.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Seafile" - s.version = "2.9.28" + s.version = "2.9.29" s.summary = "iOS client for seafile." s.homepage = "https://github.com/haiwen/seafile-iOS" s.license = 'MIT' diff --git a/seafilePro.xcodeproj/project.pbxproj b/seafilePro.xcodeproj/project.pbxproj index bb5f66d9..c708112c 100644 --- a/seafilePro.xcodeproj/project.pbxproj +++ b/seafilePro.xcodeproj/project.pbxproj @@ -2631,7 +2631,7 @@ INFOPLIST_FILE = "seafile/Supporting Files/seafile-appstore-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 11.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; - MARKETING_VERSION = 2.9.28; + MARKETING_VERSION = 2.9.29; PRODUCT_BUNDLE_IDENTIFIER = com.seafile.seafilePro; PRODUCT_NAME = SeafilePro; PROVISIONING_PROFILE = ""; @@ -2666,7 +2666,7 @@ INFOPLIST_FILE = "seafile/Supporting Files/seafile-appstore-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 11.0; LIBRARY_SEARCH_PATHS = "$(inherited)"; - MARKETING_VERSION = 2.9.28; + MARKETING_VERSION = 2.9.29; PRODUCT_BUNDLE_IDENTIFIER = com.seafile.seafilePro; PRODUCT_NAME = SeafilePro; PROVISIONING_PROFILE = "";