We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent feb1e93 commit 4654591Copy full SHA for 4654591
.changes/fix-deep-link-config.md
@@ -0,0 +1,5 @@
1
+---
2
+"deep-link": patch
3
4
+
5
+Allow empty configuration values.
plugins/deep-link/src/config.rs
@@ -32,10 +32,12 @@ where
32
#[derive(Deserialize)]
33
pub struct Config {
34
/// Mobile requires `https://<host>` urls.
35
+ #[serde(default)]
36
pub mobile: Vec<AssociatedDomain>,
37
/// Desktop requires urls starting with `<scheme>://`.
38
/// These urls are also active in dev mode on Android.
39
#[allow(unused)] // Used in tauri-bundler
40
41
pub desktop: DesktopProtocol,
42
}
43
@@ -46,3 +48,9 @@ pub enum DesktopProtocol {
46
48
One(DeepLinkProtocol),
47
49
List(Vec<DeepLinkProtocol>),
50
51
52
+impl Default for DesktopProtocol {
53
+ fn default() -> Self {
54
+ Self::List(Vec::new())
55
+ }
56
+}
0 commit comments