Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Migrate to kotlin-inject #1105

Merged
merged 23 commits into from
Feb 13, 2023
Merged

Migrate to kotlin-inject #1105

merged 23 commits into from
Feb 13, 2023

Conversation

chrisbanes
Copy link
Owner

@chrisbanes chrisbanes commented Feb 11, 2023

Using @evant's https://github.com/evant/kotlin-inject.

  • Add SettingsActivity component
  • Migrate all Compose screens
  • Fix WorkManager workers
  • Fix tests
  • Look at naming of Module classes.
  • Fix bad migration of Providers (accidentally migrated them to Lazy).
  • Remove all traces of Hilt and JSR-330

Fixes #1096

@chrisbanes chrisbanes changed the title [WIP] Playing around with migrating to kotlin-inject Migrate to kotlin-inject Feb 13, 2023
@chrisbanes chrisbanes marked this pull request as ready for review February 13, 2023 16:29
@chrisbanes chrisbanes enabled auto-merge (rebase) February 13, 2023 16:30
@chrisbanes chrisbanes merged commit b4aed28 into main Feb 13, 2023
@chrisbanes chrisbanes deleted the cb/kotlin-inject branch February 13, 2023 17:12
@@ -17,7 +17,7 @@

plugins {
id("kotlin")
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.ksp)
Copy link

Choose a reason for hiding this comment

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

Did you notice much build time improvement after making this change?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Maybe? I don't have any numbers to back that up though. There's no more Java being compiled at all, which definitely helps. The goal was to support KMP though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to KMP compatible dependency injection
2 participants