From dc7f7f4f1aced62f7e054e2e4017879fcf9e33d2 Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Fri, 13 Sep 2024 10:59:51 +0200 Subject: [PATCH] - OCItem+FileProviderItem: fix build error on MacCatalyst to allow xcstrings transition --- ownCloud File Provider/OCItem+FileProviderItem.h | 4 ++++ ownCloud File Provider/OCItem+FileProviderItem.m | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ownCloud File Provider/OCItem+FileProviderItem.h b/ownCloud File Provider/OCItem+FileProviderItem.h index 506c24220..3060de4f2 100644 --- a/ownCloud File Provider/OCItem+FileProviderItem.h +++ b/ownCloud File Provider/OCItem+FileProviderItem.h @@ -18,6 +18,8 @@ #import +#if OC_FEATURE_AVAILABLE_FILEPROVIDER + @interface OCItem (FileProviderItem) - (void)setLocalFavoriteRank:(NSNumber *)localFavoriteRank; @@ -26,3 +28,5 @@ - (void)setUploadingError:(NSError *)uploadingError; @end + +#endif /* OC_FEATURE_AVAILABLE_FILEPROVIDER */ diff --git a/ownCloud File Provider/OCItem+FileProviderItem.m b/ownCloud File Provider/OCItem+FileProviderItem.m index 7c6cd03aa..363a610cc 100644 --- a/ownCloud File Provider/OCItem+FileProviderItem.m +++ b/ownCloud File Provider/OCItem+FileProviderItem.m @@ -22,6 +22,8 @@ #import "OCItem+FileProviderItem.h" #import "NSError+MessageResolution.h" +#if OC_FEATURE_AVAILABLE_FILEPROVIDER + static NSMutableDictionary *sOCItemUploadingErrors; @implementation OCItem (FileProviderItem) @@ -409,3 +411,5 @@ - (void)setUploadingError:(NSError *)uploadingError } @end + +#endif /* OC_FEATURE_AVAILABLE_FILEPROVIDER */