|
@@ -529,7 +529,7 @@ id AFJSONObjectByRemovingKeysWithNullValues(id JSONObject, NSJSONReadingOptions
|
|
|
|
|
|
#pragma mark -
|
|
#pragma mark -
|
|
|
|
|
|
-#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
|
|
|
|
|
|
+#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH || TARGET_OS_VISION
|
|
#import <CoreGraphics/CoreGraphics.h>
|
|
#import <CoreGraphics/CoreGraphics.h>
|
|
#import <UIKit/UIKit.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
@@ -691,8 +691,11 @@ static UIImage * AFInflatedImageFromResponseWithDataAtScale(NSHTTPURLResponse *r
|
|
return nil;
|
|
return nil;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
-#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
|
|
|
|
|
|
+
|
|
|
|
+#if TARGET_OS_VISION
|
|
|
|
+ @throw [NSException exceptionWithName:NSInvalidArgumentException reason:@"TARGET_OS_VISION not implement" userInfo:nil];
|
|
|
|
+ return nil;
|
|
|
|
+#elif TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_WATCH
|
|
if (self.automaticallyInflatesResponseImage) {
|
|
if (self.automaticallyInflatesResponseImage) {
|
|
return AFInflatedImageFromResponseWithDataAtScale((NSHTTPURLResponse *)response, data, self.imageScale);
|
|
return AFInflatedImageFromResponseWithDataAtScale((NSHTTPURLResponse *)response, data, self.imageScale);
|
|
} else {
|
|
} else {
|