Skip to content

Commit

Permalink
Remove tags screen
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Mar 25, 2024
1 parent 04785f2 commit 2034fb4
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 630 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import dev.sasikanth.rss.reader.search.ui.SearchScreen
import dev.sasikanth.rss.reader.settings.ui.SettingsScreen
import dev.sasikanth.rss.reader.share.LocalShareHandler
import dev.sasikanth.rss.reader.share.ShareHandler
import dev.sasikanth.rss.reader.tags.ui.TagsScreen
import dev.sasikanth.rss.reader.utils.LocalWindowSizeClass
import me.tatarka.inject.annotations.Inject

Expand Down Expand Up @@ -105,9 +104,6 @@ fun App(
is Screen.Reader -> {
ReaderScreen(presenter = screen.presenter, modifier = fillMaxSizeModifier)
}
is Screen.Tags -> {
TagsScreen(tagsPresenter = screen.presenter, modifier = fillMaxSizeModifier)
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import dev.sasikanth.rss.reader.repository.RssRepository
import dev.sasikanth.rss.reader.repository.SettingsRepository
import dev.sasikanth.rss.reader.search.SearchPresentFactory
import dev.sasikanth.rss.reader.settings.SettingsPresenterFactory
import dev.sasikanth.rss.reader.tags.TagsPresenterFactory
import dev.sasikanth.rss.reader.util.DispatchersProvider
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.SupervisorJob
Expand All @@ -66,7 +65,6 @@ class AppPresenter(
private val aboutPresenter: AboutPresenterFactory,
private val readerPresenter: ReaderPresenterFactory,
private val feedPresenter: FeedPresenterFactory,
private val tagsPresenter: TagsPresenterFactory,
private val lastUpdatedAt: LastUpdatedAt,
private val rssRepository: RssRepository,
private val settingsRepository: SettingsRepository,
Expand Down Expand Up @@ -165,16 +163,6 @@ class AppPresenter(
presenter = readerPresenter(config.postLink, componentContext) { navigation.pop() }
)
}
is Config.Tags -> {
Screen.Tags(
presenter =
tagsPresenter(
componentContext,
) {
navigation.pop()
}
)
}
}

private fun openPost(postLink: String) {
Expand Down Expand Up @@ -228,8 +216,6 @@ class AppPresenter(
@Serializable data object About : Config

@Serializable data class Reader(val postLink: String) : Config

@Serializable data object Tags : Config
}

@Serializable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import dev.sasikanth.rss.reader.home.HomePresenter
import dev.sasikanth.rss.reader.reader.ReaderPresenter
import dev.sasikanth.rss.reader.search.SearchPresenter
import dev.sasikanth.rss.reader.settings.SettingsPresenter
import dev.sasikanth.rss.reader.tags.TagsPresenter

internal sealed interface Screen {
class Home(val presenter: HomePresenter) : Screen
Expand All @@ -35,6 +34,4 @@ internal sealed interface Screen {
class About(val presenter: AboutPresenter) : Screen

class Reader(val presenter: ReaderPresenter) : Screen

class Tags(val presenter: TagsPresenter) : Screen
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2034fb4

Please sign in to comment.