fix: remove deeplink for lobste.rs

It makes logging in to the website from a browser fairly annoying for minimal gain
This commit is contained in:
Harsh Shandilya 2023-05-28 17:25:04 +05:30
parent ac573d9311
commit 9d85563cf2
No known key found for this signature in database
2 changed files with 3 additions and 22 deletions

View file

@ -25,19 +25,6 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</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" />
<data android:ssp="//lobste.rs" />
<data android:host="lobste.rs" />
<data android:path="/" />
<data android:scheme="https" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

View file

@ -173,11 +173,7 @@ fun LobstersApp(
startDestination = Destinations.startDestination.route,
) {
val uri = LobstersApi.BASE_URL
composable(
route = Destinations.Hottest.route,
deepLinks =
listOf(navDeepLink { uriPattern = uri }, navDeepLink { uriPattern = "$uri/" }),
) {
composable(route = Destinations.Hottest.route) {
setWebUri("https://lobste.rs/")
NetworkPosts(
lazyPagingItems = hottestPosts,
@ -186,9 +182,7 @@ fun LobstersApp(
postActions = postActions,
)
}
composable(
route = Destinations.Newest.route,
) {
composable(route = Destinations.Newest.route) {
setWebUri("https://lobste.rs/")
NetworkPosts(
lazyPagingItems = newestPosts,
@ -197,7 +191,7 @@ fun LobstersApp(
postActions = postActions,
)
}
composable(Destinations.Saved.route) {
composable(route = Destinations.Saved.route) {
setWebUri(null)
DatabasePosts(
items = savedPosts,