File tree Expand file tree Collapse file tree 7 files changed +18
-15
lines changed
Expand file tree Collapse file tree 7 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 11Pod ::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?
Original file line number Diff line number Diff line change 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,
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,
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,
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,
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,
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,
Original file line number Diff line number Diff line change 11Branch 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+
37v.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.
Original file line number Diff line number Diff line change 88
99#include " BNCConfig.h"
1010
11- NSString * const BNC_SDK_VERSION = @" 3.13.0 " ;
11+ NSString * const BNC_SDK_VERSION = @" 3.13.1 " ;
1212NSString * const BNC_LINK_URL = @" https://bnc.lt" ;
1313NSString * const BNC_CDN_URL = @" https://cdn.branch.io" ;
1414
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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];
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ Options:
3030USAGE
3131}
3232
33- version=3.13.0
33+ version=3.13.1
3434prev_version=" $version "
3535
3636if (( $# == 0 )) ; then
You can’t perform that action at this time.
0 commit comments