okio v3.1.0 Release Notes

  • 2022-04-19

    • Upgrade: [Kotlin 1.6.20][kotlin_1_6_20].
    • New: Support [Hierarchical project structure][hierarchical_projects]. If you're using Okio in a multiplatform project please upgrade your project to Kotlin 1.6.20 (or newer) to take advantage of this. With hierarchical projects it's easier to use properties like FileSystem.SYSTEM that are available on most Okio platforms but not all of them.
    • New: ForwardingSource is now available on all platforms.
    • New: The watchosX64 platform is now supported.
    • Fix: Don't crash in `NSData.toByteString()' when the input is empty.
    • Fix: Support empty ZIP files in FileSystem.openZip().
    • Fix: Throw in canonicalize() of ZIP file systems if the path doesn't exist.
    • Fix: Don't require ZIP files start with a local file header.
    • New: okio.ProtocolException is a new exception type for multiplatform users. (It is aliased to java.net.ProtocolException on JVM platforms).