Skip to content

Commit

Permalink
[mobile] explicit <data> in intent filter + iitc://
Browse files Browse the repository at this point in the history
  • Loading branch information
le-jeu committed Mar 10, 2023
1 parent d896751 commit 3668f12
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions mobile/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,25 @@
<!-- Handles the implicit intent to VIEW the intel.ingress.com/ URI -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>

<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>

<data android:scheme="http"/>
<data android:scheme="https"/>
<data android:host="intel.ingress.com"/>
<data android:scheme="http" android:host="intel.ingress.com"/>
<data android:scheme="https" android:host="intel.ingress.com"/>
</intent-filter>

<!-- Handles the implicit intent to VIEW legacy [www.]ingress.com/intel URI -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>

<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>

<data android:scheme="http"/>
<data android:scheme="https"/>
<data android:host="ingress.com"/>
<data android:host="www.ingress.com"/>
<data android:pathPrefix="/intel"/>
<data android:scheme="http" android:host="ingress.com" android:pathPrefix="/intel"/>
<data android:scheme="https" android:host="ingress.com" android:pathPrefix="/intel"/>
<data android:scheme="http" android:host="www.ingress.com" android:pathPrefix="/intel"/>
<data android:scheme="https" android:host="www.ingress.com" android:pathPrefix="/intel"/>
</intent-filter>

<!-- Handles geo: URIs -->
Expand All @@ -78,6 +74,16 @@
<data android:scheme="geo"/>
</intent-filter>

<!-- Handles iitc: URIs -->
<intent-filter>
<action android:name="android.intent.action.VIEW"/>

<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>

<data android:scheme="iitc"/>
</intent-filter>

<!-- Points to searchable meta data. -->
<meta-data
android:name="android.app.searchable"
Expand Down Expand Up @@ -115,9 +121,8 @@
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>

<data android:scheme="http"/>
<data android:scheme="https"/>
<data android:host="*" android:pathPattern=".*\\.user.js"/>
<data android:scheme="http" android:pathPattern=".*\\.user\\.js"/>
<data android:scheme="https" android:pathPattern=".*\\.user\\.js"/>
</intent-filter>
</activity>

Expand Down

0 comments on commit 3668f12

Please sign in to comment.