From 60b2443c9501a66027e91324ffb6c3a7929c4d3b Mon Sep 17 00:00:00 2001 From: Eric Lindvall Date: Fri, 12 Jan 2024 18:46:24 -0800 Subject: [PATCH 1/3] Add support for VisionOS --- SDWebImage.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/SDWebImage.podspec b/SDWebImage.podspec index 68d62a2cc..ce7587d09 100644 --- a/SDWebImage.podspec +++ b/SDWebImage.podspec @@ -6,6 +6,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = '9.0' s.tvos.deployment_target = '9.0' s.watchos.deployment_target = '2.0' + s.visionos.deployment_target = '1.0' s.license = 'MIT' s.summary = 'Asynchronous image downloader with cache support with an UIImageView category.' From 906492f7ff226b408b3ca75c2eacc134ce011dc4 Mon Sep 17 00:00:00 2001 From: Eric Lindvall Date: Mon, 5 Feb 2024 18:18:26 -0800 Subject: [PATCH 2/3] Update SDImageCacheConfig.h Fix compilation error --- SDWebImage/Core/SDImageCacheConfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/Core/SDImageCacheConfig.h b/SDWebImage/Core/SDImageCacheConfig.h index 7e53ac7df..906c7cc9d 100644 --- a/SDWebImage/Core/SDImageCacheConfig.h +++ b/SDWebImage/Core/SDImageCacheConfig.h @@ -134,7 +134,7 @@ typedef NS_ENUM(NSUInteger, SDImageCacheConfigExpireType) { * @warning **MAKE SURE** to keep `diskCacheWritingOptions` to use `NSDataWritingAtomic`, or concurrent queue may cause corrupted disk data (because multiple threads read/write same file without atomic is not IO-safe). * @note This value does not support dynamic changes. Which means further modification on this value after cache initialized has no effect. */ -@property (strong, nonatomic, nullable) dispatch_queue_attr_t ioQueueAttributes; +@property (nonatomic, nullable) dispatch_queue_attr_t ioQueueAttributes; /** * The custom memory cache class. Provided class instance must conform to `SDMemoryCache` protocol to allow usage. From 63cd01fd01983e37ff8a5788e20aafd2935fb337 Mon Sep 17 00:00:00 2001 From: Eric Lindvall Date: Mon, 5 Feb 2024 18:23:33 -0800 Subject: [PATCH 3/3] Fix more visionOS build issues --- SDWebImage/Core/SDWebImagePrefetcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/Core/SDWebImagePrefetcher.h b/SDWebImage/Core/SDWebImagePrefetcher.h index 2256cc0c6..7a339a80c 100644 --- a/SDWebImage/Core/SDWebImagePrefetcher.h +++ b/SDWebImage/Core/SDWebImagePrefetcher.h @@ -92,7 +92,7 @@ typedef void(^SDWebImagePrefetcherCompletionBlock)(NSUInteger noOfFinishedUrls, * @note The call is asynchronously to avoid blocking target queue. (see SDCallbackPolicyDispatch) * @note The delegate queue should be set before any prefetching start and may not be changed during prefetching to avoid thread-safe problem. */ -@property (strong, nonatomic, nonnull) dispatch_queue_t delegateQueue API_DEPRECATED("Use SDWebImageContextCallbackQueue context param instead, see SDCallbackQueue", macos(10.10, 10.10), ios(8.0, 8.0), tvos(9.0, 9.0), watchos(2.0, 2.0)); +@property (nonatomic, nonnull) dispatch_queue_t delegateQueue API_DEPRECATED("Use SDWebImageContextCallbackQueue context param instead, see SDCallbackQueue", macos(10.10, 10.10), ios(8.0, 8.0), tvos(9.0, 9.0), watchos(2.0, 2.0)); /** * The delegate for the prefetcher. Defaults to nil.