How do you handle inline classes? On 1.4.x we've e...
# multiplatform
p
How do you handle inline classes? On 1.4.x we've exposed the kotlin duration to ios. But now with the changes of the internal representation from millis to long the exposed value isn't usable any longer. I thought about `actual typealias`ing it for ios to a regular class and keep duration for android but that won't work either because you'd need to chose between an interface and a class.
l
How is it no longer usable?
p
Well in objective c, inline classes just get exported as the value they wrap
l
Just like in Java
p
l
Is it actually always in nanoseconds?
p
Yes it is
But now with 1.5 it was changed to long
So now having kotlin duration in your public api is unusable from obj-c
l
Well, you can add overloads for Obj-C, or if the type is not an interface, extensions will also work and be seen like members in Swift/Obj-C.
(If it's an interface, you might want to make it a stateless abstract class instead)
👍 1
n
> So now having kotlin duration in your public api is unusable from obj-c I guess this is still an issue? We're just getting Int64 on the iOS side which, depending on internals, is either millis or nanos with an extra unit discriminator in it