I wrote in the thread above and I might revisit in...
# compose-desktop
n
I wrote in the thread above and I might revisit in regards to putting in ProGuard; but I feel my issue is possible not (but still slightly related). I have my KMP app, it works fine from Android studio when I run Desktop/Android/Web. So the annotations are in place and the plugins are there (as can be seen in images provided). Why might this issue pop up? Will I require Proguard for an pretty straightforward app with mostly custom classes?
e
android libraries can ship with predefined proguard rules to help them work and AGP will merge the rules from all your dependencies, but there's no such standard for regular JVM libraries, so you have to do all the setup in your project
in this case, it is known that serializer lookup at runtime will be broken by proguard/r8 without https://github.com/Kotlin/kotlinx.serialization/tree/master/rules
n
ok, thank you for pointing that out - I'm clearly missing some details when scouring for the answer. So Serializer is taken care of already only for Android. But if I would like to disable proguard (
obfuscate = false
) I still get the issues, and if I apply a proguard file with the content of the common.pro file you linked; I'm not sure what I need to do. I have a setup targeting all possible platforms in this setup. Is it possible to apply proguard to a some common, or do the different platforms need a proguard each?
e
even without obfuscation, it's performing shrinking. those rules should be enough to keep serializers on classes you're using, so maybe they're not applying right…
☝️ 1
proguard is JVM only