skydoves / pokedex-compose

🗡️ Pokedex Compose demonstrates modern Android development with Jetpack Compose, Hilt, Coroutines, Flow, Jetpack (Room, ViewModel), and Material Design based on MVVM architecture.
Apache License 2.0
750 stars 124 forks source link

Migration from Hilt to Koin. #35

Closed Unique0o closed 1 month ago

Unique0o commented 1 month ago

While hilt creates an unnecessary burden on the codebase at compile time and run-time when utilizing reflection. I would suggest replacing Hilt with Koin. Koin is very lightweight and based on Kotlin's core capabilities. It utilize extension functions thus providing outstanding performance eventually avoiding reflection and annotations processing.

skydoves commented 1 month ago

I know someone prefer Koin rather than Hilt, but in most case, Hilt used to have a better performance in large projects. Check out the discussion below: https://www.reddit.com/r/androiddev/comments/8ch4cg/dagger2_vs_koin_for_dependency_injection/

On the other hand, I'm planning to use Koin for my future KMP project for Pokedex :)