Thread
#multiplatform
    e

    eygraber

    5 months ago
    I just published uri-kmp a uri library for all kmp targets, ported from AOSP's
    Uri
    implementation. Check it out, I'd love to hear your feedback 😄
    Big Chungus

    Big Chungus

    5 months ago
    I wonder why you didn't typealias to android URI if you ported it from there? Would help ease the interop with other android libs
    e

    eygraber

    5 months ago
    Meaning have an expect class with an actual that is a typealias on Android, and an actual that uses the common implementation on other platforms?
    Big Chungus

    Big Chungus

    5 months ago
    Exactly
    This is a recommended approach when porting existing APIs from one platform to mpp
    Good example of that is #compose-desktop
    e

    eygraber

    5 months ago
    Good to know. A few reasons why I might not do that here: 1. I slightly changed the API and implementation 2. It's a platform class on Android, so there could be different behavior depending on the version of Android being used 3. It's a relatively small and simple class I'll have to give all that some more thought.
    David Nedrow

    David Nedrow

    5 months ago
    I assume
    implementation("com.eygraber:uri-kmp:0.0.3")
    goes in commonMain?
    e

    eygraber

    5 months ago
    That's correct. Is there an issue with that?
    David Nedrow

    David Nedrow

    5 months ago
    Nope, just wasn’t clear from the README.md
    e

    eygraber

    5 months ago
    Good point, I copied that from one of my other projects. I'll update the README
    Big Chungus

    Big Chungus

    5 months ago
    That artefact can go into jsMain jvmMain, etc... too. Gradle metadata will resolve it just fine.