Skip to content

Migrate to Metro DI - #3608

Open
AntsyLich wants to merge 16 commits into
mihonapp:mainfrom
AntsyLich:metro
Open

Migrate to Metro DI#3608
AntsyLich wants to merge 16 commits into
mihonapp:mainfrom
AntsyLich:metro

Conversation

@AntsyLich

Copy link
Copy Markdown
Member

No description provided.

@AntsyLich
AntsyLich marked this pull request as ready for review July 22, 2026 15:28
@AntsyLich AntsyLich changed the title WIP: Migrate to Metro DI Migrate to Metro DI Jul 22, 2026
val Manga.downloadedFilter: TriState
get() {
if (Injekt.get<BasePreferences>().downloadedOnly.get()) return TriState.ENABLED_IS
if (Injekt.get<Context>().appGraph.basePreferences.downloadedOnly.get()) return TriState.ENABLED_IS

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we're not getting rid of Injekt with this? (aside from still having to provide Injekt things for extensions)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll require more rework and the pr is already bloated as is.


private val graph: AppGraph = context.metroGraph()

@Inject lateinit var getTracks: GetTracks

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't say I'm super happy about all the lateinit vars we're creating with this new approach...

Comment thread core/common/src/main/kotlin/mihon/core/common/FeatureFlags.kt Outdated
Comment thread source-api/src/main/AndroidManifest.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants