Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 1d5c7d01 authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

feat(deeplink): support market://details links

Add intent handling for `market://details?id={packageName}` in `MainActivity`.

Add matching Navigation deep link so the package name routes to `applicationFragment` correctly.
parent 54ae789e
Loading
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -98,6 +98,16 @@
                <data android:host="play.google.com" />
                <data android:pathPrefix="/store/apps/details" />
            </intent-filter>
            <!-- Google Play Store market links -->
            <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="market" />
                <data android:host="details" />
            </intent-filter>
            <!-- F-Droid -->
            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />
+3 −0
Original line number Diff line number Diff line
@@ -126,6 +126,9 @@
        <deepLink
            app:action="android.intent.action.VIEW"
            app:uri="play.google.com/store/apps/details?id={packageName}&amp;arguments={arguments}" />
        <deepLink
            app:action="android.intent.action.VIEW"
            app:uri="market://details?id={packageName}" />
        <!--
        Add support for f-droid packages
        Issue: https://gitlab.e.foundation/e/backlog/-/issues/5509