Skip to content

Commit fd0bfae

Browse files
committed
Release 3.13.2 Updates
1 parent eb4ce94 commit fd0bfae

File tree

14 files changed

+46
-14
lines changed

14 files changed

+46
-14
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.1"
3+
s.version = "3.13.2"
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.1;
2019+
MARKETING_VERSION = 3.13.2;
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.1;
2054+
MARKETING_VERSION = 3.13.2;
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.1;
2260+
MARKETING_VERSION = 3.13.2;
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.1;
2299+
MARKETING_VERSION = 3.13.2;
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.1;
2336+
MARKETING_VERSION = 3.13.2;
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.1;
2371+
MARKETING_VERSION = 3.13.2;
23722372
OTHER_LDFLAGS = (
23732373
"-weak_framework",
23742374
LinkPresentation,

ChangeLog.md

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

3+
v.3.13.2
4+
— Suppressed deprecated StoreKit API warnings. These APIs will be replaced with StoreKit 2 APIs in upcoming releases.
5+
— Added defensive fix to improve reliability of NSInvocation calls.
6+
— Added some additional debug logging API.
7+
38
v.3.13.1
49
- SDK Request Queue will not cache request objects failed with Https Response Codes - 1xx, 2xx, 3xx and 4xx.
510
- Fixed bug - SDK will send odm_info if Consumer Protection Attribution Level is not set or is set to Full.

SDKIntegrationTestApps/iOSReleaseTest-SPM/iOSReleaseTest.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402
CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements;
403403
CODE_SIGN_STYLE = Automatic;
404404
CURRENT_PROJECT_VERSION = 1;
405-
DEVELOPMENT_TEAM = 5YP4T32B58;
405+
DEVELOPMENT_TEAM = R63EM248DP;
406406
GENERATE_INFOPLIST_FILE = YES;
407407
INFOPLIST_FILE = iOSReleaseTest/Info.plist;
408408
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -431,7 +431,7 @@
431431
CODE_SIGN_ENTITLEMENTS = iOSReleaseTest/iOSReleaseTest.entitlements;
432432
CODE_SIGN_STYLE = Automatic;
433433
CURRENT_PROJECT_VERSION = 1;
434-
DEVELOPMENT_TEAM = YKPTD52Z6X;
434+
DEVELOPMENT_TEAM = R63EM248DP;
435435
GENERATE_INFOPLIST_FILE = YES;
436436
INFOPLIST_FILE = iOSReleaseTest/Info.plist;
437437
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;

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.1";
11+
NSString * const BNC_SDK_VERSION = @"3.13.2";
1212
NSString * const BNC_LINK_URL = @"https://bnc.lt";
1313
NSString * const BNC_CDN_URL = @"https://cdn.branch.io";
1414

Sources/BranchSDK/BNCODMInfoCollector.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ typedef NS_ENUM(NSInteger, ODCInteractionType) {
138138
};
139139

140140
[invocation setArgument:&_odmFetchCompletion atIndex:3];
141+
[invocation retainArguments];
141142
[invocation invoke];
142143
[[BranchLogger shared] logDebug:[NSString stringWithFormat:@"fetchInfo:completion: invoked successfully."] error:nil];
143144

Sources/BranchSDK/Branch.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ - (id)initWithInterface:(BNCServerInterface *)interface
279279
}
280280

281281
static Class bnc_networkServiceClass = NULL;
282+
static callbackForTracingRequests bnc_tracingCallback = nil;
282283

