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 64b82b2
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions mobile/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
android:name="org.exarhteam.iitc_mobile.IITC_Mobile"
android:configChanges="orientation|keyboard|keyboardHidden|screenSize|uiMode"
android:label="@string/app_name"
android:exported="true"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
Expand All @@ -48,9 +49,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="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 -->
Expand All @@ -61,11 +61,10 @@
<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 +77,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 +124,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 64b82b2

Please sign in to comment.