Skip to content

Commit 1aad59a

Browse files
[release] 0.35.1
1 parent d84d1d5 commit 1aad59a

File tree

10 files changed

+37
-25
lines changed

10 files changed

+37
-25
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 = @"0.35.0";
14+
NSString * const BNC_SDK_VERSION = @"0.35.1";

Branch-SDK/BNCServerInterface.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ - (void)genericHTTPRequest:(NSURLRequest *)request
249249
if (![self whiteListContainsEndpoint:endpoint]) {
250250
[[BNCPreferenceHelper preferenceHelper] clearTrackingInformation];
251251
NSError *error = [NSError branchErrorWithCode:BNCTrackingDisabledError];
252-
BNCLogError(@"Network service error: %@.", error);
252+
BNCLogWarning(@"Dropping Request %@: - %@", endpoint, error);
253253
if (callback) {
254254
callback(nil, error);
255255
}

Branch-SDK/Branch.m

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,21 +2041,24 @@ - (void)processNextQueueItem {
20412041

20422042
if (req) {
20432043

2044-
if (![req isKindOfClass:[BranchInstallRequest class]] && !self.preferenceHelper.identityID) {
2045-
BNCLogError(@"User session has not been initialized!");
2046-
BNCPerformBlockOnMainThreadSync(^{
2047-
[req processResponse:nil error:[NSError branchErrorWithCode:BNCInitError]];
2048-
});
2049-
return;
2050-
2051-
} else if (![req isKindOfClass:[BranchOpenRequest class]] &&
2052-
(!self.preferenceHelper.deviceFingerprintID || !self.preferenceHelper.sessionID)) {
2053-
BNCLogError(@"Missing session items!");
2054-
BNCPerformBlockOnMainThreadSync(^{
2055-
[req processResponse:nil error:[NSError branchErrorWithCode:BNCInitError]];
2056-
});
2057-
return;
2044+
// If tracking is disabled, then do not check for install event. It won't exist.
2045+
if (!Branch.trackingDisabled) {
2046+
if (![req isKindOfClass:[BranchInstallRequest class]] && !self.preferenceHelper.identityID) {
2047+
BNCLogError(@"User session has not been initialized!");
2048+
BNCPerformBlockOnMainThreadSync(^{
2049+
[req processResponse:nil error:[NSError branchErrorWithCode:BNCInitError]];
2050+
});
2051+
return;
2052+
2053+
} else if (![req isKindOfClass:[BranchOpenRequest class]] &&
2054+
(!self.preferenceHelper.deviceFingerprintID || !self.preferenceHelper.sessionID)) {
2055+
BNCLogError(@"Missing session items!");
2056+
BNCPerformBlockOnMainThreadSync(^{
2057+
[req processResponse:nil error:[NSError branchErrorWithCode:BNCInitError]];
2058+
});
2059+
return;
20582060

2061+
}
20592062
}
20602063

20612064
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);

Branch-SDK/BranchEvent.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ - (void)processResponse:(BNCServerResponse*)response error:(NSError*)error {
7474
NSDictionary *dictionary = ([response.data isKindOfClass:[NSDictionary class]])
7575
? (NSDictionary*) response.data : nil;
7676

77-
if (dictionary) {
77+
if (dictionary && [dictionary[BRANCH_RESPONSE_KEY_UPDATE_CONVERSION_VALUE] isKindOfClass:NSNumber.class]) {
7878
NSNumber *conversionValue = (NSNumber *)dictionary[BRANCH_RESPONSE_KEY_UPDATE_CONVERSION_VALUE];
7979
if (conversionValue) {
8080
[[BNCSKAdNetwork sharedInstance] updateConversionValue:conversionValue.integerValue];

Branch-SDK/BranchOpenRequest.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,11 @@ - (void)processResponse:(BNCServerResponse *)response error:(NSError *)error {
152152
preferenceHelper.sessionID = data[BRANCH_RESPONSE_KEY_SESSION_ID];
153153
preferenceHelper.previousAppBuildDate = [BNCApplication currentApplication].currentBuildDate;
154154

155-
if (data[BRANCH_RESPONSE_KEY_INVOKE_REGISTER_APP]) {
156-
[[BNCSKAdNetwork sharedInstance] registerAppForAdNetworkAttribution];
155+
if ([data[BRANCH_RESPONSE_KEY_INVOKE_REGISTER_APP] isKindOfClass:NSNumber.class]) {
156+
NSNumber *invokeRegister = (NSNumber *)data[BRANCH_RESPONSE_KEY_INVOKE_REGISTER_APP];
157+
if (invokeRegister.boolValue) {
158+
[[BNCSKAdNetwork sharedInstance] registerAppForAdNetworkAttribution];
159+
}
157160
}
158161

159162
if (Branch.enableFingerprintIDInCrashlyticsReports) {

Branch-TestBed/Branch-SDK-Tests/BNCAppleAdClientTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ - (void)tearDown {
3131
// Put teardown code here. This method is called after the invocation of each test method in the class.
3232
}
3333

34-
// verifies AdClient loaded via reflection is the sharedClient
3534
- (void)testAdClientLoadsViaReflection {
36-
XCTAssertTrue([ADClient sharedClient] == [BNCAppleAdClient new].adClient);
35+
XCTAssertNotNil([BNCAppleAdClient new].adClient);
36+
XCTAssertTrue([[BNCAppleAdClient new].adClient isKindOfClass:ADClient.class]);
3737
}
3838

3939
/*

Branch-TestBed/Framework-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.33.1</string>
20+
<string>0.35.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>0.33.1</string>
24+
<string>0.35.1</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>NSHumanReadableCopyright</key>

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 = "0.35.0"
3+
s.version = "0.35.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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Branch iOS SDK Change Log
22

3+
v0.35.1
4+
October 6, 2020
5+
6+
INTENG-11208
7+
Bug fix. It is possible to block all network calls if the user never opts in. This leads to link resolution reliability issues.
8+
39
v0.35.0
410
August 24, 2020
511

scripts/version

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=0.35.0
34+
version=0.35.1
3535

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

0 commit comments

Comments
 (0)