Skip to content

Commit eea020f

Browse files
committed
CORE-2463 patch to mitigate a server issue
1 parent 83fead3 commit eea020f

File tree

8 files changed

+31
-13
lines changed

8 files changed

+31
-13
lines changed

Branch-SDK/BNCConfig.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
NSString * const BNC_API_BASE_URL = @"https://api2.branch.io";
1212
NSString * const BNC_API_VERSION = @"v1";
1313
NSString * const BNC_LINK_URL = @"https://bnc.lt";
14-
NSString * const BNC_SDK_VERSION = @"1.40.0";
14+
NSString * const BNC_SDK_VERSION = @"1.40.1";

Branch-SDK/BranchOpenRequest.m

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ - (void)processResponse:(BNCServerResponse *)response error:(NSError *)error {
163163
}
164164

165165
preferenceHelper.randomizedDeviceToken = data[BRANCH_RESPONSE_KEY_RANDOMIZED_DEVICE_TOKEN];
166+
if (!preferenceHelper.randomizedDeviceToken) {
167+
// fallback to deprecated name. Fingerprinting was removed long ago, hence the name change.
168+
preferenceHelper.randomizedDeviceToken = data[@"device_fingerprint_id"];
169+
}
170+
166171
preferenceHelper.userUrl = data[BRANCH_RESPONSE_KEY_USER_URL];
167172
preferenceHelper.userIdentity = userIdentity;
168173
preferenceHelper.sessionID = data[BRANCH_RESPONSE_KEY_SESSION_ID];
@@ -253,9 +258,17 @@ - (void)processResponse:(BNCServerResponse *)response error:(NSError *)error {
253258
preferenceHelper.referringURL = referringURL;
254259
preferenceHelper.dropURLOpen = NO;
255260

261+
256262
NSString *string = BNCStringFromWireFormat(data[BRANCH_RESPONSE_KEY_RANDOMIZED_BUNDLE_TOKEN]);
257-
if (string) preferenceHelper.randomizedBundleToken = string;
258-
263+
if (!string) {
264+
// fallback to deprecated name. The old name was easily confused with the setIdentity, hence the name change.
265+
string = BNCStringFromWireFormat(data[@"identity_id"]);
266+
}
267+
268+
if (string) {
269+
preferenceHelper.randomizedBundleToken = string;
270+
}
271+
259272
[BranchOpenRequest releaseOpenResponseLock];
260273

261274
BranchContentDiscoveryManifest *cdManifest = [BranchContentDiscoveryManifest getInstance];

Branch.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Branch"
3-
s.version = "1.40.0"
3+
s.version = "1.40.1"
44
s.summary = "Create an HTTP URL for any piece of content in your app"
55
s.description = <<-DESC
66
- Want the highest possible conversions on your sharing feature?

ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Branch iOS SDK Change Log
22

3+
v.1.40.1
4+
- CORE-2463 workaround server side issue with inconsisent response payload.
5+
36
v.1.40.0
47

58
- CORE-1589 Add support for LPLinkMetadata on share sheets.
@@ -23,6 +26,8 @@ See https://developer.apple.com/documentation/linkpresentation/lplinkmetadata?la
2326
2427
- CORE-1258 Rename device_fingerprint_id and identity_id to better reflect function. Fingerprinting was removed long ago.
2528
29+
- CORE-2206 Remove credit related methods. The feature has been deprecated and the supporting services will be decommissioned.
30+
2631
v1.39.4
2732
- CORE-2088 Add support for deferred deeplinks via pasteboard. This is not enabled by default.
2833
- CORE-1950 Record install referrer

carthage-files/BranchSDK.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@
16621662
INFOPLIST_FILE = "Branch-tvOS/Info.plist";
16631663
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
16641664
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1665-
MARKETING_VERSION = 1.40.0;
1665+
MARKETING_VERSION = 1.40.1;
16661666
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
16671667
MTL_FAST_MATH = YES;
16681668
ONLY_ACTIVE_ARCH = YES;
@@ -1698,7 +1698,7 @@
16981698
INFOPLIST_FILE = "Branch-tvOS/Info.plist";
16991699
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
17001700
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1701-
MARKETING_VERSION = 1.40.0;
1701+
MARKETING_VERSION = 1.40.1;
17021702
MTL_FAST_MATH = YES;
17031703
ONLY_ACTIVE_ARCH = NO;
17041704
PRODUCT_BUNDLE_IDENTIFIER = io.branch.Branch;
@@ -1730,7 +1730,7 @@
17301730
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
17311731
MACH_O_TYPE = staticlib;
17321732
MACOSX_DEPLOYMENT_TARGET = 10.15;
1733-
MARKETING_VERSION = 1.40.0;
1733+
MARKETING_VERSION = 1.40.1;
17341734
ONLY_ACTIVE_ARCH = YES;
17351735
OTHER_LDFLAGS = "-ObjC";
17361736
PRODUCT_BUNDLE_IDENTIFIER = io.branch.Branch;
@@ -1759,7 +1759,7 @@
17591759
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
17601760
MACH_O_TYPE = staticlib;
17611761
MACOSX_DEPLOYMENT_TARGET = 10.15;
1762-
MARKETING_VERSION = 1.40.0;
1762+
MARKETING_VERSION = 1.40.1;
17631763
ONLY_ACTIVE_ARCH = NO;
17641764
OTHER_LDFLAGS = "-ObjC";
17651765
PRODUCT_BUNDLE_IDENTIFIER = io.branch.Branch;
@@ -1914,7 +1914,7 @@
19141914
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
19151915
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
19161916
MACOSX_DEPLOYMENT_TARGET = 10.15;
1917-
MARKETING_VERSION = 1.40.0;
1917+
MARKETING_VERSION = 1.40.1;
19181918
ONLY_ACTIVE_ARCH = YES;
19191919
OTHER_LDFLAGS = "-ObjC";
19201920
PRODUCT_BUNDLE_IDENTIFIER = io.branch.Branch;
@@ -1941,7 +1941,7 @@
19411941
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
19421942
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
19431943
MACOSX_DEPLOYMENT_TARGET = 10.15;
1944-
MARKETING_VERSION = 1.40.0;
1944+
MARKETING_VERSION = 1.40.1;
19451945
ONLY_ACTIVE_ARCH = NO;
19461946
OTHER_LDFLAGS = "-ObjC";
19471947
PRODUCT_BUNDLE_IDENTIFIER = io.branch.Branch;

carthage-files/checksum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#checksum for Branch.zip on Github
2-
65d188b0f34af7e27fe6e8bf039fa43ccf06e257 Branch.zip
2+
933cb1aaf5094d1a578d8f4c8b014c1c4742c02b Branch.zip

carthage-files/checksum_static

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#checksum for Branch-static.zip on Github
2-
0b453386520449985bf1c6f464c96902b8721cfa Branch_static.zip
2+
8f83c0b51b7c6a64265f86543cd8ffa2fffba7bd Branch_static.zip

scripts/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Options:
3131
USAGE
3232
}
3333

34-
version=1.40.0
34+
version=1.40.1
3535

3636
if (( $# == 0 )); then
3737
echo $version

0 commit comments

Comments
 (0)