Skip to content

Commit

Permalink
Add deep linking support with resolute:// URL scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Gawdl3y committed Jun 11, 2024
1 parent f79395d commit 8b42349
Show file tree
Hide file tree
Showing 9 changed files with 727 additions and 70 deletions.
476 changes: 455 additions & 21 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions crates/tauri-app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ tokio = { version = "1.36", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0"
clap = { version = "4.5", features = ["derive"] }
url = "2.5"
log = "0.4"
sha2 = "0.10"
native_db = "0.6"
Expand All @@ -36,6 +38,7 @@ reqwest = { version = "0.12", features = [
"deflate",
], default-features = false }
tauri = { version = "2.0.0-beta.22", features = [] }
tauri-plugin-deep-link = "2.0.0-beta.6"
tauri-plugin-dialog = "2.0.0-beta.9"
tauri-plugin-fs = "2.0.0-beta.9"
tauri-plugin-notification = "2.0.0-beta.7"
Expand Down
1 change: 1 addition & 0 deletions crates/tauri-app/capabilities/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"deep-link:default",
"dialog:allow-ask",
"dialog:allow-message",
"dialog:allow-open",
Expand Down
2 changes: 1 addition & 1 deletion crates/tauri-app/gen/schemas/acl-manifests.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/tauri-app/gen/schemas/capabilities.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"error-capability":{"identifier":"error-capability","description":"Capability for the error window","local":true,"windows":["error"],"permissions":["log:default","process:allow-restart","shell:allow-open"]},"main-capability":{"identifier":"main-capability","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["dialog:allow-ask","dialog:allow-message","dialog:allow-open","event:allow-listen","event:allow-unlisten","fs:allow-exists","log:default","notification:default","path:allow-join","process:allow-restart","shell:allow-open","store:allow-entries","store:allow-set","store:allow-delete","store:allow-save","updater:default"]}}
{"error-capability":{"identifier":"error-capability","description":"Capability for the error window","local":true,"windows":["error"],"permissions":["log:default","process:allow-restart","shell:allow-open"]},"main-capability":{"identifier":"main-capability","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["deep-link:default","dialog:allow-ask","dialog:allow-message","dialog:allow-open","event:allow-listen","event:allow-unlisten","fs:allow-exists","log:default","notification:default","path:allow-join","process:allow-restart","shell:allow-open","store:allow-entries","store:allow-set","store:allow-delete","store:allow-save","updater:default"]}}
63 changes: 63 additions & 0 deletions crates/tauri-app/gen/schemas/desktop-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2422,6 +2422,69 @@
"app:deny-version"
]
},
{
"description": "deep-link:default -> Allows reading the opened deep link via the get_current command",
"type": "string",
"enum": [
"deep-link:default"
]
},
{
"description": "deep-link:allow-get-current -> Enables the get_current command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:allow-get-current"
]
},
{
"description": "deep-link:allow-is-registered -> Enables the is_registered command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:allow-is-registered"
]
},
{
"description": "deep-link:allow-register -> Enables the register command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:allow-register"
]
},
{
"description": "deep-link:allow-unregister -> Enables the unregister command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:allow-unregister"
]
},
{
"description": "deep-link:deny-get-current -> Denies the get_current command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:deny-get-current"
]
},
{
"description": "deep-link:deny-is-registered -> Denies the is_registered command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:deny-is-registered"
]
},
{
"description": "deep-link:deny-register -> Denies the register command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:deny-register"
]
},
{
"description": "deep-link:deny-unregister -> Denies the unregister command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:deny-unregister"
]
},
{
"type": "string",
"enum": [
Expand Down
63 changes: 63 additions & 0 deletions crates/tauri-app/gen/schemas/windows-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2422,6 +2422,69 @@
"app:deny-version"
]
},
{
"description": "deep-link:default -> Allows reading the opened deep link via the get_current command",
"type": "string",
"enum": [
"deep-link:default"
]
},
{
"description": "deep-link:allow-get-current -> Enables the get_current command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:allow-get-current"
]
},
{
"description": "deep-link:allow-is-registered -> Enables the is_registered command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:allow-is-registered"
]
},
{
"description": "deep-link:allow-register -> Enables the register command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:allow-register"
]
},
{
"description": "deep-link:allow-unregister -> Enables the unregister command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:allow-unregister"
]
},
{
"description": "deep-link:deny-get-current -> Denies the get_current command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:deny-get-current"
]
},
{
"description": "deep-link:deny-is-registered -> Denies the is_registered command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:deny-is-registered"
]
},
{
"description": "deep-link:deny-register -> Denies the register command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:deny-register"
]
},
{
"description": "deep-link:deny-unregister -> Denies the unregister command without any pre-configured scope.",
"type": "string",
"enum": [
"deep-link:deny-unregister"
]
},
{
"type": "string",
"enum": [
Expand Down
Loading

0 comments on commit 8b42349

Please sign in to comment.