koin-annotations icon indicating copy to clipboard operation
koin-annotations copied to clipboard

2.0.0-RC4 alerts of false dependency cycles

Open xertrec opened this issue 9 months ago • 0 comments

Describe the bug When updating from 2.0.0-Beta05 to 2.0.0-RC4, a lot of dependencies using Lazy<> are notified by ksp that produces a dependency cycle. When marking KOIN_CONFIG_CHECK as false, the error doesn't appear, and I haven't noticed any runtime crashes.

To Reproduce Steps to reproduce the behavior:

  1. In the build.gradle set the flag KOIN_CONFIG_CHECK to true
  2. Create a dependency cycle but solve it with Lazy<>
  3. Compile the app

Expected behavior The error should not appear if the cycle is solved with Lazy<>.

Koin project used and used version (please complete the following information): koin-bom version 4.1.0-Beta5 koin-annotations version 2.0.0-RC4

xertrec avatar Feb 21 '25 12:02 xertrec