Skip to content

Commit 7a6a3d9

Browse files
committed
Release 3.5.1
1 parent ffa4337 commit 7a6a3d9

File tree

10 files changed

+29
-16
lines changed

10 files changed

+29
-16
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.5.0"
3+
s.version = "3.5.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
@@ -1974,7 +1974,7 @@
19741974
"@executable_path/Frameworks",
19751975
"@loader_path/Frameworks",
19761976
);
1977-
MARKETING_VERSION = 3.5.0;
1977+
MARKETING_VERSION = 3.5.1;
19781978
OTHER_LDFLAGS = (
19791979
"-weak_framework",
19801980
LinkPresentation,
@@ -2009,7 +2009,7 @@
20092009
"@executable_path/Frameworks",
20102010
"@loader_path/Frameworks",
20112011
);
2012-
MARKETING_VERSION = 3.5.0;
2012+
MARKETING_VERSION = 3.5.1;
20132013
OTHER_LDFLAGS = (
20142014
"-weak_framework",
20152015
LinkPresentation,
@@ -2215,7 +2215,7 @@
22152215
"@loader_path/Frameworks",
22162216
);
22172217
MACH_O_TYPE = staticlib;
2218-
MARKETING_VERSION = 3.5.0;
2218+
MARKETING_VERSION = 3.5.1;
22192219
OTHER_LDFLAGS = (
22202220
"-weak_framework",
22212221
LinkPresentation,
@@ -2254,7 +2254,7 @@
22542254
"@loader_path/Frameworks",
22552255
);
22562256
MACH_O_TYPE = staticlib;
2257-
MARKETING_VERSION = 3.5.0;
2257+
MARKETING_VERSION = 3.5.1;
22582258
OTHER_LDFLAGS = (
22592259
"-weak_framework",
22602260
LinkPresentation,
@@ -2291,7 +2291,7 @@
22912291
"@executable_path/Frameworks",
22922292
"@loader_path/Frameworks",
22932293
);
2294-
MARKETING_VERSION = 3.5.0;
2294+
MARKETING_VERSION = 3.5.1;
22952295
OTHER_LDFLAGS = (
22962296
"-weak_framework",
22972297
LinkPresentation,
@@ -2326,7 +2326,7 @@
23262326
"@executable_path/Frameworks",
23272327
"@loader_path/Frameworks",
23282328
);
2329-
MARKETING_VERSION = 3.5.0;
2329+
MARKETING_VERSION = 3.5.1;
23302330
OTHER_LDFLAGS = (
23312331
"-weak_framework",
23322332
LinkPresentation,

ChangeLog.md

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

3+
v.3.5.1
4+
- Minor logging improvement
5+
36
v.3.5.0
47
- Add additional logging
58
- Update setRequestMetadata signature to use NSString

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

Sources/BranchSDK/BNCServerInterface.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,11 @@ - (void)genericHTTPRequest:(NSURLRequest *)request retryNumber:(NSInteger)retryN
125125
} else {
126126
if (status != 200) {
127127
if ([NSError branchDNSBlockingError:underlyingError]) {
128-
[[BranchLogger shared] logWarning:[NSString stringWithFormat:@"Possible DNS Ad Blocker. Giving up on request with HTTP status code %ld", (long)status] error:underlyingError];
128+
NSError *error = [NSError branchErrorWithCode:BNCDNSAdBlockerError];
129+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Possible DNS Ad Blocker. Giving up on request with HTTP status code %ld. Underlying error: %@", (long)status, underlyingError] error:error];
129130
} else if ([NSError branchVPNBlockingError:underlyingError]) {
130-
[[BranchLogger shared] logWarning:[NSString stringWithFormat:@"Possible VPN Ad Blocker. Giving up on request with HTTP status code %ld", (long)status] error:underlyingError];
131+
NSError *error = [NSError branchErrorWithCode:BNCVPNAdBlockerError];
132+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Possible VPN Ad Blocker. Giving up on request with HTTP status code %ld. Underlying error: %@", (long)status, underlyingError] error:error];
131133
} else {
132134
[[BranchLogger shared] logWarning: [NSString stringWithFormat:@"Giving up on request with HTTP status code %ld", (long)status] error:underlyingError];
133135
}

Sources/BranchSDK/BNCURLFilter.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,13 @@ - (BOOL)foundUpdatedURLList:(id<BNCNetworkOperationProtocol>)operation {
130130
if (statusCode == 404) {
131131
[[BranchLogger shared] logDebug:@"No update for URL ignore list found." error:nil];
132132
return NO;
133-
} else if (statusCode != 200 || error != nil || jsonString == nil) {
133+
} else if (statusCode != 200 || error != nil || jsonString == nil) {
134134
if ([NSError branchDNSBlockingError:error]) {
135-
[[BranchLogger shared] logWarning:@"Possible DNS Ad Blocker" error:error];
135+
NSError *dnsError = [NSError branchErrorWithCode:BNCDNSAdBlockerError];
136+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Possible DNS Ad Blocker. Giving up on request with HTTP status code %ld. Underlying error: %@", (long)statusCode, error] error:dnsError];
136137
} else if ([NSError branchVPNBlockingError:error]) {
137-
[[BranchLogger shared] logWarning:@"Possible VPN Ad Blocker" error:error];
138+
NSError *vpnError = [NSError branchErrorWithCode:BNCVPNAdBlockerError];
139+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Possible VPN Ad Blocker. Giving up on request with HTTP status code %ld. Underlying error: %@", (long)statusCode, error] error:vpnError];
138140
} else {
139141
[[BranchLogger shared] logWarning:@"Failed to update URL ignore list" error:operation.error];
140142
}

Sources/BranchSDK/BranchQRCode.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@ - (void)callQRCodeAPI:(nullable NSDictionary *)params
144144

145145
if (error) {
146146
if ([NSError branchDNSBlockingError:error]) {
147-
[[BranchLogger shared] logWarning:@"Possible DNS Ad Blocker" error:error];
147+
NSError *dnsError = [NSError branchErrorWithCode:BNCDNSAdBlockerError];
148+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Possible DNS Ad Blocker. Giving up on QR code request. Underlying error: %@", error] error:dnsError];
148149
} else if ([NSError branchVPNBlockingError:error]) {
149-
[[BranchLogger shared] logWarning:@"Possible VPN Ad Blocker" error:error];
150+
NSError *vpnError = [NSError branchErrorWithCode:BNCVPNAdBlockerError];
151+
[[BranchLogger shared] logError:[NSString stringWithFormat:@"Possible VPN Ad Blocker. Giving up on QR code request. Underlying error: %@", error] error:vpnError];
150152
} else {
151153
[[BranchLogger shared] logError:@"QR Code request failed" error:error];
152154
completion(nil, error);

Sources/BranchSDK/NSError+Branch.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ + (NSString *)messageForCode:(BNCErrorCode)code {
4040
[messages setObject:@"The Spotlight identifier is required to remove indexing from spotlight." forKey:@(BNCSpotlightIdentifierError)];
4141
[messages setObject:@"Spotlight cannot remove publicly indexed content." forKey:@(BNCSpotlightPublicIndexError)];
4242
[messages setObject:@"User tracking is disabled and the request is not allowed" forKey:@(BNCTrackingDisabledError)];
43+
[messages setObject:@"Possible DNS Ad Blocker. Giving up on request." forKey:@(BNCDNSAdBlockerError)];
44+
[messages setObject:@"Possible VPN Ad Blocker. Giving up on request." forKey:@(BNCVPNAdBlockerError)];
4345
});
4446

4547
NSString *errorMessage = [messages objectForKey:@(code)];

Sources/BranchSDK/Private/NSError+Branch.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ typedef NS_ENUM(NSInteger, BNCErrorCode) {
3232
BNCSpotlightPublicIndexError = 1014,
3333
BNCTrackingDisabledError = 1015,
3434
BNCGeneralError = 1016, // General Branch SDK Error
35+
BNCDNSAdBlockerError = 1017,
36+
BNCVPNAdBlockerError = 1018,
3537
BNCHighestError
3638
};
3739

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.5.0
33+
version=3.5.1
3434
prev_version="$version"
3535

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

0 commit comments

Comments
 (0)