File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,14 @@ fn intent_filter(domain: &AssociatedDomain) -> String {
16
16
. map ( |h| format ! ( r#"<data android:host="{h}" />"# ) )
17
17
. unwrap_or_default ( ) ;
18
18
19
+ let auto_verify = if domain. is_app_link ( ) {
20
+ r#"android:autoVerify="true" "# . to_string ( )
21
+ } else {
22
+ String :: new ( )
23
+ } ;
24
+
19
25
format ! (
20
- r#"<intent-filter android:autoVerify="true" >
26
+ r#"<intent-filter {auto_verify} >
21
27
<action android:name="android.intent.action.VIEW" />
22
28
<category android:name="android.intent.category.DEFAULT" />
23
29
<category android:name="android.intent.category.BROWSABLE" />
Original file line number Diff line number Diff line change 23
23
<category android : name =" android.intent.category.LEANBACK_LAUNCHER" />
24
24
</intent-filter >
25
25
<!-- DEEP LINK PLUGIN. AUTO-GENERATED. DO NOT REMOVE. -->
26
- <intent-filter android : autoVerify = " true " >
26
+ <intent-filter >
27
27
<action android : name =" android.intent.action.VIEW" />
28
28
<category android : name =" android.intent.category.DEFAULT" />
29
29
<category android : name =" android.intent.category.BROWSABLE" />
35
35
<data android : pathPrefix =" /intent" />
36
36
37
37
</intent-filter >
38
- <intent-filter android : autoVerify =" true" >
38
+ <intent-filter android : autoVerify =" true" >
39
39
<action android : name =" android.intent.action.VIEW" />
40
40
<category android : name =" android.intent.category.DEFAULT" />
41
41
<category android : name =" android.intent.category.BROWSABLE" />
47
47
48
48
49
49
</intent-filter >
50
- <intent-filter android : autoVerify = " true " >
50
+ <intent-filter >
51
51
<action android : name =" android.intent.action.VIEW" />
52
52
<category android : name =" android.intent.category.DEFAULT" />
53
53
<category android : name =" android.intent.category.BROWSABLE" />
Original file line number Diff line number Diff line change 34
34
"pathPrefix" : [" /intent" ]
35
35
},
36
36
{
37
- "host" : " tauri.app"
37
+ "host" : " tauri.app" ,
38
+ "appLink" : true
38
39
},
39
40
{
40
41
"scheme" : [" taurideeplink" ]
You can’t perform that action at this time.
0 commit comments