From 726da638b650a6373e9467f40b9a5a172324a894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Cabec=CC=A7a?= Date: Thu, 15 Jul 2021 17:09:43 +0200 Subject: [PATCH] Annotate code referencing APIs annotated as unavailable for iOS extensions. Xcode 13 beta 3 introduces a breaking change related to API unavailable for iOS extensions: https://developer.apple.com/documentation/xcode-release-notes/xcode-13-beta-release-notes This adds the required annotations to all code dependent on APIs unavailable for iOS extensions. --- Adjust/ADJActivityHandler.h | 2 +- Adjust/ADJActivityHandler.m | 2 ++ Adjust/ADJAttributionHandler.h | 2 +- Adjust/ADJAttributionHandler.m | 2 ++ Adjust/ADJUtil.h | 4 ++-- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Adjust/ADJActivityHandler.h b/Adjust/ADJActivityHandler.h index a3ea75f0f..da0356d4b 100644 --- a/Adjust/ADJActivityHandler.h +++ b/Adjust/ADJActivityHandler.h @@ -72,7 +72,7 @@ - (void)launchEventResponseTasks:(ADJEventResponseData * _Nullable)eventResponseData; - (void)launchSessionResponseTasks:(ADJSessionResponseData * _Nullable)sessionResponseData; - (void)launchSdkClickResponseTasks:(ADJSdkClickResponseData * _Nullable)sdkClickResponseData; -- (void)launchAttributionResponseTasks:(ADJAttributionResponseData * _Nullable)attributionResponseData; +- (void)launchAttributionResponseTasks:(ADJAttributionResponseData * _Nullable)attributionResponseData NS_EXTENSION_UNAVAILABLE_IOS(""); - (void)setEnabled:(BOOL)enabled; - (BOOL)isEnabled; - (BOOL)isGdprForgotten; diff --git a/Adjust/ADJActivityHandler.m b/Adjust/ADJActivityHandler.m index 9b50fcc6a..2cf2eed51 100644 --- a/Adjust/ADJActivityHandler.m +++ b/Adjust/ADJActivityHandler.m @@ -102,6 +102,8 @@ @interface ADJActivityHandler() @property (nonatomic, copy) NSString* gdprPath; @property (nonatomic, copy) NSString* subscriptionPath; +- (void)prepareDeeplinkI:(ADJActivityHandler *_Nullable)selfI responseData:(ADJAttributionResponseData *_Nullable)attributionResponseData NS_EXTENSION_UNAVAILABLE_IOS(""); + @end // copy from ADClientError diff --git a/Adjust/ADJAttributionHandler.h b/Adjust/ADJAttributionHandler.h index 4a27a26b1..dca660f6c 100644 --- a/Adjust/ADJAttributionHandler.h +++ b/Adjust/ADJAttributionHandler.h @@ -23,7 +23,7 @@ - (void)checkSdkClickResponse:(ADJSdkClickResponseData *)sdkClickResponseData; -- (void)checkAttributionResponse:(ADJAttributionResponseData *)attributionResponseData; +- (void)checkAttributionResponse:(ADJAttributionResponseData *)attributionResponseData NS_EXTENSION_UNAVAILABLE_IOS(""); - (void)getAttribution; diff --git a/Adjust/ADJAttributionHandler.m b/Adjust/ADJAttributionHandler.m index a99f84ada..65960ea15 100644 --- a/Adjust/ADJAttributionHandler.m +++ b/Adjust/ADJAttributionHandler.m @@ -28,6 +28,8 @@ @interface ADJAttributionHandler() @property (atomic, assign) BOOL paused; @property (nonatomic, copy) NSString *lastInitiatedBy; +- (void)checkAttributionResponseI:(ADJAttributionHandler*)selfI attributionResponseData:(ADJAttributionResponseData *)attributionResponseData NS_EXTENSION_UNAVAILABLE_IOS(""); + @end @implementation ADJAttributionHandler diff --git a/Adjust/ADJUtil.h b/Adjust/ADJUtil.h index 0f76567eb..bbba25543 100644 --- a/Adjust/ADJUtil.h +++ b/Adjust/ADJUtil.h @@ -31,13 +31,13 @@ typedef void (^isInactiveInjected)(BOOL); + (void)excludeFromBackup:(NSString *)filename; -+ (void)launchDeepLinkMain:(NSURL *)deepLinkUrl; ++ (void)launchDeepLinkMain:(NSURL *)deepLinkUrl NS_EXTENSION_UNAVAILABLE_IOS(""); + (void)launchInMainThread:(dispatch_block_t)block; + (BOOL)isMainThread; -+ (BOOL)isInactive; ++ (BOOL)isInactive NS_EXTENSION_UNAVAILABLE_IOS(""); + (void)launchInMainThreadWithInactive:(isInactiveInjected)isInactiveblock;