does anyone know how to make this <https://discuss...
# multiplatform
p
does anyone know how to make this https://discuss.kotlinlang.org/t/feature-request-typealias-for-expected-types/20054 work? any other ideas?
k
For those exact classes? The approach generally works. The abstract part I was unaware of: “In Android,
Uri
is an abstract class, and an abstract class cannot currently actualize a final/open class.”
p
yeah that's correct i'm running into compiling issues
i'm going to try to use Ktor's url
it feels like i can't create Ktor
Url
from platform side, do you know? would using
Uri
on android and
NSURL
on ios resolve as ktor
Url
, for context i'm exposing
Url
in
commonMain
in a public api @kpgalligan
it seems that's not an option unfortunately
it seems i'll need to work with
String