Skip to content

Commit 2a430f2

Browse files
committed
SDK-1570 prep 1.43.2 release
1 parent 6f3169e commit 2a430f2

File tree

16 files changed

+67
-43
lines changed

16 files changed

+67
-43
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.43.1";
14+
NSString * const BNC_SDK_VERSION = @"1.43.2";

Branch-SDK/BNCNetworkService.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,7 @@ - (NSURLSession*) session {
124124
self.sessionQueue = [NSOperationQueue new];
125125
self.sessionQueue.name = @"io.branch.sdk.network.queue";
126126
self.sessionQueue.maxConcurrentOperationCount = self.maximumConcurrentOperations;
127-
if ([self.sessionQueue respondsToSelector:@selector(setQualityOfService:)]) {
128-
// qualityOfService is iOS 8 and above.
129-
self.sessionQueue.qualityOfService = NSQualityOfServiceUserInteractive;
130-
}
127+
self.sessionQueue.qualityOfService = NSQualityOfServiceBackground;
131128

132129
_session =
133130
[NSURLSession sessionWithConfiguration:configuration

Branch-SDK/BNCPreferenceHelper.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,6 @@ - (void) clearTrackingInformation {
709709
// Don't clear these
710710
self.randomizedDeviceToken = nil;
711711
self.randomizedBundleToken = nil;
712-
self.userIdentity = nil;
713712
*/
714713
self.sessionID = nil;
715714
self.linkClickIdentifier = nil;
@@ -726,6 +725,7 @@ - (void) clearTrackingInformation {
726725
self.previousAppBuildDate = nil;
727726
self.requestMetadataDictionary = nil;
728727
self.lastStrongMatchDate = nil;
728+
self.userIdentity = nil;
729729
}
730730
}
731731

Branch-SDK/BNCServerInterface.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,11 @@ - (NSMutableDictionary *)prepareParamDict:(NSDictionary *)params
472472
}
473473
}
474474
}
475+
476+
if ([self.requestEndpoint containsString:@"/v1/open"]) {
477+
[fullParamDict bnc_safeSetObject:[BNCPreferenceHelper sharedInstance].userIdentity forKey:@"identity"];
478+
}
479+
475480
return fullParamDict;
476481
}
477482

