Skip to content

Commit 9674322

Browse files
chore(versions): update iOS and Android SDK versions
* Updated Android and iOS versions * Removed apple search ads code * Updated testbed to use latest alpha version
1 parent e69fc81 commit 9674322

File tree

7 files changed

+11
-20
lines changed

7 files changed

+11
-20
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ def safeExtGet(prop, fallback) {
4747
dependencies {
4848
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
4949
implementation 'com.facebook.react:react-native:+' // From node_modules
50-
api 'io.branch.sdk.android:library:5.3.0'
50+
api 'io.branch.sdk.android:library:5.5.0'
5151
}

branch.example.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
"liveKey": "key_live_xxxx",
44
"testKey": "key_test_yyyy",
55
"useTestInstance": true,
6-
"delayInitToCheckForSearchAds": true,
76
"enableFacebookLinkCheck": true
87
}

branchreactnativetestbed/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"react": "18.2.0",
1414
"react-native": "0.71.4",
15-
"react-native-branch": "^5.8.0-alpha.2"
15+
"react-native-branch": "^5.9.0-alpha.3"
1616
},
1717
"devDependencies": {
1818
"@babel/core": "^7.20.0",

docs/branch.json.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,14 @@ of `branch.json`.
9696
Note that support for setting Branch keys on Android in branch.json requires
9797
version 3.x of react-native-branch, using [RNBranchModule.getAutoInstance()](https://help.branch.io/developers-hub/docs/react-native#section-updating-from-an-earlier-version-or-starting-with-v-3-0-0)
9898

99-
|key|description|type|
100-
|---|---|---|
101-
|branchKey|The Branch key to use. Overrides liveKey, testKey and useTestInstance.|String|
102-
|liveKey|The live Branch key to use if useTestInstance is false. Ignored if useTestInstance is true or branchKey is present.|String|
103-
|debugMode|If true, `setDebug` will be called in the native SDK, enabling testing of install events.|Boolean|
104-
|delayInitToCheckForSearchAds|If true, `delayInitToCheckForSearchAds` will be called on the iOS Branch instance. Ignored on Android.|Boolean|
105-
|enableFacebookLinkCheck|If true, results in calling `enableFacebookAppLinkCheck()` in the Branch Android SDK and `registerFacebookDeepLinkingClass:` in the Branch iOS SDK.|Boolean|
106-
|testKey|The test Branch key to use if useTestInstance is true. Ignored if useTestInstance is false or branchKey is present.|String|
107-
|useTestInstance|Determines whether liveKey or testKey is used if branchKey is not present.|Boolean|
99+
| key | description | type |
100+
| ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
101+
| branchKey | The Branch key to use. Overrides liveKey, testKey and useTestInstance. | String |
102+
| liveKey | The live Branch key to use if useTestInstance is false. Ignored if useTestInstance is true or branchKey is present. | String |
103+
| debugMode | If true, `setDebug` will be called in the native SDK, enabling testing of install events. | Boolean |
104+
| enableFacebookLinkCheck | If true, results in calling `enableFacebookAppLinkCheck()` in the Branch Android SDK and `registerFacebookDeepLinkingClass:` in the Branch iOS SDK. | Boolean |
105+
| testKey | The test Branch key to use if useTestInstance is true. Ignored if useTestInstance is false or branchKey is present. | String |
106+
| useTestInstance | Determines whether liveKey or testKey is used if branchKey is not present. | Boolean |
108107

109108
## Example
110109

@@ -116,7 +115,6 @@ See [branch.example.json](https://github.com/BranchMetrics/react-native-branch-d
116115
"liveKey": "key_live_xxxx",
117116
"testKey": "key_test_yyyy",
118117
"useTestInstance": true,
119-
"delayInitToCheckForSearchAds": true,
120118
"enableFacebookLinkCheck": true
121119
}
122120
```

ios/RNBranch.h

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

3232
+ (void)setDebug;
3333
+ (void)enableLogging;
34-
+ (void)delayInitToCheckForSearchAds;
3534

3635
@end

ios/RNBranch.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,6 @@ + (void)enableLogging
119119
[self.branch enableLogging];
120120
}
121121

122-
+ (void)delayInitToCheckForSearchAds
123-
{
124-
[self.branch delayInitToCheckForSearchAds];
125-
}
126-
127122
+ (void)useTestInstance {
128123
useTestInstance = YES;
129124
}

react-native-branch.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Pod::Spec.new do |s|
2222
s.source_files = [ "ios/*.h", "ios/*.m"]
2323
s.compiler_flags = %[-DRNBRANCH_VERSION=@\\"#{s.version}\\"]
2424
s.header_dir = 'RNBranch' # also sets generated module name
25-
s.dependency 'BranchSDK', '2.1.0'
25+
s.dependency 'BranchSDK', '2.2.0'
2626
s.dependency 'React-Core' # to ensure the correct build order
2727

2828
# Swift/Objective-C compatibility

0 commit comments

Comments
 (0)