Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KMP Multi-Module Project Breaks when Extending Base Class Multiple times in Multiple Module - 1.4.0-RC4 #167

Open
Deorigami opened this issue Sep 8, 2024 · 4 comments
Labels
question Further information is requested

Comments

@Deorigami
Copy link

I have MultiModule KMP Project
So i have BaseViewModel class in app_core module
then i implement app_core module in every feature_module, then i extend BaseViewModel class on every ViewModel i have

But now i got this error when running the project:

Type org.koin.ksp.generated.KoinDefAppEyedeaCoreBaseBaseScreenModel is defined multiple times:

on this version everything works fine

koin = "4.0.0-RC1"
koin-annotations = "1.4.0-RC3"
koin-compose = "4.0.0-RC1"

then i upgrade the deps into this version and got this compile error

koin = "4.0.0-RC2"
koin-annotations = "1.4.0-RC4"
koin-compose = "4.0.0-RC2"

@arnaudgiuliani
Copy link
Member

For now you can't use Koin 4.0.0 and Koin Annotations 1.4. last is still in 1.9.X

@arnaudgiuliani arnaudgiuliani added Workaround status:wontfix This will not be worked on and removed Workaround labels Sep 17, 2024
@stale stale bot removed the status:wontfix This will not be worked on label Sep 17, 2024
@arnaudgiuliani arnaudgiuliani added the question Further information is requested label Sep 17, 2024
@master-lzh
Copy link

目前您不能使用 Koin 4.0.0 和 Koin Annotations 1.4。最后仍然是 1.9.X

The same problem, any solution to solve it?

@master-lzh
Copy link

Would it be possible to provide a KOIN_GENERATE_META parameter to avoid generating the KoinMeta-xxxxxxx.kt file, which seem to do nothing

@Deorigami
Copy link
Author

any update or work around for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants