Skip to content

Commit 4be2aa8

Browse files
committed
SDK-598 update deprecations in the header
1 parent e17c279 commit 4be2aa8

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Branch-SDK/Branch-SDK/Branch.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
653653
Specify that Branch should NOT use an invisible SFSafariViewController to attempt cookie-based matching upon install.
654654
If you call this method, we will fall back to using our pool of cookie-IDFA pairs for matching.
655655
*/
656-
- (void)disableCookieBasedMatching;
656+
- (void)disableCookieBasedMatching __attribute__((deprecated(("Feature removed in iOS 11+"))));
657657

658658
/**
659659
TL;DR: If you're using a version of the Facebook SDK that prevents application:didFinishLaunchingWithOptions: from
@@ -681,15 +681,15 @@ typedef NS_ENUM(NSUInteger, BranchCreditHistoryOrder) {
681681
*/
682682
- (void)setRequestMetadataKey:(NSString *)key value:(nullable id)value;
683683

684-
- (void)enableDelayedInit;
684+
- (void)enableDelayedInit __attribute__((deprecated(("No longer valid with new init process"))));
685685

686-
- (void)disableDelayedInit;
686+
- (void)disableDelayedInit __attribute__((deprecated(("No longer valid with new init process"))));
687687

688-
- (nullable NSURL *)getUrlForOnboardingWithRedirectUrl:(nullable NSString *)redirectUrl;
688+
- (nullable NSURL *)getUrlForOnboardingWithRedirectUrl:(nullable NSString *)redirectUrl __attribute__((deprecated(("Feature removed in iOS 11+"))));;
689689

690-
- (void)resumeInit;
690+
- (void)resumeInit __attribute__((deprecated(("Feature removed in iOS 11+"))));
691691

692-
- (void)setInstallRequestDelay:(NSInteger)installRequestDelay;
692+
- (void)setInstallRequestDelay:(NSInteger)installRequestDelay __attribute__((deprecated(("No longer valid with new init process"))));
693693

694694
/**
695695
Disables the Branch SDK from tracking the user. This is useful for GDPR privacy compliance.

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ + (void)load {
203203
});
204204
}
205205

206+
// deprecated
206207
+ (Branch *)getTestInstance {
207208
Branch.useTestBranchKey = YES;
208209
return Branch.getInstance;
@@ -475,11 +476,11 @@ - (void)setRetryInterval:(NSTimeInterval)retryInterval {
475476
}
476477

477478
- (void)disableCookieBasedMatching {
478-
// deprecate this
479+
// deprecated
479480
}
480481

481482
- (void)accountForFacebookSDKPreventingAppLaunch {
482-
// deprecate this
483+
// deprecated
483484
}
484485

485486
- (void)suppressWarningLogs {
@@ -491,24 +492,24 @@ - (void)setRequestMetadataKey:(NSString *)key value:(NSObject *)value {
491492
}
492493

493494
- (void)enableDelayedInit {
494-
// deprecate this
495+
// deprecated
495496
}
496497

497498
- (void)disableDelayedInit {
498-
// deprecate this
499+
// deprecated
499500
}
500501

501502
- (NSURL *)getUrlForOnboardingWithRedirectUrl:(NSString *)redirectUrl {
502-
// deprecate this
503+
// deprecated
503504
return nil;
504505
}
505506

506507
- (void)resumeInit {
507-
// deprecate this
508+
// deprecated
508509
}
509510

510511
- (void)setInstallRequestDelay:(NSInteger)installRequestDelay {
511-
// deprecate this
512+
// deprecated
512513
}
513514

514515
+ (BOOL)trackingDisabled {
@@ -666,8 +667,7 @@ - (void)setBlackListURLRegex:(NSArray<NSString*>*)blackListURLs {
666667
}
667668
}
668669

669-
// deprecate this, it's the same as handleDeeplink
670-
// replaced all internal references to this method
670+
// This is currently the same as handleDeeplink
671671
- (BOOL)handleDeepLinkWithNewSession:(NSURL *)url {
672672
return [self handleDeepLink:url];
673673
}

0 commit comments

Comments
 (0)