Skip to content

Commit 1fef754

Browse files
committed
method mixup
1 parent a10d29e commit 1fef754

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ @interface Branch() <BranchDeepLinkingControllerCompletionDelegate, FABKit>
8080
@property (strong, nonatomic) NSDictionary *deepLinkDebugParams;
8181
@property (assign, nonatomic) BOOL accountForFacebookSDK;
8282
@property (assign, nonatomic) id FBSDKAppLinkUtility;
83-
@property (strong, nonatomic) NSMutableArray *whiteListedSchemes;
83+
@property (strong, nonatomic) NSMutableArray *whiteListedSchemeList;
8484

8585
@end
8686

@@ -148,7 +148,7 @@ - (id)initWithInterface:(BNCServerInterface *)interface queue:(BNCServerRequestQ
148148
_processing_sema = dispatch_semaphore_create(1);
149149
_networkCount = 0;
150150
_deepLinkControllers = [[NSMutableDictionary alloc] init];
151-
_whiteListedSchemes = [[NSMutableArray alloc] init];
151+
_whiteListedSchemeList = [[NSMutableArray alloc] init];
152152
_useCookieBasedMatching = YES;
153153

154154
NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
@@ -323,20 +323,20 @@ - (void) setDeepLinkDebugMode:(NSDictionary *)debugParams {
323323
}
324324

325325
-(void)setWhiteListedSchemes:(NSArray *)schemes {
326-
self.whiteListedSchemes = [schemes mutableCopy];
326+
self.whiteListedSchemeList = [schemes mutableCopy];
327327
}
328328

329329
-(void)addWhiteListedScheme:(NSString *)scheme {
330-
[self.whiteListedSchemes addObject:scheme];
330+
[self.whiteListedSchemeList addObject:scheme];
331331
}
332332

333333
- (BOOL)handleDeepLink:(NSURL *)url {
334334
BOOL handled = NO;
335335
if (url && ![url isEqual:[NSNull null]]) {
336336

337337
// save the incoming url in the preferenceHelper in the externalIntentURI field
338-
if ([self.whiteListedSchemes count]) {
339-
for (NSString *scheme in self.whiteListedSchemes) {
338+
if ([self.whiteListedSchemeList count]) {
339+
for (NSString *scheme in self.whiteListedSchemeList) {
340340
if ([scheme isEqualToString:[url scheme]]) {
341341
self.preferenceHelper.externalIntentURI = [url absoluteString];
342342
}

Branch-TestBed/Branch-TestBed/AppDelegate.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
2121

2222
Branch *branch = [Branch getInstance];
2323
[branch setDebug];
24+
[branch setWhiteListedSchemes:@[@"branchtest"]];
2425

2526
ExampleDeepLinkingController *controller = [[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]] instantiateViewControllerWithIdentifier:@"DeepLinkingController"];
2627
[branch registerDeepLinkController:controller forKey:@"gravatar_email"];

0 commit comments

Comments
 (0)