• o

    Ola Adolfsson

    2 years ago
    Hi all, is there a best practise to publish artefacts from mutiplatform projects? For now we’re only consuming the js target but have plans to also extend to other targets (android, etc.).
    o
    2 replies
    Copy to Clipboard
  • j

    Joffrey

    2 years ago
    Hi guys, if I compile with jvm target 8 or use java 8 dependencies for my JVM artifact in a multiplatform project, is it usable anyway from Android? Do I need to add an android-specific target?
    j
    m
    13 replies
    Copy to Clipboard
  • Kris Wong

    Kris Wong

    2 years ago
    the workflow to use cocoapods dependencies in a KMP project seems quite odd. who is doing this? did you just create a shell project in Xcode so that you could build your KMP framework?
    Kris Wong
    alex009
    12 replies
    Copy to Clipboard
  • mbonnin

    mbonnin

    2 years ago
    Can I have a regular "android" module depend on a "multiplatform" module (with a jvm target) using something like
    implementation(project("lib"))
    ? That doesn't seem to work.
    mbonnin
    Kris Wong
    +2
    12 replies
    Copy to Clipboard
  • c

    Chilli

    2 years ago
    It seems that despite kotlin.collections.mutableSetOf is available on all platforms, it's not possible to access it from commonMain—why is that?
    c
    Kris Wong
    +1
    9 replies
    Copy to Clipboard
  • d

    dimsuz

    2 years ago
    Hi! I can see that
    runBlocking
    is not available for common code. But what If I legitimately want to block until coroutine completes? For example I have a ktor websocket and I want to wait until it disconnects before exiting the app. What do people do? Should I create expect/actual runBlocking?
    d
    John O'Reilly
    3 replies
    Copy to Clipboard
  • p

    pvasa

    2 years ago
    Hello everyone, I am trying to setup a mpp project with multi-module setup. First question, is it yet possible for iOS app to depend on multiple mpp modules? I have this kind of dependency tree,
    androidApp (Android app)
    ↓ impl
    repository (mpp lib)
    ___________ | api ↓impl | ____`network (mpp lib)` ↓ ↓impl
    data (mpp lib)
    p
    Kris Wong
    +1
    27 replies
    Copy to Clipboard
  • c

    curioustechizen

    2 years ago
    Hello everyone, what's the latest on debugging multiplatform code from the iOS side? Touchlab's kotlin XCode plugin allows you to view Kotlin source but we don't have our iOS and kotlin projects colocated. Is there a way to get source maps from the ios framework so that I can set breakpoints in XCode and step into the kotlin side?
    c
    h
    +1
    14 replies
    Copy to Clipboard
  • c

    curioustechizen

    2 years ago
    Just to add to my previous points, this is my structure. I see some examples where debugging works (either in AppCode or XCode) with everything in a single repo, but not with this kind of split structure
    - my-app-android/
        - app/
        - multiplatform/
            - build.gradle(includes multiplatform plugin and cocoapods plugin)
            - commonMain/, androidMain/, iosMain/
            - multiplatform.podspec
    - my-app-ios/
        - Podfile (points to ../my-app-android/multiplatform/multiplatform.podspec)
        - .xcworkspace
        - source code/
    c
    kpgalligan
    4 replies
    Copy to Clipboard
  • w

    Wolf Logan

    2 years ago
    Looking for advice on structuring my multiplatform project to help manage JSON contracts. I've got a project with three components: a server-side (JVM), a client-side (JS), and a common library. I have certain REST services exposed on the server side that are consumed by the client side. I want to standardise the JSON serialisation of types that are passed across the REST endpoints. Is there a good way to make use of the common library to enforce serialisation so that I don't have to have multiple type declarations (that can get out of sync)?
    w
    c
    +2
    11 replies
    Copy to Clipboard