Skip to content

Commit dad912f

Browse files
chore: enabled deeplinks in wagmi sample (#219)
1 parent f82f7b4 commit dad912f

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

dapps/W3MWagmi/ios/AppDelegate.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,16 @@ class AppDelegate: RCTAppDelegate {
3434
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
3535
#endif
3636
}
37+
38+
// Add this method for standard URL schemes
39+
override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
40+
return RCTLinkingManager.application(app, open: url, options: options)
41+
}
42+
43+
// Add this method for Universal Links
44+
override func application(_ application: UIApplication, continue userActivity: NSUserActivity,
45+
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool
46+
{
47+
return RCTLinkingManager.application(application, continue: userActivity, restorationHandler: restorationHandler)
48+
}
3749
}

dapps/W3MWagmi/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ SPEC CHECKSUMS:
22982298
fmt: a40bb5bd0294ea969aaaba240a927bd33d878cdd
22992299
glog: eb93e2f488219332457c3c4eafd2738ddc7e80b8
23002300
hermes-engine: 1f783c3d53940aed0d2c84586f0b7a85ab7827ef
2301-
RCT-Folly: 36fe2295e44b10d831836cc0d1daec5f8abcf809
2301+
RCT-Folly: e78785aa9ba2ed998ea4151e314036f6c49e6d82
23022302
RCTDeprecation: f5c19ebdb8804b53ed029123eb69914356192fc8
23032303
RCTRequired: 6ae6cebe470486e0e0ce89c1c0eabb998e7c51f4
23042304
RCTTypeSafety: 50d6ec72a3d13cf77e041ff43a0617050fb98e3f

dapps/W3MWagmi/ios/W3MWagmi.xcodeproj/project.pbxproj

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,10 +575,14 @@
575575
inputFileListPaths = (
576576
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Debug/Pods-App-W3MWagmi Debug-resources-${CONFIGURATION}-input-files.xcfilelist",
577577
);
578+
inputPaths = (
579+
);
578580
name = "[CP] Copy Pods Resources";
579581
outputFileListPaths = (
580582
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Debug/Pods-App-W3MWagmi Debug-resources-${CONFIGURATION}-output-files.xcfilelist",
581583
);
584+
outputPaths = (
585+
);
582586
runOnlyForDeploymentPostprocessing = 0;
583587
shellPath = /bin/sh;
584588
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Debug/Pods-App-W3MWagmi Debug-resources.sh\"\n";
@@ -614,10 +618,14 @@
614618
inputFileListPaths = (
615619
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi/Pods-App-W3MWagmi-frameworks-${CONFIGURATION}-input-files.xcfilelist",
616620
);
621+
inputPaths = (
622+
);
617623
name = "[CP] Embed Pods Frameworks";
618624
outputFileListPaths = (
619625
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi/Pods-App-W3MWagmi-frameworks-${CONFIGURATION}-output-files.xcfilelist",
620626
);
627+
outputPaths = (
628+
);
621629
runOnlyForDeploymentPostprocessing = 0;
622630
shellPath = /bin/sh;
623631
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi/Pods-App-W3MWagmi-frameworks.sh\"\n";
@@ -631,10 +639,14 @@
631639
inputFileListPaths = (
632640
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi/Pods-App-W3MWagmi-resources-${CONFIGURATION}-input-files.xcfilelist",
633641
);
642+
inputPaths = (
643+
);
634644
name = "[CP] Copy Pods Resources";
635645
outputFileListPaths = (
636646
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi/Pods-App-W3MWagmi-resources-${CONFIGURATION}-output-files.xcfilelist",
637647
);
648+
outputPaths = (
649+
);
638650
runOnlyForDeploymentPostprocessing = 0;
639651
shellPath = /bin/sh;
640652
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi/Pods-App-W3MWagmi-resources.sh\"\n";
@@ -667,10 +679,14 @@
667679
inputFileListPaths = (
668680
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Debug/Pods-App-W3MWagmi Debug-frameworks-${CONFIGURATION}-input-files.xcfilelist",
669681
);
682+
inputPaths = (
683+
);
670684
name = "[CP] Embed Pods Frameworks";
671685
outputFileListPaths = (
672686
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Debug/Pods-App-W3MWagmi Debug-frameworks-${CONFIGURATION}-output-files.xcfilelist",
673687
);
688+
outputPaths = (
689+
);
674690
runOnlyForDeploymentPostprocessing = 0;
675691
shellPath = /bin/sh;
676692
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Debug/Pods-App-W3MWagmi Debug-frameworks.sh\"\n";
@@ -725,10 +741,14 @@
725741
inputFileListPaths = (
726742
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Internal/Pods-App-W3MWagmi Internal-frameworks-${CONFIGURATION}-input-files.xcfilelist",
727743
);
744+
inputPaths = (
745+
);
728746
name = "[CP] Embed Pods Frameworks";
729747
outputFileListPaths = (
730748
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Internal/Pods-App-W3MWagmi Internal-frameworks-${CONFIGURATION}-output-files.xcfilelist",
731749
);
750+
outputPaths = (
751+
);
732752
runOnlyForDeploymentPostprocessing = 0;
733753
shellPath = /bin/sh;
734754
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Internal/Pods-App-W3MWagmi Internal-frameworks.sh\"\n";
@@ -742,10 +762,14 @@
742762
inputFileListPaths = (
743763
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Internal/Pods-App-W3MWagmi Internal-resources-${CONFIGURATION}-input-files.xcfilelist",
744764
);
765+
inputPaths = (
766+
);
745767
name = "[CP] Copy Pods Resources";
746768
outputFileListPaths = (
747769
"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Internal/Pods-App-W3MWagmi Internal-resources-${CONFIGURATION}-output-files.xcfilelist",
748770
);
771+
outputPaths = (
772+
);
749773
runOnlyForDeploymentPostprocessing = 0;
750774
shellPath = /bin/sh;
751775
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App-W3MWagmi Internal/Pods-App-W3MWagmi Internal-resources.sh\"\n";

0 commit comments

Comments
 (0)