Jesse and Jake, congrats on the forthcoming offspr...
# squarelibraries
j
Jesse and Jake, congrats on the forthcoming offspring (just watched your podcast interview). I wanted to check, what might be the expected timeframe for a future Okio release that could include this PR? I'm in the process of tying up some remaining loose ends for releasing my KMP library, one of those being using a public release of Okio rather than local maven build. Also, I'd be happy to explore options for encapsulating these extensions in a companion object as you mentioned. What would be the best class location, with
Source
being an interface? Would it make sense for both
NSInputStream.source()
and
BufferedSource.inputStream()
to live in
BufferedSource
?
j
Oh hey! Sorry for letting that languish
That’s on me; I’m a bit oversubscribed at the moment
Here’s an offer I think I can keep? Let me try to land it all over the holidays?
I’d like to spend a couple days playing with this and with the iOS I/O streams, just to feel like I could understand it and explain it to somebody if I needed to
(I like to hack on stuff like this when I have downtime, and I’m hoping to get some soon)
j
Hey, thanks, Jesse. That would be awesome. I know how it can be, juggling things at times. Thanks for be willing to dedicate time for this.
j
I think we determined that moving to a companion object doesn't actually help with the Objective-C bridge as it shows up as a separate type? I would have to refresh my memory.
The ByteString APIs were moved to the companion, so if it turns out that statement is true then we should revert that change before release, too.
j
I’ve had that on my to-do list and I’ve kept pushing it back
Lemme try to make good on that
j
Thank you, Jesse. Much appreciated. My goal is to have all the remaining loose ends tied up to release my library when Kotlin 1.9 is out, at the latest. This feature in Okio is one of only a few blockers.
e
Looks like this PR is still open, is there anything that needs to happen to get it moving? We’re interested in using this on iOS
j
The feature has been added to kotlinx-io, which is based on okio. The library is still in alpha, but depending on your use case, may be usable. I ended up migrating my library to kotlinx-io.
👀 1
j
I’d like to backport Jeff’s PR from kotlinx-io
I don’t know the iOS I/O APIs very well and didn’t feel qualified to support 'em
Since then I’ve learned iOS a bit better!
j
I resolved the PR conflicts, so it's up to date with master.
j
nice, ty