Skip to content

Commit 5db19c8

Browse files
authored
Merge pull request #417 from BranchMetrics/update-dependencies
Update dependencies
2 parents 8820aaf + c2ed8c4 commit 5db19c8

31 files changed

+284
-256
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,7 @@
328328
$match_duration: 2000,
329329
custom_string: 'data',
330330
custom_integer: Date.now(),
331-
custom_boolean: true,
332-
custom_array: [1, 2, 3, 4, 5],
333-
custom_object: { 'random': 'dictionary' }
331+
custom_boolean: true
334332
}
335333

336334
branchUniversalObj.generateShortUrl(analytics, properties).then(function (res) {
@@ -363,9 +361,7 @@
363361
$desktop_url: 'http://www.example.com/desktop',
364362
custom_string: 'data',
365363
custom_integer: Date.now(),
366-
custom_boolean: true,
367-
custom_array: [1, 2, 3, 4, 5],
368-
custom_object: { 'random': 'dictionary' }
364+
custom_boolean: true
369365
}
370366

371367
var message = 'Check out this link'
@@ -1261,6 +1257,6 @@
12611257
Error: Error code 1 for command: /gradlew with args: cdvBuildDebug,-b,/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
12621258
```
12631259
1264-
- Add `<preference name="android-minSdkVersion" value="15" />` to your `config.xml`
1260+
- Add `<preference name="android-minSdkVersion" value="16" />` to your `config.xml`
12651261
12661262

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "branch-cordova-sdk",
33
"description": "Branch Metrics Cordova SDK",
44
"main": "src/branch.js",
5-
"version": "2.6.21",
5+
"version": "2.6.22",
66
"homepage": "https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking",
77
"repository": {
88
"type": "git",

plugin.template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SOFTWARE.
2424
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
2525
xmlns:android="http://schemas.android.com/apk/res/android"
2626
id="branch-cordova-sdk"
27-
version="2.6.21">
27+
version="2.6.22">
2828

2929
<!-- DO NOT EDIT THIS FILE. MAKE ALL CHANGES TO plugin.template.xml INSTEAD -->
3030

plugin.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ SOFTWARE.
2424
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
2525
xmlns:android="http://schemas.android.com/apk/res/android"
2626
id="branch-cordova-sdk"
27-
version="2.6.21">
27+
version="2.6.22">
2828

2929
<!-- DO NOT EDIT THIS FILE. MAKE ALL CHANGES TO plugin.template.xml INSTEAD -->
3030

@@ -166,6 +166,8 @@ SOFTWARE.
166166
<source-file src="src/ios/dependencies/Branch-SDK/NSMutableDictionary+Branch.m" />
167167
<header-file src="src/ios/dependencies/Branch-SDK/NSString+Branch.h" />
168168
<source-file src="src/ios/dependencies/Branch-SDK/NSString+Branch.m" />
169+
<header-file src="src/ios/dependencies/Branch-SDK/UIViewController+Branch.h" />
170+
<source-file src="src/ios/dependencies/Branch-SDK/UIViewController+Branch.m" />
169171

170172
<header-file src="src/ios/dependencies/Branch-SDK/Networking/BNCNetworkService.h" />
171173
<source-file src="src/ios/dependencies/Branch-SDK/Networking/BNCNetworkService.m" />

src/android/dependencies/Branch.jar

1.07 KB
Binary file not shown.

src/android/io/branch/BranchSDK.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ protected void pluginInitialize() {
6262

6363
this.activity = this.cordova.getActivity();
6464

65+
Branch.disableInstantDeepLinking(true);
6566
Branch.getAutoInstance(this.activity.getApplicationContext());
6667

6768
}

src/ios/dependencies/Branch-SDK/BNCAvailability.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,3 @@ typedef NSString * UIApplicationOpenURLOptionsKey;
2323
#ifndef NS_STRING_ENUM
2424
#define NS_STRING_ENUM
2525
#endif
26-
27-
@interface NSLocale (BranchAvailability)
28-
- (NSString*) countryCode;
29-
- (NSString*) languageCode;
30-
@end

src/ios/dependencies/Branch-SDK/BNCCommerceEvent.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ - (void)makeRequest:(BNCServerInterface *)serverInterface
354354
params[@"metadata"] = self.metadata;
355355
if (self.commerceDictionary)
356356
params[@"commerce_data"] = self.commerceDictionary;
357+
if (preferenceHelper.limitFacebookTracking)
358+
params[@"limit_facebook_tracking"] = CFBridgingRelease(kCFBooleanTrue);
357359

358360
NSString *URL = [preferenceHelper getAPIURL:BRANCH_REQUEST_ENDPOINT_USER_COMPLETED_ACTION];
359361
[serverInterface postRequest:params

src/ios/dependencies/Branch-SDK/BNCConfig.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
BOOL const BNC_API_PINNED = YES;
1313
NSString * const BNC_API_VERSION = @"v1";
1414
NSString * const BNC_LINK_URL = @"https://bnc.lt";
15-
NSString * const BNC_SDK_VERSION = @"0.21.13";
15+
NSString * const BNC_SDK_VERSION = @"0.22.4";

src/ios/dependencies/Branch-SDK/BNCDeviceInfo.m

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
#import <arpa/inet.h>
2626
#import <netinet/in.h>
2727

28+
// Forward declare this for older versions of iOS
29+
@interface NSLocale (BranchAvailability)
30+
- (NSString*) countryCode;
31+
- (NSString*) languageCode;
32+
@end
33+
2834
#pragma mark BRNNetworkInfo
2935

3036
typedef NS_ENUM(NSInteger, BNCNetworkAddressType) {
@@ -436,7 +442,7 @@ - (NSDictionary*) v2dictionary {
436442
addNumber(screenWidth, screen_width);
437443
addBoolean(unidentifiedDevice, unidentified_device);
438444
addString(localIPAddress, local_ip);
439-
445+
440446
#include "BNCFieldDefines.h"
441447

442448
if (!self.isAdTrackingEnabled)
@@ -451,6 +457,9 @@ - (NSDictionary*) v2dictionary {
451457
s = preferences.deviceFingerprintID;
452458
if (s.length) dictionary[@"device_fingerprint_id"] = s;
453459

460+
if (preferences.limitFacebookTracking)
461+
dictionary[@"limit_facebook_tracking"] = CFBridgingRelease(kCFBooleanTrue);
462+
454463
dictionary[@"sdk"] = @"ios";
455464
dictionary[@"sdk_version"] = BNC_SDK_VERSION;
456465

0 commit comments

Comments
 (0)