updated intent filters to support custom app link paths

rest of paths like faq and proposals open up in browser just like we did in iOS
This commit is contained in:
Nouman Tahir 2021-07-13 00:36:29 +05:00
parent b6036afe07
commit 1046e94b60

View File

@ -28,18 +28,53 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter android:label="Ecency">
<intent-filter android:label="Ecency" android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="ecency.com"
android:pathPattern="/@.*"
/>
<data
android:scheme="https"
android:host="ecency.com"
android:pathPattern="/.*/@.*/.*"
/>
<data
android:scheme="https"
android:host="ecency.com"
android:pathPattern="/hot/.*"
/>
<data
android:scheme="https"
android:host="ecency.com"
android:pathPattern="/trending/.*"
/>
<data
android:scheme="https"
android:host="ecency.com"
android:pathPattern="/created/.*"
/>
<data
android:scheme="https"
android:host="ecency.com"
android:path="/trending"
/>
<data
android:scheme="https"
android:host="ecency.com"
android:path="/hot"
/>
</intent-filter>
<intent-filter android:label="Ecency" >
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="ecency" />
</intent-filter>
<intent-filter android:label="Ecency">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="ecency.com" />
</intent-filter>
<intent-filter android:label="Ecency">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />