okio v2.10.0 Release Notes
-
2021-01-07
- ๐ New: Support Windows (mingwX64) in multiplatform.
- ๐ New: Support watchOS (watchosArm32, watchosArm64, watchosX86) in multiplatform.
- ๐ New: Support
HashingSource
,HashingSink
, buffer hash functions, andUnsafeCursor
on non-JVM platforms. Previously these were all JVM-only. - ๐ New: Implement
Closeable
onSink
andSource
on non-JVM platforms. Okio now includes a multiplatformokio.Closeable
interface and correspondinguse {}
extension. Closing resources when you're done with them shouldn't be JVM-only! - ๐ New:
Sink.hashingSink
andSource.hashingSource
functions that acceptjava.security.MessageDigest
andjavax.crypto.Mac
instances. Use these when your hash function isn't built-in. - ๐ Fix: Don't crash with a
ShortBufferException
inCipherSink
andCipherSource
on Android. (Android may throw aShortBufferException
even if the buffer is not too short. We now avoid this problem!) - Upgrade: [Kotlin 1.4.20][kotlin_1_4_20].