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, and UnsafeCursor on non-JVM platforms. Previously these were all JVM-only.
    • ๐Ÿ†• New: Implement Closeable on Sink and Source on non-JVM platforms. Okio now includes a multiplatform okio.Closeable interface and corresponding use {} extension. Closing resources when you're done with them shouldn't be JVM-only!
    • ๐Ÿ†• New: Sink.hashingSink and Source.hashingSource functions that accept java.security.MessageDigest and javax.crypto.Mac instances. Use these when your hash function isn't built-in.
    • ๐Ÿ›  Fix: Don't crash with a ShortBufferException in CipherSink and CipherSource on Android. (Android may throw a ShortBufferException even if the buffer is not too short. We now avoid this problem!)
    • Upgrade: [Kotlin 1.4.20][kotlin_1_4_20].