-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Prepare for K2 #349
Prepare for K2 #349
Conversation
kotlin-inject-runtime/src/nativeMain/kotlin/me/tatarka/inject/internal/LazyMap.kt
Outdated
Show resolved
Hide resolved
kotlin-inject-compiler/test/src/main/kotlin/me/tatarka/inject/ProjectCompiler.kt
Outdated
Show resolved
Hide resolved
The integration tests got kind of screwy. The issue is that currently KSP is configured to generate code for each platform. It is also configured to generate code for In K2, common source sets can't see code from platform source sets, so the tests in
To get around that I separated Because it's using The only other solution that would work would be to have code and tests duplicated for each platform. You can't make multiple source sets out of the same directory, so there would probably have to be a script that generates them at runtime, or do some kind of trickery with symlinks. |
The integration test setup is known to be kludge, it's only set up that way because I couldn't find another way to make it work.
👍 That feels right to me and closer to the ideal way I wanted it set up. |
@evant are you OK with extracting the integration test changes and merging into |
I was just going to ask to do that, these changes are quite large and it would be easier to review if the integration test changes were pulled out |
f5f77ca
to
e8aacb1
Compare
b137186
to
3c9860b
Compare
dc34e1f
to
65a7764
Compare
12d4edf
to
7767442
Compare
@evant this should be good to go, other than the question of whether the library should impose Kotlin 2.0 on consumers. |
I think I want to get a release out with the current changes before merging this but happy to do right after |
And so that's blocking the current release? |
Released, so this can be moved out of draft |
Was investigating using KSP 2 and figured I'd start tracking this separate from that.