Skip to content

Commit 1f68582

Browse files
authored
Remove IDFA macro (#407)
1 parent 4ae1372 commit 1f68582

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Leanplum-SDK/Classes/Leanplum.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -132,27 +132,6 @@ name = [LPVar define:[@#name stringByReplacingOccurrencesOfString:@"_" withStrin
132132
}
133133
/**@}*/
134134

135-
/**
136-
* Use this code in development mode (or in production), to use the advertising ID.
137-
* It's useful in development mode so that we remember your device even if you reinstall your app.
138-
* Since it's a MACRO, this won't get compiled into your app in production, and will be safe
139-
* to submit to Apple.
140-
*/
141-
#define LEANPLUM_USE_ADVERTISING_ID \
142-
_Pragma("clang diagnostic push") \
143-
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
144-
id LeanplumIdentifierManager = [NSClassFromString(@"ASIdentifierManager") \
145-
performSelector:NSSelectorFromString(@"sharedManager")]; \
146-
if (floor(NSFoundationVersionNumber) <= 1299 /* NSFoundationVersionNumber_iOS_9_x_Max */ || \
147-
[LeanplumIdentifierManager performSelector: \
148-
NSSelectorFromString(@"isAdvertisingTrackingEnabled")]) { \
149-
/* < iOS10 || isAdvertisingTrackingEnabled */ \
150-
[Leanplum setDeviceId:[[LeanplumIdentifierManager performSelector: \
151-
NSSelectorFromString(@"advertisingIdentifier")] \
152-
performSelector:NSSelectorFromString(@"UUIDString")]]; \
153-
} \
154-
_Pragma("clang diagnostic pop")
155-
156135
@class LPActionContext;
157136
@class SKPaymentTransaction;
158137
@class NSExtensionContext;

0 commit comments

Comments
 (0)