• xxfast

    xxfast

    1 year ago
    Hi all - I used KMM plugin to generate a multi-platform app. android version builds and runs just fine, but ios run configuration is giving trouble. I can launch xcode and builds and run other apps just fine 🤔 anyone knows what is going on?
    xxfast
    o
    2 replies
    Copy to Clipboard
  • rnett

    rnett

    1 year ago
    A bit of a weird question, but I have a multiplatform project with two JVM source sets and a common source set. I'm using expect actual, so I can't split them into separate projects. I'm trying to depend on one source set. This is easy enough to do via the artifact id, but does not seem possible to do via a gradle
    project
    dependency, which is what I need. Is there any way to do this?
    rnett
    russhwolf
    3 replies
    Copy to Clipboard
  • Vitor Prado

    Vitor Prado

    1 year ago
    anyone using compose and swiftui to help me? (I have a question about theming in swiftui)
    Vitor Prado
    1 replies
    Copy to Clipboard
  • b

    Berkan

    1 year ago
    Exception in thread "main" java.lang.Error: /var/folders/bj/tngfcb114wx5jxhv1y6b0lz40000gn/T/8243693674587240663.m:1:9: fatal error: module 'DependencyX' not found
    is part of the stacktrace
    b
    1 replies
    Copy to Clipboard
  • a

    andrewreitz

    1 year ago
    Hi, I have a multiplatfrom application project setup with
    jvm()
    as one of the targets. When I run
    gradlew tasks
    I don’t see any way to execute the jvm project. I see the other run tasks for native and js, is there something I need to do to setup the jvm one to be executable?
    a
    Big Chungus
    33 replies
    Copy to Clipboard
  • xxfast

    xxfast

    1 year ago
    Any guides on using okio-multiplatform? cant seems to find any usage docs
    xxfast
    russhwolf
    2 replies
    Copy to Clipboard
  • xxfast

    xxfast

    1 year ago
    androidAndroidTest
    .. ha
    xxfast
    Sebastian Sellmair [JB]
    +1
    4 replies
    Copy to Clipboard
  • m

    Michal Klimczak

    1 year ago
    This might be more of a multiplatform question: how do I extend
    AVAudioPlayerDelegateProtocol
    and not go insane? https://kotlinlang.slack.com/archives/C3SGXARS6/p1619544378255600
    m
    krzysztof
    3 replies
    Copy to Clipboard
  • b

    Berkan

    1 year ago
    Are all cocoapods dependencies supposed to work in KMP? For example AFNetworking works and its .knm file is generated. But when I add some other random dependency, its .knm file is completely empty
    b
    louiscad
    26 replies
    Copy to Clipboard
  • Ryan Simon

    Ryan Simon

    1 year ago
    hey all, I'm running into an interesting challenge trying to setup a multi-module multiplatform project. so my goal is to have one module called
    :core
    and one module called
    :auth
    .
    :auth
    depends on
    :core
    . I also want a Koin setup where
    :auth
    and
    :core
    Koin dependencies can be initialized on each client app. this would allow me to share a network implementation from each client across both modules the problem is that when trying to setup the Koin dependencies on iOS, each module has its own version of the
    Network
    interface.
    :auth
    refers to it as
    AuthCoreNetwork
    and
    :core
    refers to it as
    CoreNetwork
    . with this in mind, we can't properly setup the
    Network
    dependency as the interfaces are incompatible this setup works fine on Android side, but not on iOS. any idea what I could do to solve for this, if anything? code sample of what I'm trying to do on the iOS side below
    func startKoin() {
        NSLog("Hi")
        let doOnStartup = { NSLog("Hello from iOS/Swift!") }
        let network = NetworkManagerImpl()
        
        Core.KoinIosKt.doInitKoinIos(doOnStartup: doOnStartup, network: network)
        Auth.KoinIosKt.doInitKoinIos(doOnStartup: doOnStartup, network: network) // doesn't work because the network instance doesn't match up
    }
    Ryan Simon
    xxfast
    +1
    12 replies
    Copy to Clipboard