Skip to content

Commit c26122f

Browse files
author
Edward Smith
committed
Merge branch 'staging' of ssh://github.com/BranchMetrics/ios-branch-deep-linking into QA
2 parents 4e46be3 + a4d1c18 commit c26122f

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

Branch-SDK/Branch-SDK/BNCSystemObserver.m

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,15 @@ + (NSString *)getDefaultUriScheme {
7777
for (NSDictionary *urlType in urlTypes) {
7878
NSArray *urlSchemes = [urlType objectForKey:@"CFBundleURLSchemes"];
7979
for (NSString *uriScheme in urlSchemes) {
80-
BOOL isFBScheme = [uriScheme hasPrefix:@"fb"];
81-
BOOL isDBScheme = [uriScheme hasPrefix:@"db"];
82-
BOOL isPinScheme = [uriScheme hasPrefix:@"pin"];
83-
84-
// Don't use the schemes set aside for other integrations.
85-
if (!isFBScheme && !isDBScheme && !isPinScheme) {
86-
return uriScheme;
87-
}
80+
if ([uriScheme hasPrefix:@"fb"]) continue; // Facebook
81+
if ([uriScheme hasPrefix:@"db"]) continue; // DB?
82+
if ([uriScheme hasPrefix:@"pin"]) continue; // Pinterest
83+
if ([uriScheme hasPrefix:@"com.googleusercontent.apps"]) continue; // Google
84+
85+
// Otherwise this must be it!
86+
return uriScheme;
8887
}
8988
}
90-
9189
return nil;
9290
}
9391

Branch-TestBed-Swift/TestBed-Swift.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@
706706
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
707707
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
708708
COPY_PHASE_STRIP = NO;
709-
DEBUG_INFORMATION_FORMAT = dwarf;
709+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
710710
ENABLE_STRICT_OBJC_MSGSEND = YES;
711711
ENABLE_TESTABILITY = YES;
712712
GCC_C_LANGUAGE_STANDARD = gnu99;

Branch-TestBed-Swift/TestBed-Swift/ViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ class ViewController: UITableViewController, BranchShareLinkDelegate {
341341

342342
branchUniversalObject.getShortUrl(with: branchLinkProperties) { (url, error) in
343343
if (url != nil) {
344-
print(self.branchLinkProperties.description())
345-
print(self.branchUniversalObject.description())
344+
print(branchLinkProperties.description())
345+
print(branchUniversalObject.description())
346346
print("Link Created: \(String(describing: url?.description))")
347347
self.linkTextField.text = url
348348
} else {

0 commit comments

Comments
 (0)