Branch-SDK/BranchPluginSupport.m

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,29 @@ + (BranchPluginSupport *)instance {
2828

2929

3030
- (NSDictionary<NSString *, NSString *> *)deviceDescription {
31-
BNCDeviceInfo *deviceInfo = [BNCDeviceInfo getInstance];
32-
[deviceInfo checkAdvertisingIdentifier];
33-
3431
NSMutableDictionary<NSString *, NSString *> *dictionary = [NSMutableDictionary new];
35-
36-
[dictionary bnc_safeSetObject:deviceInfo.osName forKey:@"os"];
37-
[dictionary bnc_safeSetObject:deviceInfo.osVersion forKey:@"os_version"];
38-
[dictionary bnc_safeSetObject:deviceInfo.environment forKey:@"environment"];
39-
[dictionary bnc_safeSetObject:deviceInfo.vendorId forKey:@"idfv"];
40-
[dictionary bnc_safeSetObject:deviceInfo.advertiserId forKey:@"idfa"];
41-
[dictionary bnc_safeSetObject:deviceInfo.optedInStatus forKey:@"opted_in_status"];
42-
[dictionary bnc_safeSetObject:[BNCPreferenceHelper sharedInstance].userIdentity forKey:@"developer_identity"];
43-
[dictionary bnc_safeSetObject:deviceInfo.country forKey:@"country"];
44-
[dictionary bnc_safeSetObject:deviceInfo.language forKey:@"language"];
45-
[dictionary bnc_safeSetObject:deviceInfo.localIPAddress forKey:@"local_ip"];
46-
[dictionary bnc_safeSetObject:deviceInfo.brandName forKey:@"brand"];
47-
[dictionary bnc_safeSetObject:deviceInfo.applicationVersion forKey:@"app_version"];
48-
[dictionary bnc_safeSetObject:deviceInfo.modelName forKey:@"model"];
49-
[dictionary bnc_safeSetObject:deviceInfo.screenScale.stringValue forKey:@"screen_dpi"];
50-
[dictionary bnc_safeSetObject:deviceInfo.screenHeight.stringValue forKey:@"screen_height"];
51-
[dictionary bnc_safeSetObject:deviceInfo.screenWidth.stringValue forKey:@"screen_width"];
32+
BNCDeviceInfo *deviceInfo = [BNCDeviceInfo getInstance];
5233

34+
@synchronized (deviceInfo) {
35+
[deviceInfo checkAdvertisingIdentifier];
36+
37+
[dictionary bnc_safeSetObject:deviceInfo.osName forKey:@"os"];
38+
[dictionary bnc_safeSetObject:deviceInfo.osVersion forKey:@"os_version"];
39+
[dictionary bnc_safeSetObject:deviceInfo.environment forKey:@"environment"];
40+
[dictionary bnc_safeSetObject:deviceInfo.vendorId forKey:@"idfv"];
41+
[dictionary bnc_safeSetObject:deviceInfo.advertiserId forKey:@"idfa"];
42+
[dictionary bnc_safeSetObject:deviceInfo.optedInStatus forKey:@"opted_in_status"];
43+
[dictionary bnc_safeSetObject:[BNCPreferenceHelper sharedInstance].userIdentity forKey:@"developer_identity"];
44+
[dictionary bnc_safeSetObject:deviceInfo.country forKey:@"country"];
45+
[dictionary bnc_safeSetObject:deviceInfo.language forKey:@"language"];
46+
[dictionary bnc_safeSetObject:deviceInfo.localIPAddress forKey:@"local_ip"];
47+
[dictionary bnc_safeSetObject:deviceInfo.brandName forKey:@"brand"];
48+
[dictionary bnc_safeSetObject:deviceInfo.applicationVersion forKey:@"app_version"];
49+
[dictionary bnc_safeSetObject:deviceInfo.modelName forKey:@"model"];
50+
[dictionary bnc_safeSetObject:deviceInfo.screenScale.stringValue forKey:@"screen_dpi"];
51+
[dictionary bnc_safeSetObject:deviceInfo.screenHeight.stringValue forKey:@"screen_height"];
52+
[dictionary bnc_safeSetObject:deviceInfo.screenWidth.stringValue forKey:@"screen_width"];
53+
}
5354
return dictionary;
5455
}
5556

0 Bytes
Binary file not shown.

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.43.1"
3+
s.version = "1.43.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?

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.1.43.2
4+
- SDK-1625 Fix rare crash when used with Adobe Launch
5+
- Update developer id handling logic
6+
37
v.1.43.1
48
- SDK-1461 Updates to GBRAID handling
59
- Updated podspec to include LinkPresentation.framework

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
## Branch SDK Documentation for iOS
1+
# Branch SDK Documentation for iOS
2+
3+
The Branch iOS SDK for deep linking and attribution.
4+
5+
> ## Branch Sandbox Program
6+
>
7+
> As part of this [sandbox program](https://help.branch.io/developers-hub/docs/branch-sandbox-program), you will be able to partner directly with Branch’s Product and Engineering team for exclusive access to test drive our innovative products before the market and proactively exchange valuable feedback. With your support, we will create the winning measurement and linking solutions of the future together.
8+
>
9+
> **If you would like to join, please reach out to us today at [[email protected]](mailto:[email protected] "mailto:[email protected]") or by filling out this [form](https://branch.link/sandbox?~channel=ios-repo).**
10+
11+
Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
212

313
View [Branch's SDK documentation for iOS](https://help.branch.io/developers-hub/docs/ios-sdk-overview)

SECURITY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
If you discover a potential security issue in this project we ask that you notify Branch Security directly via email to [email protected]
5+
Please do not open GitHub issues or pull requests - this makes the problem immediately visible to everyone, including malicious actors.

0 commit comments

Comments
 (0)