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

Justin

10/05/2020, 7:09 PM
Has anyone built (or seen) a Kotlin Multiplatform library for compressing data? I need to compress and decompress strings on iOS and JVM. Both of those platforms seem to have their own GZIP implementations, but if someone has already created something like this, I'd be inclined to check it out before writing it myself.
m

mbonnin

10/05/2020, 7:10 PM
I guess there's something in ktor for gzip content encoding, not sure how reusable that is
j

Justin

10/05/2020, 7:15 PM
Interesting, I'll have a look at that thanks
m

mbonnin

10/05/2020, 7:16 PM
Maybe worth checking
okio
as well. AFAIK, there's a Gzip sink/sources for the JVM. Maybe there's an equivalent for native
If there's not, that'd be a great contribution
r

Robert Jaros

10/05/2020, 7:39 PM
it seems to have support for compression (zip, gzip, 7zip, lzma and others)
but I haven't used it myself
116 Views