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:
parent
6928bd1244
commit
3301a57a01
@ -71,6 +71,22 @@
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
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>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user