Skip to content

Commit 006f7ce

Browse files
authored
Merge pull request #543 from BranchMetrics/SDK-746_update-native-sdks-for-3.x
[SDK-746] [SDK-878] Update native SDKs for 3.x
2 parents b9279be + 0c5260e commit 006f7ce

File tree

13 files changed

+85
-175
lines changed

13 files changed

+85
-175
lines changed

Gemfile.lock

Lines changed: 66 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (2.3.6)
4+
CFPropertyList (3.0.2)
55
activesupport (4.2.11.1)
66
i18n (~> 0.7)
77
minitest (~> 5.1)
88
thread_safe (~> 0.3, >= 0.3.4)
99
tzinfo (~> 1.1)
10-
addressable (2.6.0)
11-
public_suffix (>= 2.0.2, < 4.0)
10+
addressable (2.7.0)
11+
public_suffix (>= 2.0.2, < 5.0)
12+
algoliasearch (1.27.1)
13+
httpclient (~> 2.8, >= 2.8.3)
14+
json (>= 1.5.1)
1215
atomos (0.1.3)
13-
babosa (1.0.2)
14-
backports (3.15.0)
15-
claide (1.0.2)
16-
cocoapods (1.7.5)
16+
babosa (1.0.3)
17+
backports (3.16.1)
18+
claide (1.0.3)
19+
cocoapods (1.8.4)
1720
activesupport (>= 4.0.2, < 5)
1821
claide (>= 1.0.2, < 2.0)
19-
cocoapods-core (= 1.7.5)
22+
cocoapods-core (= 1.8.4)
2023
cocoapods-deintegrate (>= 1.0.3, < 2.0)
2124
cocoapods-downloader (>= 1.2.2, < 2.0)
2225
cocoapods-plugins (>= 1.0.0, < 2.0)
2326
cocoapods-search (>= 1.0.0, < 2.0)
2427
cocoapods-stats (>= 1.0.0, < 2.0)
25-
cocoapods-trunk (>= 1.3.1, < 2.0)
28+
cocoapods-trunk (>= 1.4.0, < 2.0)
2629
cocoapods-try (>= 1.1.0, < 2.0)
2730
colored2 (~> 3.1)
2831
escape (~> 0.0.4)
@@ -31,47 +34,49 @@ GEM
3134
molinillo (~> 0.6.6)
3235
nap (~> 1.0)
3336
ruby-macho (~> 1.4)
34-
xcodeproj (>= 1.10.0, < 2.0)
35-
cocoapods-core (1.7.5)
37+
xcodeproj (>= 1.11.1, < 2.0)
38+
cocoapods-core (1.8.4)
3639
activesupport (>= 4.0.2, < 6)
40+
algoliasearch (~> 1.0)
41+
concurrent-ruby (~> 1.1)
3742
fuzzy_match (~> 2.0.4)
3843
nap (~> 1.0)
3944
cocoapods-deintegrate (1.0.4)
40-
cocoapods-downloader (1.2.2)
45+
cocoapods-downloader (1.3.0)
4146
cocoapods-plugins (1.0.0)
4247
nap
4348
cocoapods-search (1.0.0)
4449
cocoapods-stats (1.1.0)
45-
cocoapods-trunk (1.3.1)
50+
cocoapods-trunk (1.4.1)
4651
nap (>= 0.8, < 2.0)
4752
netrc (~> 0.11)
4853
cocoapods-try (1.1.0)
4954
colored (1.2)
5055
colored2 (3.1.2)
5156
commander-fastlane (4.4.6)
5257
highline (~> 1.7.2)
53-
concurrent-ruby (1.1.5)
58+
concurrent-ruby (1.1.6)
5459
connection_pool (2.2.2)
5560
declarative (0.0.10)
5661
declarative-option (0.1.0)
5762
digest-crc (0.4.1)
5863
domain_name (0.5.20190701)
5964
unf (>= 0.0.5, < 1.0.0)
60-
dotenv (2.7.4)
65+
dotenv (2.7.5)
6166
emoji_regex (1.0.1)
6267
escape (0.0.4)
6368
ethon (0.12.0)
6469
ffi (>= 1.3.0)
65-
excon (0.65.0)
66-
faraday (0.15.4)
70+
excon (0.72.0)
71+
faraday (0.17.3)
6772
multipart-post (>= 1.2, < 3)
6873
faraday-cookie_jar (0.0.6)
6974
faraday (>= 0.7.4)
7075
http-cookie (~> 1.0.0)
7176
faraday_middleware (0.13.1)
7277
faraday (>= 0.7.4, < 1.0)
73-
fastimage (2.1.5)
74-
fastlane (2.128.1)
78+
fastimage (2.1.7)
79+
fastlane (2.142.0)
7580
CFPropertyList (>= 2.3, < 4.0.0)
7681
addressable (>= 2.3, < 3.0.0)
7782
babosa (>= 1.0.2, < 2.0.0)
@@ -80,13 +85,13 @@ GEM
8085
commander-fastlane (>= 4.4.6, < 5.0.0)
8186
dotenv (>= 2.1.1, < 3.0.0)
8287
emoji_regex (>= 0.1, < 2.0)
83-
excon (>= 0.45.0, < 1.0.0)
84-
faraday (~> 0.9)
88+
excon (>= 0.71.0, < 1.0.0)
89+
faraday (~> 0.17)
8590
faraday-cookie_jar (~> 0.0.6)
86-
faraday_middleware (~> 0.9)
91+
faraday_middleware (~> 0.13.1)
8792
fastimage (>= 2.1.0, < 3.0.0)
8893
gh_inspector (>= 1.1.2, < 2.0.0)
89-
google-api-client (>= 0.21.2, < 0.24.0)
94+
google-api-client (>= 0.29.2, < 0.37.0)
9095
google-cloud-storage (>= 1.15.0, < 2.0.0)
9196
highline (>= 1.7.2, < 2.0.0)
9297
json (< 3.0.0)
@@ -96,7 +101,7 @@ GEM
96101
multipart-post (~> 2.0.0)
97102
plist (>= 3.1.0, < 4.0.0)
98103
public_suffix (~> 2.0.0)
99-
rubyzip (>= 1.2.2, < 2.0.0)
104+
rubyzip (>= 1.3.0, < 2.0.0)
100105
security (= 0.1.3)
101106
simctl (~> 1.6.3)
102107
slack-notifier (>= 2.0.0, < 3.0.0)
@@ -105,13 +110,13 @@ GEM
105110
tty-screen (>= 0.6.3, < 1.0.0)
106111
tty-spinner (>= 0.8.0, < 1.0.0)
107112
word_wrap (~> 1.0.0)
108-
xcodeproj (>= 1.8.1, < 2.0.0)
113+
xcodeproj (>= 1.13.0, < 2.0.0)
109114
xcpretty (~> 0.3.0)
110115
xcpretty-travis-formatter (>= 0.0.3)
111116
fastlane-plugin-patch (0.5.0)
112117
pattern_patch (>= 0.5.1)
113-
fastlane-plugin-yarn (1.1)
114-
ffi (1.11.1)
118+
fastlane-plugin-yarn (1.2)
119+
ffi (1.12.2)
115120
fourflusher (2.3.1)
116121
fuzzy_match (2.0.4)
117122
gh (0.14.0)
@@ -122,48 +127,50 @@ GEM
122127
net-http-persistent (>= 2.7)
123128
net-http-pipeline
124129
gh_inspector (1.1.3)
125-
google-api-client (0.23.9)
130+
google-api-client (0.36.4)
126131
addressable (~> 2.5, >= 2.5.1)
127-
googleauth (>= 0.5, < 0.7.0)
132+
googleauth (~> 0.9)
128133
httpclient (>= 2.8.1, < 3.0)
129-
mime-types (~> 3.0)
134+
mini_mime (~> 1.0)
130135
representable (~> 3.0)
131136
retriable (>= 2.0, < 4.0)
132-
signet (~> 0.9)
133-
google-cloud-core (1.3.0)
137+
signet (~> 0.12)
138+
google-cloud-core (1.5.0)
134139
google-cloud-env (~> 1.0)
135-
google-cloud-env (1.2.0)
140+
google-cloud-errors (~> 1.0)
141+
google-cloud-env (1.3.0)
136142
faraday (~> 0.11)
137-
google-cloud-storage (1.16.0)
143+
google-cloud-errors (1.0.0)
144+
google-cloud-storage (1.25.1)
145+
addressable (~> 2.5)
138146
digest-crc (~> 0.4)
139-
google-api-client (~> 0.23)
147+
google-api-client (~> 0.33)
140148
google-cloud-core (~> 1.2)
141-
googleauth (>= 0.6.2, < 0.10.0)
142-
googleauth (0.6.7)
143-
faraday (~> 0.12)
149+
googleauth (~> 0.9)
150+
mini_mime (~> 1.0)
151+
googleauth (0.11.0)
152+
faraday (>= 0.17.3, < 2.0)
144153
jwt (>= 1.4, < 3.0)
145154
memoist (~> 0.16)
146155
multi_json (~> 1.11)
147156
os (>= 0.9, < 2.0)
148-
signet (~> 0.7)
157+
signet (~> 0.12)
149158
highline (1.7.10)
150159
http-cookie (1.0.3)
151160
domain_name (~> 0.5)
152161
httpclient (2.8.3)
153162
i18n (0.9.5)
154163
concurrent-ruby (~> 1.0)
155-
json (2.2.0)
164+
json (2.3.0)
156165
jwt (2.1.0)
157166
launchy (2.4.3)
158167
addressable (~> 2.3)
159-
memoist (0.16.0)
160-
mime-types (3.2.2)
161-
mime-types-data (~> 3.2015)
162-
mime-types-data (3.2019.0331)
163-
mini_magick (4.9.5)
164-
minitest (5.11.3)
168+
memoist (0.16.2)
169+
mini_magick (4.10.1)
170+
mini_mime (1.0.2)
171+
minitest (5.14.0)
165172
molinillo (0.6.6)
166-
multi_json (1.13.1)
173+
multi_json (1.14.1)
167174
multi_xml (0.6.0)
168175
multipart-post (2.0.0)
169176
nanaimo (0.2.6)
@@ -174,8 +181,8 @@ GEM
174181
net-http-pipeline (1.0.1)
175182
netrc (0.11.0)
176183
os (1.0.1)
177-
pattern_patch (0.5.5)
178-
activesupport (~> 4.2)
184+
pattern_patch (1.0.0)
185+
activesupport (>= 4.0.2, < 6)
179186
plist (3.5.0)
180187
public_suffix (2.0.5)
181188
pusher-client (0.6.2)
@@ -188,14 +195,14 @@ GEM
188195
retriable (3.1.2)
189196
rouge (2.0.7)
190197
ruby-macho (1.4.0)
191-
rubyzip (1.2.3)
198+
rubyzip (1.3.0)
192199
security (0.1.3)
193-
signet (0.11.0)
200+
signet (0.13.0)
194201
addressable (~> 2.3)
195-
faraday (~> 0.9)
202+
faraday (>= 0.17.3, < 2.0)
196203
jwt (>= 1.5, < 3.0)
197204
multi_json (~> 1.10)
198-
simctl (1.6.5)
205+
simctl (1.6.8)
199206
CFPropertyList
200207
naturally
201208
slack-notifier (2.3.2)
@@ -212,22 +219,22 @@ GEM
212219
launchy (~> 2.1)
213220
pusher-client (~> 0.4)
214221
typhoeus (~> 0.6, >= 0.6.8)
215-
tty-cursor (0.7.0)
216-
tty-screen (0.7.0)
217-
tty-spinner (0.9.1)
222+
tty-cursor (0.7.1)
223+
tty-screen (0.7.1)
224+
tty-spinner (0.9.3)
218225
tty-cursor (~> 0.7)
219226
typhoeus (0.8.0)
220227
ethon (>= 0.8.0)
221-
tzinfo (1.2.5)
228+
tzinfo (1.2.6)
222229
thread_safe (~> 0.1)
223230
uber (0.1.0)
224231
unf (0.1.4)
225232
unf_ext
226233
unf_ext (0.0.7.6)
227-
unicode-display_width (1.6.0)
234+
unicode-display_width (1.6.1)
228235
websocket (1.2.8)
229236
word_wrap (1.0.0)
230-
xcodeproj (1.11.0)
237+
xcodeproj (1.15.0)
231238
CFPropertyList (>= 2.3.3, < 4.0)
232239
atomos (~> 0.1.3)
233240
claide (>= 1.0.2, < 2.0)

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ Note that the `react-native-branch` module requires `react-native` >= 0.40, <
6868
4. Install the native Branch SDK using [CocoaPods](./docs/cocoapods.md) or [Carthage](./docs/carthage.md).
6969
5. Follow the [setup instructions](#setup).
7070

71-
**Note:** This SDK currently does not work in projects using NPM instead of yarn.
72-
See #433. The RN toolchain will use yarn by default. Please use
73-
`yarn add react-native-branch` to add the SDK to your project.
74-
7571
___
7672

7773
### Updating from an earlier version or starting with v3.0.0
@@ -812,12 +808,10 @@ JavaScript finishes loading. To use these methods, two options are available.
812808
- Add a [branch.json](./docs/branch.json.md) file to your project.
813809

814810
This allows you to enable debug mode (to simulate install events on both
815-
Android and iOS), Apple Search Ads attribution and Apple Search Ads debug
816-
mode from a configuration file.
811+
Android and iOS), Apple Search Ads attribution from a configuration file.
817812

