handle incoming URIs based on patterns: "^https?://.*/(repo|archive)/*$"

This allows for clickable/scannable URIs for adding repos to F-Droid.
This commit is contained in:
Hans-Christoph Steiner 2013-11-19 14:29:07 -05:00
parent 6928bd1244
commit 3301a57a01

View File

@ -71,6 +71,22 @@
<meta-data <meta-data
android:name="android.support.PARENT_ACTIVITY" android:name="android.support.PARENT_ACTIVITY"
android:value=".FDroid" /> android:value=".FDroid" />
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="*" />
<!-- the patterns are unpredictable, this is the best I could get working -->
<data android:path="/repo" />
<data android:path="/archive" />
<data android:pathPattern="/repo/*" />
<data android:pathPattern="/archive/*" />
</intent-filter>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />