Skip to content

Commit

Permalink
- update SDK to gain flow control for Item Policy Processors
Browse files Browse the repository at this point in the history
- AvailableOfflineAction: fix bug where a folder selected for Available Offline could not be removed form Available Offline by action (due to Swift != comparison apparently not using -isEqual:)
  • Loading branch information
felix-schwarz committed Jul 25, 2024
1 parent 840bad6 commit ca0890a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios-sdk
Submodule ios-sdk updated 25 files
+12 βˆ’4 ownCloudSDK.xcodeproj/project.pbxproj
+65 βˆ’0 ownCloudSDK/Core/ItemPolicies/Item Policies.md
+126 βˆ’46 ownCloudSDK/Core/ItemPolicies/OCCore+ItemPolicies.m
+2 βˆ’0 ownCloudSDK/Core/ItemPolicies/Processors/Available Offline/OCItemPolicyProcessorAvailableOffline.h
+19 βˆ’2 ownCloudSDK/Core/ItemPolicies/Processors/Available Offline/OCItemPolicyProcessorAvailableOffline.m
+8 βˆ’0 ownCloudSDK/Core/ItemPolicies/Processors/OCItemPolicyProcessor.h
+8 βˆ’0 ownCloudSDK/Core/OCCore.h
+6 βˆ’0 ownCloudSDK/Core/OCCore.m
+1 βˆ’2 ownCloudSDK/Core/Sync/Actions/Download/OCSyncActionDownload.h
+5 βˆ’2 ownCloudSDK/Core/Sync/Actions/Download/OCSyncActionDownload.m
+5 βˆ’0 ownCloudSDK/Core/Sync/Actions/OCSyncAction.h
+2 βˆ’0 ownCloudSDK/Core/Sync/Actions/OCSyncAction.m
+1 βˆ’3 ownCloudSDK/Core/Sync/Actions/Upload/OCSyncActionUpload.h
+6 βˆ’3 ownCloudSDK/Core/Sync/Actions/Upload/OCSyncActionUpload.m
+3 βˆ’0 ownCloudSDK/Core/Sync/OCCore+SyncEngine.h
+183 βˆ’38 ownCloudSDK/Core/Sync/OCCore+SyncEngine.m
+1 βˆ’0 ownCloudSDK/Core/Sync/Record/OCSyncRecord.h
+11 βˆ’7 ownCloudSDK/Core/Sync/Record/OCSyncRecord.m
+2 βˆ’0 ownCloudSDK/OCTypes.h
+123 βˆ’1 ownCloudSDK/Vaults/Database/OCDatabase+Schemas.m
+2 βˆ’0 ownCloudSDK/Vaults/Database/OCDatabase.h
+27 βˆ’5 ownCloudSDK/Vaults/Database/OCDatabase.m
+2 βˆ’1 ownCloudSDK/Wait Condition/OCWaitCondition.h
+27 βˆ’0 ownCloudSDK/Wait Condition/OCWaitConditionAvailableOffline.h
+82 βˆ’0 ownCloudSDK/Wait Condition/OCWaitConditionAvailableOffline.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AvailableOfflineAction: Action {
if let itemLocation = item.location, let policies = core.retrieveAvailableOfflinePoliciesCovering(item, completionHandler: nil) {
for policy in policies {
// Only show if item is not already available offline via parent item
if let policyLocation = policy.location, itemLocation.isLocated(in: policyLocation) && itemLocation != policyLocation {
if let policyLocation = policy.location, itemLocation.isLocated(in: policyLocation) && !itemLocation.isEqual(policyLocation) {
return .none
}
}
Expand Down

0 comments on commit ca0890a

Please sign in to comment.