Skip to content

Commit eb4ce94

Browse files
committed
Release 3.13.1 Updates
1 parent ce2309d commit eb4ce94

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

BranchSDK.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 = "BranchSDK"
3-
s.version = "3.13.0"
3+
s.version = "3.13.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?

BranchSDK.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@
20162016
"@executable_path/Frameworks",
20172017
"@loader_path/Frameworks",
20182018
);
2019-
MARKETING_VERSION = 3.13.0;
2019+
MARKETING_VERSION = 3.13.1;
20202020
OTHER_LDFLAGS = (
20212021
"-weak_framework",
20222022
LinkPresentation,
@@ -2051,7 +2051,7 @@
20512051
"@executable_path/Frameworks",
20522052
"@loader_path/Frameworks",
20532053
);
2054-
MARKETING_VERSION = 3.13.0;
2054+
MARKETING_VERSION = 3.13.1;
20552055
OTHER_LDFLAGS = (
20562056
"-weak_framework",
20572057
LinkPresentation,
@@ -2257,7 +2257,7 @@
22572257
"@loader_path/Frameworks",
22582258
);
22592259
MACH_O_TYPE = staticlib;
2260-
MARKETING_VERSION = 3.13.0;
2260+
MARKETING_VERSION = 3.13.1;
22612261
OTHER_LDFLAGS = (
22622262
"-weak_framework",
22632263
LinkPresentation,
@@ -2296,7 +2296,7 @@
22962296
"@loader_path/Frameworks",
22972297
);
22982298
MACH_O_TYPE = staticlib;
2299-
MARKETING_VERSION = 3.13.0;
2299+
MARKETING_VERSION = 3.13.1;
23002300
OTHER_LDFLAGS = (
23012301
"-weak_framework",
23022302
LinkPresentation,
@@ -2333,7 +2333,7 @@
23332333
"@executable_path/Frameworks",
23342334
"@loader_path/Frameworks",
23352335
);
2336-
MARKETING_VERSION = 3.13.0;
2336+
MARKETING_VERSION = 3.13.1;
23372337
OTHER_LDFLAGS = (
23382338
"-weak_framework",
23392339
LinkPresentation,
@@ -2368,7 +2368,7 @@
23682368
"@executable_path/Frameworks",
23692369
"@loader_path/Frameworks",
23702370
);
2371-
MARKETING_VERSION = 3.13.0;
2371+
MARKETING_VERSION = 3.13.1;
23722372
OTHER_LDFLAGS = (
23732373
"-weak_framework",
23742374
LinkPresentation,

ChangeLog.md

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

3+
v.3.13.1
4+
- SDK Request Queue will not cache request objects failed with Https Response Codes - 1xx, 2xx, 3xx and 4xx.
5+
- Fixed bug - SDK will send odm_info if Consumer Protection Attribution Level is not set or is set to Full.
6+
37
v.3.13.0
48
- Added API 'setAnonID' to set custom Meta Anon ID for the current user.
59
- Added API 'setSDKWaitTimeForThirdPartyAPIs' to set time for which SDK will wait for fetching data from third-party APIs, such as ODM info and Apple Attribution Token.

Sources/BranchSDK/BNCConfig.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "BNCConfig.h"
1010

11-
NSString * const BNC_SDK_VERSION = @"3.13.0";
11+
NSString * const BNC_SDK_VERSION = @"3.13.1";
1212
NSString * const BNC_LINK_URL = @"https://bnc.lt";
1313
NSString * const BNC_CDN_URL = @"https://cdn.branch.io";
1414

Sources/BranchSDK/BNCRequestFactory.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ - (void) loadDataFromThirdPartyAPIs {
7979
dispatch_group_t apiGroup = dispatch_group_create();
8080
dispatch_queue_t concurrentQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
8181

82-
if ([[self.preferenceHelper attributionLevel] isEqualToString:BranchAttributionLevelFull])
82+
if (![self.preferenceHelper attributionLevelInitialized] || [[self.preferenceHelper attributionLevel] isEqualToString:BranchAttributionLevelFull])
8383
{
8484
dispatch_group_enter(apiGroup);
8585
dispatch_async(concurrentQueue, ^{
@@ -385,7 +385,7 @@ - (void)addAppleAttributionTokenToJSON:(NSMutableDictionary *)json {
385385

386386
- (void)addODMInfoToJSON:(NSMutableDictionary *)json {
387387
#if !TARGET_OS_TV
388-
if ([[self.preferenceHelper attributionLevel] isEqualToString:BranchAttributionLevelFull]) {
388+
if (![self.preferenceHelper attributionLevelInitialized] || [[self.preferenceHelper attributionLevel] isEqualToString:BranchAttributionLevelFull]) {
389389
if (self.odmInfo) {
390390
[self safeSetValue:self.odmInfo forKey:BRANCH_REQUEST_KEY_ODM_INFO onDict:json];
391391
NSNumber* odmInitDateInNumberFormat = BNCWireFormatFromDate(self.preferenceHelper.odmInfoInitDate);

Sources/BranchSDK/Branch.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,19 +1899,18 @@ static inline void BNCPerformBlockOnMainThreadSync(dispatch_block_t block) {
18991899
}
19001900
}
19011901

1902-
//static inline void BNCPerformBlockOnMainThreadAsync(dispatch_block_t block) {
1903-
// dispatch_async(dispatch_get_main_queue(), block);
1904-
//}
19051902

19061903
- (void) processRequest:(BNCServerRequest*)req
19071904
response:(BNCServerResponse*)response
19081905
error:(NSError*)error {
19091906

19101907
// If the request was successful, or was a bad user request, continue processing.
1908+
// Also skipping retry for 1xx(Informational), 2xx(Success), 3xx(Redirectional Message) and 4xx(Client)error codes.
19111909
if (!error ||
19121910
error.code == BNCTrackingDisabledError ||
19131911
error.code == BNCBadRequestError ||
1914-
error.code == BNCDuplicateResourceError) {
1912+
error.code == BNCDuplicateResourceError ||
1913+
((100 <= error.code) && (error.code <= 499))) {
19151914

19161915
BNCPerformBlockOnMainThreadSync(^{
19171916
[req processResponse:response error:error];

scripts/version.sh

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

33-
version=3.13.0
33+
version=3.13.1
3434
prev_version="$version"
3535

3636
if (( $# == 0 )); then

0 commit comments

Comments
 (0)