gbtb16 / kiwi

A simple compile-time dependency injection library for Dart and Flutter
MIT License
350 stars 51 forks source link

kiwi_generator cannot be used with newer analyzers #117

Open bummsa opened 3 weeks ago

bummsa commented 3 weeks ago

Hi all,

I have problems when I try to use realm library with realm (and realm_generator) because of the version mismatch for the analyzer lib.

Because realm_generator >=1.6.1 depends on analyzer ^6.0.0 and kiwi_generator 4.1.0 depends on analyzer ^5.4.0, realm_generator >=1.6.1 is incompatible with kiwi_generator 4.1.0. So, because shared_proj depends on both kiwi_generator 4.1.0 and realm_generator 3.0.0, version solving failed.

Cheers Bummsa

jk-hub commented 1 week ago

the same issue have you found any solution to it ?

bummsa commented 1 week ago

No, unfortunately not, unless to write the generated codes manually

jk-hub commented 1 week ago

hope the new Kiwi generate will also get an update

gbtb16 commented 1 week ago

Hi @bummsa! Thanks for your contribution to Kiwi.

I recently upgraded kiwi to 5.0 and was finalizing some changes to kiwi_generator to upgrade it to 5.0 as well. This would include upgrading all dependencies.

However, since some people have expressed a need for this, I'll release the version 4.2.0 with the new dependency update, and in the future release 5.0 with the other changes I've been working on.

jk-hub commented 1 week ago

@gbtb16 when is the new is coming out for kiwi_generator

bummsa commented 1 week ago

@gbtb16 That sounds great! When can we expect version 4.2?

gbtb16 commented 4 days ago

@bummsa, I'll update it today.

Once it's pushed, I'll tag you in a comment below so we can try to fix your problem as quickly as possible.