I’ve created a new GitHub repo called okhttp-icu that’s intended to be a child of the existing okhttp repo. It takes a very tiny subset of the ICU project (currently one function) and packages it as a Kotlin-Multiplatform library.
This new project is small but also incomplete. There’s no tests! And it isn’t actually doing meaningful expect/actual things yet to be a proper multiplatform library. I plan to hook into the built-in ICU features on all the Kotlin platforms that have 'em. Currently I only expect Kotlin/Native on Linux to use the packaged ICU; everything else should be able to get something from the host platform.
It’d be nice to eventually get somebody (JetBrains? ICU?) to take this over and build a proper ICU library for Kotlin/Multiplatform. In the interim this works to unblock OkHttp’s very minimal needs.
y
yschimke
04/12/2023, 9:25 PM
I suspect this is how the tzdata maintainer started out. "it's basically one function, how hard can timezones/unicode be?" :)