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

Support K2 #376

Closed
mgroth0 opened this issue Dec 19, 2023 · 5 comments
Closed

Support K2 #376

mgroth0 opened this issue Dec 19, 2023 · 5 comments

Comments

@mgroth0
Copy link

mgroth0 commented Dec 19, 2023

With Proguard 7.4.1 and Kotlin 2.0.0-Beta2 we get the error "Kotlin versions up to 1.9 are supported."

I am sure that Proguard support for K2 is coming, but I couldn't find an issue or mention of this anywhere. Creating this so I can get notified when it is available.

@timeking
Copy link

timeking commented Apr 8, 2024

@mgroth0 , it seems you are using incorrect gradle kotlin plugin. Try to use 2.0.0-Beta2 (Beta5 now). I see proguard uses version from the dependency.
FYI: it have an error still for Kotlin 2.0.0 metadata, but another one:

Encountered corrupt @kotlin/Metadata for class com/example/Example (version 2.0.0).

@mgroth0
Copy link
Author

mgroth0 commented Apr 10, 2024

Thank you for the update @timeking . I am not sure what you mean about me using the incorrect plugin, at the time I wrote this I was using 2.0.0-Beta2.

So if I understand correctly, you are saying that the "Kotlin versions up to 1.9 are supported." is now fixed, however there is some other issue with K2 now. In that case, I propose we keep this open so we can track when K2 is fully ready.

@EchoEllet
Copy link
Contributor

EchoEllet commented May 24, 2024

It looks like 7.5.0 might already solve this issue but the changes haven't been published yet, if you take a look at Gradle Task section you will see 7.5.0, also in the commits history

Looking forward to seeing the new version.

@mipastgt
Copy link

Is there an ETA for the K2 support now that it has been officially released? It would be nice to be able to build Compose Multiplatform apps again. See: https://kotlinlang.slack.com/archives/C01D6HTPATV/p1716746013470279

@mrjameshamilton
Copy link
Collaborator

ProGuard 7.5 has just been published with Kotlin 2 support.

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

No branches or pull requests

5 participants