Skip to content

Commit

Permalink
Scope OPMLManager to AppScope
Browse files Browse the repository at this point in the history
Since we would want the import and export to continue even after leaving settings screen, this class is scoped to application.
  • Loading branch information
msasikanth committed Jul 31, 2024
1 parent 51ddd79 commit b18d23d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import co.touchlab.kermit.Logger
import co.touchlab.stately.concurrency.AtomicInt
import dev.sasikanth.rss.reader.data.repository.FeedAddResult
import dev.sasikanth.rss.reader.data.repository.RssRepository
import dev.sasikanth.rss.reader.di.scopes.AppScope
import dev.sasikanth.rss.reader.util.DispatchersProvider
import dev.sasikanth.rss.reader.utils.Constants.BACKUP_FILE_NAME
import io.github.vinceglb.filekit.core.FileKit
Expand All @@ -46,6 +47,7 @@ import kotlinx.coroutines.withContext
import me.tatarka.inject.annotations.Inject

@Inject
@AppScope
class OpmlManager(
private val dispatchersProvider: DispatchersProvider,
private val sourcesOpml: SourcesOpml,
Expand Down

0 comments on commit b18d23d

Please sign in to comment.