Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/fix-deep-link-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"deep-link": patch
---

Allow empty configuration values.
8 changes: 8 additions & 0 deletions plugins/deep-link/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ where
#[derive(Deserialize)]
pub struct Config {
/// Mobile requires `https://<host>` urls.
#[serde(default)]
pub mobile: Vec<AssociatedDomain>,
/// Desktop requires urls starting with `<scheme>://`.
/// These urls are also active in dev mode on Android.
#[allow(unused)] // Used in tauri-bundler
#[serde(default)]
pub desktop: DesktopProtocol,
}

Expand All @@ -46,3 +48,9 @@ pub enum DesktopProtocol {
One(DeepLinkProtocol),
List(Vec<DeepLinkProtocol>),
}

impl Default for DesktopProtocol {
fn default() -> Self {
Self::List(Vec::new())
}
}
Loading