Skip to content

Commit

Permalink
- OCItem+FileProviderItem: fix build error on MacCatalyst to allow xc…
Browse files Browse the repository at this point in the history
…strings transition
  • Loading branch information
felix-schwarz committed Sep 13, 2024
1 parent 779bf18 commit dc7f7f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ownCloud File Provider/OCItem+FileProviderItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#import <ownCloudSDK/ownCloudSDK.h>

#if OC_FEATURE_AVAILABLE_FILEPROVIDER

@interface OCItem (FileProviderItem) <NSFileProviderItem>

- (void)setLocalFavoriteRank:(NSNumber *)localFavoriteRank;
Expand All @@ -26,3 +28,5 @@
- (void)setUploadingError:(NSError *)uploadingError;

@end

#endif /* OC_FEATURE_AVAILABLE_FILEPROVIDER */
4 changes: 4 additions & 0 deletions ownCloud File Provider/OCItem+FileProviderItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#import "OCItem+FileProviderItem.h"
#import "NSError+MessageResolution.h"

#if OC_FEATURE_AVAILABLE_FILEPROVIDER

static NSMutableDictionary<OCLocalID, NSError *> *sOCItemUploadingErrors;

@implementation OCItem (FileProviderItem)
Expand Down Expand Up @@ -409,3 +411,5 @@ - (void)setUploadingError:(NSError *)uploadingError
}

@end

#endif /* OC_FEATURE_AVAILABLE_FILEPROVIDER */

0 comments on commit dc7f7f4

Please sign in to comment.