Skip to content

Commit

Permalink
Adding deep links.
Browse files Browse the repository at this point in the history
- My phone still uses the browser for some reason, but FF shows a "open
  in app" dialog. Can't figure this one out. #186
- Fix constantly opening keyboard issue. Fixes #226
  • Loading branch information
dessalines committed Oct 4, 2022
1 parent f3b4361 commit 3f9682d
Show file tree
Hide file tree
Showing 40 changed files with 759 additions and 1,064 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Expand Up @@ -110,6 +110,7 @@ dependencies {
// optional - Paging 3 Integration
implementation "androidx.room:room-paging:$room_version"

implementation "io.arrow-kt:arrow-core:1.0.1"
implementation "androidx.compose.material:material-icons-extended:$compose_version"
implementation 'org.ocpsoft.prettytime:prettytime:5.0.3.Final'
implementation 'io.coil-kt:coil-compose:1.3.1'
Expand Down
53 changes: 52 additions & 1 deletion app/src/main/AndroidManifest.xml
Expand Up @@ -4,6 +4,7 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />

<application
android:name=".JerboaApplication"
Expand All @@ -21,10 +22,11 @@
android:name=".MainActivity"
android:exported="true"
android:theme="@style/Theme.Jerboa"
android:launchMode="standard"
android:allowTaskReparenting="true"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
Expand All @@ -38,6 +40,55 @@
<data android:mimeType="image/*" />
</intent-filter>

<!-- The main instances-->
<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="https" android:host="lemmy.ml" />
</intent-filter>
<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="https" android:host="lemmygrad.ml" />
</intent-filter>
<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="https" android:host="mujico.org" />
</intent-filter>
<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="https" android:host="feddit.de" />
</intent-filter>
<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="https" android:host="szmer.info" />
</intent-filter>
<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="https" android:host="beehaw.org" />
</intent-filter>
<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="https" android:host="feddit.it" />
</intent-filter>
<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="https" android:host="sopuli.xyz" />
</intent-filter>
</activity>
</application>

Expand Down

0 comments on commit 3f9682d

Please sign in to comment.