Last active
June 21, 2019 02:00
-
-
Save minacle/0e4670441e4758e5fba728c9fc483675 to your computer and use it in GitHub Desktop.
FBSDKCoreKit ~> 5.0.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.m | |
+++ b/FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKAppEventsUtility.m | |
@@ -20,8 +20,6 @@ | |
#import <objc/runtime.h> | |
-#import <AdSupport/AdSupport.h> | |
- | |
#import "FBSDKAccessToken.h" | |
#import "FBSDKAppEvents.h" | |
#import "FBSDKAppEventsDeviceInfo.h" | |
@@ -99,21 +97,9 @@ | |
+ (NSString *)advertiserID | |
{ | |
- if (!FBSDKSettings.isAdvertiserIDCollectionEnabled) { | |
return nil; | |
} | |
- NSString *result = nil; | |
- | |
- Class ASIdentifierManagerClass = fbsdkdfl_ASIdentifierManagerClass(); | |
- if ([ASIdentifierManagerClass class]) { | |
- ASIdentifierManager *manager = [ASIdentifierManagerClass sharedManager]; | |
- result = manager.advertisingIdentifier.UUIDString; | |
- } | |
- | |
- return result; | |
-} | |
- | |
+ (FBSDKAdvertisingTrackingStatus)advertisingTrackingStatus | |
{ | |
static dispatch_once_t fetchAdvertisingTrackingStatusOnce; | |
@@ -121,13 +107,6 @@ | |
dispatch_once(&fetchAdvertisingTrackingStatusOnce, ^{ | |
status = FBSDKAdvertisingTrackingUnspecified; | |
- Class ASIdentifierManagerClass = fbsdkdfl_ASIdentifierManagerClass(); | |
- if ([ASIdentifierManagerClass class]) { | |
- ASIdentifierManager *manager = [ASIdentifierManagerClass sharedManager]; | |
- if (manager) { | |
- status = manager.advertisingTrackingEnabled ? FBSDKAdvertisingTrackingAllowed : FBSDKAdvertisingTrackingDisallowed; | |
- } | |
- } | |
}); | |
return status; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment