@@ -140,7 +140,7 @@ @interface Branch() <BranchDeepLinkingControllerCompletionDelegate> {
140140@property (strong , nonatomic ) NSMutableDictionary *deepLinkControllers;
141141@property (weak , nonatomic ) UIViewController *deepLinkPresentingController;
142142@property (strong , nonatomic ) NSDictionary *deepLinkDebugParams;
143- @property (strong , nonatomic ) NSMutableArray *whiteListedSchemeList ;
143+ @property (strong , nonatomic ) NSMutableArray *allowedSchemeList ;
144144@property (strong , nonatomic ) BNCURLFilter *urlFilter;
145145
146146#if !TARGET_OS_TV
@@ -193,7 +193,7 @@ - (id)initWithInterface:(BNCServerInterface *)interface
193193 _processing_sema = dispatch_semaphore_create (1 );
194194 _networkCount = 0 ;
195195 _deepLinkControllers = [[NSMutableDictionary alloc ] init ];
196- _whiteListedSchemeList = [[NSMutableArray alloc ] init ];
196+ _allowedSchemeList = [[NSMutableArray alloc ] init ];
197197
198198 #if !TARGET_OS_TV
199199 _contentDiscoveryManager = [[BNCContentDiscoveryManager alloc ] init ];
@@ -665,12 +665,12 @@ - (void)setDeepLinkDebugMode:(NSDictionary *)debugParams {
665665 self.deepLinkDebugParams = debugParams;
666666}
667667
668- - (void )setWhiteListedSchemes : (NSArray *)schemes {
669- self.whiteListedSchemeList = [schemes mutableCopy ];
668+ - (void )setAllowedSchemes : (NSArray *)schemes {
669+ self.allowedSchemeList = [schemes mutableCopy ];
670670}
671671
672- - (void )addWhiteListedScheme : (NSString *)scheme {
673- [self .whiteListedSchemeList addObject: scheme];
672+ - (void )addAllowedScheme : (NSString *)scheme {
673+ [self .allowedSchemeList addObject: scheme];
674674}
675675
676676- (void )setUrlPatternsToIgnore : (NSArray <NSString*>*)urlsToIgnore {
@@ -731,8 +731,8 @@ - (BOOL)handleSchemeDeepLink_private:(NSURL*)url sceneIdentifier:(NSString *)sce
731731 NSString *urlScheme = [url scheme ];
732732
733733 // save the incoming url in the preferenceHelper in the externalIntentURI field
734- if ([self .whiteListedSchemeList count ]) {
735- for (NSString *scheme in self.whiteListedSchemeList ) {
734+ if ([self .allowedSchemeList count ]) {
735+ for (NSString *scheme in self.allowedSchemeList ) {
736736 if (urlScheme && [scheme isEqualToString: urlScheme]) {
737737 self.preferenceHelper .externalIntentURI = [url absoluteString ];
738738 self.preferenceHelper .referringURL = [url absoluteString ];
@@ -1285,7 +1285,7 @@ - (void)crossPlatformIdDataWithCompletion:(void(^) (BranchCrossPlatformID * _Nul
12851285 });
12861286}
12871287
1288- - (void )lastAttributedTouchDataWithAttributionWindow : (NSInteger )window completion : (void (^) (BranchLastAttributedTouchData * _Nullable latd))completion {
1288+ - (void )lastAttributedTouchDataWithAttributionWindow : (NSInteger )window completion : (void (^) (BranchLastAttributedTouchData * _Nullable latd, NSError * _Nullable error ))completion {
12891289 [self initSafetyCheck ];
12901290 dispatch_async (self.isolationQueue , ^(){
12911291 [BranchLastAttributedTouchData requestLastTouchAttributedData: self .serverInterface key: self .class.branchKey attributionWindow: window completion: completion];
0 commit comments