Skip to content

Commit 01d0b5e

Browse files
authored
Merge pull request #16 from BranchMetrics/INTENG-10216-enable-universal-links-in-testbed
INTENG-10216 enable universal links in the testbed
2 parents 7b8c23f + 3dd8909 commit 01d0b5e

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

Examples/TestBed-macOS/TestBed-macOS/APPAppDelegate.m

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,26 +72,14 @@ - (BOOL)application:(NSApplication *)application
7272
return YES;
7373
}
7474

75-
#if defined(MAC_OS_X_VERSION_10_14)
76-
7775
- (BOOL)application:(NSApplication *)application
7876
continueUserActivity:(NSUserActivity *)userActivity
7977
restorationHandler:(void(^)(NSArray<id<NSUserActivityRestoring>> *restorableObjects))restorationHandler {
8078
BNCLogMethodName();
79+
[[Branch sharedInstance] continueUserActivity:userActivity];
8180
return YES;
8281
}
8382

84-
#else
85-
86-
- (BOOL)application:(NSApplication *)application
87-
continueUserActivity:(NSUserActivity *)userActivity
88-
restorationHandler:(void(^)(NSArray *restorableObjects))restorationHandler {
89-
BNCLogMethodName();
90-
return YES;
91-
}
92-
93-
#endif
94-
9583
- (BOOL) string:(NSString*)string matchesRegex:(NSString*)regex {
9684
NSError *error = NULL;
9785
NSRegularExpression *ns_regex =

Examples/TestBed-macOS/TestBed-macOS/TestBed-macOS.entitlements

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>com.apple.developer.associated-domains</key>
6+
<array>
7+
<string>applinks:testbed-mac.app.link</string>
8+
</array>
59
<key>com.apple.security.app-sandbox</key>
610
<true/>
711
<key>com.apple.security.files.user-selected.read-only</key>

0 commit comments

Comments
 (0)