https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
v

Vladimir Vainer

09/28/2023, 6:19 AM
Can i use platform.zlib.* in Kotlin Multiplatform project? I've read that kotlin by default provides popular libraries for most platforms, and zlib is one of them. But when i add: import platform.zlib.* in my commonMain source, i get unresolved reference platform
l

Landry Norris

09/28/2023, 12:32 PM
The platform libraries are often a Kotlin/Native feature. Do you have a jvm or android source set? If so, then you'd want to expect/actual into the best jvm zlib library.
v

Vladimir Vainer

09/29/2023, 10:03 AM
What do you mean by
best jvm zlib
library?
l

Landry Norris

09/29/2023, 2:12 PM
Whichever one works best for your use case
2 Views