feat(deep-link): Add deep link support for desktop (#916)

This commit is contained in:
Fabian-Lars
2024-05-10 07:44:06 -03:00
committed by Lucas Nogueira
parent eb1679b997
commit 021d23bef3
21 changed files with 614 additions and 29 deletions
+3 -3
View File
@@ -6,7 +6,7 @@
mod config;
use config::{AssociatedDomain, Config};
const COMMANDS: &[&str] = &["get_current"];
const COMMANDS: &[&str] = &["get_current", "register", "unregister", "is_registered"];
// TODO: Consider using activity-alias in case users may have multiple activities in their app.
// TODO: Do we want to support the other path* configs too?
@@ -48,7 +48,7 @@ fn main() {
"DEEP LINK PLUGIN",
"activity",
config
.domains
.mobile
.iter()
.map(intent_filter)
.collect::<Vec<_>>()
@@ -62,7 +62,7 @@ fn main() {
entitlements.insert(
"com.apple.developer.associated-domains".into(),
config
.domains
.mobile
.into_iter()
.map(|d| format!("applinks:{}", d.host).into())
.collect::<Vec<_>>()