Skip to content

Commit d102b83

Browse files
committed
[SDK-746] Update to Android SDK 4.3.2; iOS SDK 0.31.3
1 parent b9279be commit d102b83

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ android {
2222

2323
dependencies {
2424
implementation 'com.facebook.react:react-native:+' // From node_modules
25-
api 'io.branch.sdk.android:library:3.2.0'
25+
api 'io.branch.sdk.android:library:4.3.2'
2626
}

ios/RNBranch.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ extern NSString * _Nonnull const RNBranchLinkOpenedNotificationLinkPropertiesKey
2828

2929
+ (void)setDebug;
3030
+ (void)delayInitToCheckForSearchAds;
31-
+ (void)setAppleSearchAdsDebugMode;
3231
+ (void)setRequestMetadataKey:(NSString * _Nonnull)key value:(NSObject * _Nonnull)value;
3332

3433
@end

ios/RNBranch.m

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
static NSString * const RNBranchErrorDomain = @"RNBranchErrorDomain";
3030
static NSInteger const RNBranchUniversalObjectNotFoundError = 1;
3131

32-
static NSString * const REQUIRED_BRANCH_SDK = @"0.27.1";
33-
3432
#pragma mark - Private RNBranch declarations
3533

3634
@interface RNBranch()
@@ -78,9 +76,6 @@ + (BOOL)requiresMainQueueSetup {
7876
+ (void)setupBranchInstance:(Branch *)instance
7977
{
8078
RCTLogInfo(@"Initializing Branch SDK v. %@", BNC_SDK_VERSION);
81-
if (![BNC_SDK_VERSION isEqualToString:REQUIRED_BRANCH_SDK]) {
82-
RCTLogError(@"Please use v. %@ of Branch. In your Podfile: pod 'Branch', '%@'. Then pod install.", REQUIRED_BRANCH_SDK, REQUIRED_BRANCH_SDK);
83-
}
8479

8580
RNBranchConfig *config = RNBranchConfig.instance;
8681
if (config.debugMode) {
@@ -89,9 +84,6 @@ + (void)setupBranchInstance:(Branch *)instance
8984
if (config.delayInitToCheckForSearchAds) {
9085
[instance delayInitToCheckForSearchAds];
9186
}
92-
if (config.appleSearchAdsDebugMode) {
93-
[instance setAppleSearchAdsDebugMode];
94-
}
9587
}
9688

9789
- (NSDictionary<NSString *, NSString *> *)constantsToExport {

react-native-branch.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ Pod::Spec.new do |s|
2020
s.platform = :ios, "7.0"
2121
s.source = { spec['repository']['type'].to_sym => spec['repository']['url'].sub(/^[a-z]+\+/, '') }
2222
s.source_files = [ "ios/*.h", "ios/*.m"]
23-
s.dependency 'Branch', '0.27.1'
23+
s.dependency 'Branch', '0.31.3'
2424
s.dependency 'React' # to ensure the correct build order
2525
end

0 commit comments

Comments
 (0)