Skip to content

Commit 3607e53

Browse files
author
Edward Smith
committed
Merge branch 'master' of github.com:BranchMetrics/ios-branch-deep-linking into staging
2 parents 0da015e + 32d8456 commit 3607e53

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@
655655
);
656656
runOnlyForDeploymentPostprocessing = 0;
657657
shellPath = /bin/sh;
658-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
658+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
659659
showEnvVarsInLog = 0;
660660
};
661661
F733BC35B995303D0F6E036C /* [CP] Embed Pods Frameworks */ = {

Branch-TestBed-Swift/TestBed-Swift/AppDelegate.swift

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, AdjustDelegate, AppsFlyer
168168
sourceApplication: sourceApplication,
169169
annotation: annotation
170170
)
171+
Adjust.appWillOpen(url)
171172
if (!branchHandled) {
172173
// If not handled by Branch, do other deep link routing for the Facebook SDK, Pinterest SDK, etc
173174
}
@@ -176,7 +177,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate, AdjustDelegate, AppsFlyer
176177

177178
// Respond to Universal Links
178179
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool {
179-
Branch.getInstance().continue(userActivity);
180+
Branch.getInstance().continue(userActivity)
181+
if (userActivity.activityType == NSUserActivityTypeBrowsingWeb) {
182+
let url = userActivity.webpageURL
183+
184+
Adjust.appWillOpen(url!)
185+
}
186+
187+
// Apply your logic to determine the return value of this method
180188
return true
181189
}
182190

@@ -250,11 +258,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate, AdjustDelegate, AppsFlyer
250258
IntegratedSDKsData.setActiveAdjustAppToken(key)
251259
IntegratedSDKsData.setActiveAdjustEnabled(true)
252260

253-
let adjustConfig = ADJConfig(appToken: key, environment: ADJEnvironmentSandbox)
261+
let adjustConfig = ADJConfig(appToken: key, environment: ADJEnvironmentProduction)
254262

255263
adjustConfig?.logLevel = ADJLogLevelVerbose
256264
adjustConfig?.delegate = self
257265
Adjust.appDidLaunch(adjustConfig!)
266+
258267
}
259268

260269
func activateAdobe() {

0 commit comments

Comments
 (0)