283284
+ (void)setNetworkServiceClass:(Class)networkServiceClass {
284285
@synchronized ([Branch class]) {
@@ -706,6 +707,10 @@ - (void)initSessionWithLaunchOptions:(NSDictionary *)options automaticallyDispla
706707
[self initSessionWithLaunchOptions:options isReferrable:isReferrable explicitlyRequestedReferrable:YES automaticallyDisplayController:automaticallyDisplayController registerDeepLinkHandler:callback];
707708
}
708709

710+
+ (void) setCallbackForTracingRequests: (callbackForTracingRequests) callback {
711+
bnc_tracingCallback = callback;
712+
}
713+
709714
#pragma mark - Actual Init Session
710715

711716
- (void)initSessionWithLaunchOptions:(NSDictionary *)options isReferrable:(BOOL)isReferrable explicitlyRequestedReferrable:(BOOL)explicitlyRequestedReferrable automaticallyDisplayController:(BOOL)automaticallyDisplayController registerDeepLinkHandlerUsingBranchUniversalObject:(callbackWithBranchUniversalObject)callback {
@@ -2170,6 +2175,7 @@ - (void)initializeSessionAndCallCallback:(BOOL)callCallback sceneIdentifier:(NSS
21702175
}
21712176
req.callback = initSessionCallback;
21722177
req.urlString = urlString;
2178+
req.traceCallback = bnc_tracingCallback;
21732179

21742180
[self.requestQueue insert:req at:0];
21752181

Sources/BranchSDK/BranchInstallRequest.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ - (void)makeRequest:(BNCServerInterface *)serverInterface key:(NSString *)key ca
2222
BNCRequestFactory *factory = [[BNCRequestFactory alloc] initWithBranchKey:key UUID:self.requestUUID TimeStamp:self.requestCreationTimeStamp];
2323
NSDictionary *params = [factory dataForInstallWithURLString:self.urlString];
2424

25-
[serverInterface postRequest:params url:[[BNCServerAPI sharedInstance] installServiceURL] key:key callback:callback];
25+
self.requestParams = [params copy];
26+
self.requestServiceURL = [[BNCServerAPI sharedInstance] installServiceURL];
27+
28+
[serverInterface postRequest:params url:self.requestServiceURL key:key callback:callback];
2629
}
2730

2831
- (NSString *)getActionName {

Sources/BranchSDK/BranchOpenRequest.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,20 @@ - (id)initWithCallback:(callbackWithStatus)callback isInstall:(BOOL)isInstall {
5050
- (void)makeRequest:(BNCServerInterface *)serverInterface key:(NSString *)key callback:(BNCServerCallback)callback {
5151
BNCRequestFactory *factory = [[BNCRequestFactory alloc] initWithBranchKey:key UUID:self.requestUUID TimeStamp:self.requestCreationTimeStamp];
5252
NSDictionary *params = [factory dataForOpenWithURLString:self.urlString];
53-
53+
self.requestParams = [params copy];
54+
self.requestServiceURL = [[BNCServerAPI sharedInstance] openServiceURL];
5455
[serverInterface postRequest:params
55-
url:[[BNCServerAPI sharedInstance] openServiceURL]
56+
url: self.requestServiceURL
5657
key:key
5758
callback:callback];
5859
}
5960

6061
- (void)processResponse:(BNCServerResponse *)response error:(NSError *)error {
62+
63+
if (self.traceCallback) {
64+
self.traceCallback(self.urlString, self.requestParams, response.data, error, self.requestServiceURL);
65+
}
66+
6167
BNCPreferenceHelper *preferenceHelper = [BNCPreferenceHelper sharedInstance];
6268
if (error && preferenceHelper.dropURLOpen) {
6369
// Ignore this response from the server. Dummy up a response:

Sources/BranchSDK/Private/BranchOpenRequest.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
@property (nonatomic, copy, readwrite) NSString *urlString;
1616
@property (assign, nonatomic) BOOL isFromArchivedQueue;
1717
@property (nonatomic, copy) callbackWithStatus callback;
18+
@property (nonatomic, copy) callbackForTracingRequests traceCallback;
19+
@property (strong, nonatomic) NSDictionary *requestParams;
20+
@property (nonatomic, copy, readwrite) NSString *requestServiceURL;
1821

1922
+ (void) waitForOpenResponseLock;
2023
+ (void) releaseOpenResponseLock;

0 commit comments

Comments
 (0)