818813
- Add native iOS and Android method calls to your project.
819814

820-
+ [Debug mode (simulated install events)](./docs/setDebug.md)
821815
+ [Apple Search Ads attribution](https://github.com/BranchMetrics/ios-branch-deep-linking#apple-search-ads)
822816

823817
___

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
}

android/src/main/java/io/branch/rnbranch/RNBranchModule.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,6 @@ public Map<String, Object> getConstants() {
245245
constants.put(INIT_SESSION_SUCCESS, RN_INIT_SESSION_SUCCESS_EVENT);
246246
constants.put(INIT_SESSION_ERROR, RN_INIT_SESSION_ERROR_EVENT);
247247

248-
// Constants for use with userCompletedAction (deprecated)
249-
250-
constants.put(ADD_TO_CART_EVENT, BranchEvent.ADD_TO_CART);
251-
constants.put(ADD_TO_WISHLIST_EVENT, BranchEvent.ADD_TO_WISH_LIST);
252-
constants.put(PURCHASED_EVENT, BranchEvent.PURCHASED);
253-
constants.put(PURCHASE_INITIATED_EVENT, BranchEvent.PURCHASE_STARTED);
254-
constants.put(REGISTER_VIEW_EVENT, BranchEvent.VIEW);
255-
constants.put(SHARE_COMPLETED_EVENT, BranchEvent.SHARE_COMPLETED);
256-
constants.put(SHARE_INITIATED_EVENT, BranchEvent.SHARE_STARTED);
257-
258248
// constants for use with BranchEvent
259249

260250
// Commerce events

docs/branch.json.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ version 3.x of react-native-branch, using [RNBranchModule.getAutoInstance()](../
9696

9797
|key|description|type|
9898
|---|---|---|
99-
|appleSearchAdsDebugMode|If true, `setAppleSearchAdsDebugMode` will be called on the iOS Branch instance. Ignored on Android.|Boolean|
10099
|branchKey|The Branch key to use. Overrides liveKey, testKey and useTestInstance.|String|
101100
|liveKey|The live Branch key to use if useTestInstance is false. Ignored if useTestInstance is true or branchKey is present.|String|
102101
|debugMode|If true, `setDebug` will be called in the native SDK, enabling testing of install events.|Boolean|
@@ -114,7 +113,6 @@ See [branch.example.json](https://github.com/BranchMetrics/react-native-branch-d
114113
"liveKey": "key_live_xxxx",
115114
"testKey": "key_test_yyyy",
116115
"useTestInstance": true,
117-
"delayInitToCheckForSearchAds": true,
118-
"appleSearchAdsDebugMode": true
116+
"delayInitToCheckForSearchAds": true
119117
}
120118
```

docs/carthage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installation using Carthage
22

3-
Carthage requires version 3.0.1 of react-native-branch.
3+
Carthage requires version 3.x of react-native-branch.
44

55
Add react-native-branch to your project:
66

@@ -12,7 +12,7 @@ react-native link react-native-branch
1212
If you already have a Cartfile, add this to your Cartfile:
1313

1414
```
15-
github "BranchMetrics/ios-branch-deep-linking" "0.27.0"
15+
github "BranchMetrics/ios-branch-deep-linking" "0.31.3"
1616
```
1717

1818
Now run `carthage build`.

examples/webview_example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ DEPENDENCIES:
8484
- yoga (from `../node_modules/react-native/ReactCommon/yoga`)
8585

8686
SPEC REPOS:
87-
https://github.com/cocoapods/specs.git:
87+
trunk:
8888
- boost-for-react-native
8989
- Branch
9090
- DoubleConversion
@@ -121,4 +121,4 @@ SPEC CHECKSUMS:
121121

122122
PODFILE CHECKSUM: dc80f3ddb20f97698e6bb83eb449978b5fb673ec
123123

124-
COCOAPODS: 1.7.5
124+
COCOAPODS: 1.8.4

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

0 commit comments

Comments
 (0)