• Artur Matsehor

    Artur Matsehor

    1 year ago
    Hi Is there a way to make data classes with default parameter values work properly in Swift? Example:
    data class State @JvmOverloads constructor(
        val loading: Boolean = false,
        val data: ResponseBody? = null,
        val error: ApiError? = null
    )
    In Swift, it is resolved to
    init(loading: Bool, data: ResponseBody?, error: ApiError?)
    Neither with overloads or default values
    Artur Matsehor
    d
    +1
    10 replies
    Copy to Clipboard
  • d

    darkmoon_uk

    1 year ago
    Is this a bug or an expected limitation with inline classes vs. companion objects vs. Parcelable?
    d
    Sebastian Sellmair [JB]
    2 replies
    Copy to Clipboard
  • Robert Jaros

    Robert Jaros

    1 year ago
    Anyone have managed to use
    @JsonTypeInfo
    from jackson in the common source of MPP project? I have tried to create expected annotation like this:
    expect annotation class JsonTypeInfo(val use: Id, val property: String) {
        enum class Id {
            CLASS
        }
    }
    but
    actual typealias JsonTypeInfo = com.fasterxml.jackson.annotation.JsonTypeInfo
    doesn't compile (fails with the Id enum class)
    Robert Jaros
    1 replies
    Copy to Clipboard
  • rnett

    rnett

    1 year ago
    I'm having a weird dependency issue when I try to include a multiplatform project in another multiplatform project's js source set (both projects use JS IR) via
    implementation(project(...))
    . The dependency block looks like:
    val jsMain by getting {
        dependencies {
            implementation(project(":krosstalk-ktor-client"))
        }
    }
    but causes (in
    kotlinNpmInstall
    )
    Error: Couldn't find package "krosstalk-krosstalk-ktor-client@1.0.3-ALPHA" required by "krosstalk-fullstack-sample@1.0.3-ALPHA" on the "npm" registry.
        at MessageError.ExtendableBuiltin (C:\Users\jimne\.gradle\yarn\yarn-v1.22.4\lib\cli.js:721:66)
        at new MessageError (C:\Users\jimne\.gradle\yarn\yarn-v1.22.4\lib\cli.js:750:123)
        at PackageRequest.<anonymous> (C:\Users\jimne\.gradle\yarn\yarn-v1.22.4\lib\cli.js:36539:17)
        at Generator.throw (<anonymous>)
        at step (C:\Users\jimne\.gradle\yarn\yarn-v1.22.4\lib\cli.js:310:30)
        at C:\Users\jimne\.gradle\yarn\yarn-v1.22.4\lib\cli.js:323:13
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
    This was working fine before I published the package, and it works fine when I include it without using
    project
    (i.e.
    implementation("com.rnett.krosstalk:krosstalk-ktor-client:$krosstalk_version")
    )
    rnett
    2 replies
    Copy to Clipboard
  • Aleksandr Ivanov

    Aleksandr Ivanov

    1 year ago
    Hi there, Not found an answer - now I’m building a library for android/ios and plan to distribute it for iOS via cocoapods. I managed to made that locally as wrote in documentations. But what if I want to distribute it via remote repository. How to do that? And is it possible to do taht without have a link to target application podfile inside library. It looks weird to have it here, especially in case I have no knowledge about who will use ny project.
    Aleksandr Ivanov
    Siggi Gunnarss
    +2
    10 replies
    Copy to Clipboard
  • Liliia

    Liliia

    1 year ago
    Just crossposting here great news from KMM plugin: now we have a compatibility with Xcode 12 (iOS 14) on Android Studios 4.1 and 4.2. The update is also compatible with Xcode 11.3.1, as well as both Kotlin 1.4.10 and 1.4.20-M1. Looking forward to hear your feedback! 🙂
    Liliia
    1 replies
    Copy to Clipboard
  • rsetkus

    rsetkus

    1 year ago
    Hi there. Just created an empty Kotlin Multiplatform Mobile library project and there is no gradlew or gradlew.bat even though 'Use Gradle wrapper' option selected. Is it normal? Also, I can see that gradle->wrapper was created.
    rsetkus
    a
    +2
    12 replies
    Copy to Clipboard
  • Justin

    Justin

    1 year ago
    Has anyone built (or seen) a Kotlin Multiplatform library for compressing data? I need to compress and decompress strings on iOS and JVM. Both of those platforms seem to have their own GZIP implementations, but if someone has already created something like this, I'd be inclined to check it out before writing it myself.
    Justin
    mbonnin
    +1
    7 replies
    Copy to Clipboard
  • dambakk

    dambakk

    1 year ago
    Are there any secure storage solutions for KMP? Doesn’t look like https://github.com/netguru/Kissme is maintained anymore.
    dambakk
    etolstoy
    2 replies
    Copy to Clipboard
  • m

    mike.holler

    1 year ago
    I'm new to Kotlin Multiplatform. Is there a good place to find multi-platform compatible libraries? Some wiki or community-curated list? I know about the official kotlinx projects, but I've had a hard time discovering libraries and tools available in the ecosystem outside of the official set.
    m
    s
    +4
    17 replies
    Copy to Clipboard