• z

    zsperske

    2 years ago
    is anyone here familiar with using KodeIn in their multiplatform projects?
    z
    k
    2 replies
    Copy to Clipboard
  • zalewski.se

    zalewski.se

    2 years ago
    I’m having an KMP project with many kmp modules inside, I’m facing weird behavior when I edit something in module
    A
    , the changes aren’t reflected directly in another module
    B
    that consumes it. Also when I try to navigate from
    B
    to
    A
    it takes me to the
    .jar
    file of this module. Has anyone had similar problems?
    zalewski.se
    mbonnin
    +1
    7 replies
    Copy to Clipboard
  • t

    Theo

    2 years ago
    anyone worked with C inerop on both iOS and Android through KMP? are there some docs or something I can follow?
    t
    gildor
    +1
    6 replies
    Copy to Clipboard
  • b

    bsimmons

    2 years ago
    Is there a way to run .java tests in a kotlin MPP? I am trying to test that my Java interop interfaces are correct. (Things like @JvmStatic @JvmOverloads.) I can't seems to get them running in jvmTests directory. Perhaps I should just add tests to a separate Java project?
    b
    Kris Wong
    2 replies
    Copy to Clipboard
  • p

    pardom

    2 years ago
    I would use that set to filter this:
    targets {
        presets
            .filterIsInstance<AbstractKotlinNativeTargetPreset<*>>()
            .filter { it in supportedTargets }
            .forEach { preset ->
                targetFromPreset(preset, preset.name) {
                    compilations["main"].source(sourceSets["nativeMain"])
                    compilations["test"].source(sourceSets["nativeTest"])
                }
            }
    }
    p
    russhwolf
    +1
    5 replies
    Copy to Clipboard
  • a

    Alexander Larsson

    2 years ago
    What is the best practice for testing common code on Android? In my Kotlin MPP the
    allTests
    task runs tests only on iOS (specifically a task called
    iosSimTest
    ). If you write Android specific tests they run on android successfully by running the task called
    testDebugUnitTest
    . I cannot figure out how to run the common test cases on Android. Am I supposed to run them on JVM and it is not possible to run on Android? I currently do not have a JVM target set up since it is an iOS/Android project only.
    a
    1 replies
    Copy to Clipboard
  • akapanina

    akapanina

    2 years ago
    Hi folks! I’m Anastasiia, product manager in Kotlin Multiplatform team and I have a funny question for you today 🙂 Have you had cases when strict memory model in Kotlin/Native actually helped you find potential (or real) bugs in Kotlin/JVM part of your Multiplatform project? If yes - please, leave reaction under that message. I’d like to ask you a couple of questions about your case in direct messages. Thanks! p.s. If you’d like to share your story in thread - it’s fine too 🙂
    akapanina
    k
    +4
    11 replies
    Copy to Clipboard
  • p

    pardom

    2 years ago
    I’m splitting out a KMP project into multiple feature/layer modules and perhaps I don’t have my Gradle dependencies setup correctly, but dependencies seem pretty slow to update. For example, in the graph
    A
    ->
    B
    ->
    C
    Changing an interface in
    C
    isn’t reflected in
    A
    or
    B
    as in a JVM project. Some combination of reimporting, invalidating, etc will get it working again, but I haven’t narrowed down the correct workflow. Has someone experienced and/or solved this?
    p
    zalewski.se
    2 replies
    Copy to Clipboard
  • m

    Mananpoddarm

    2 years ago
    Hi everyone. I am using kotlin multiplatform to generate android libraries. what is the best way to debug it though. Currently, I have to build the .jar file, put it in the android app and run the android app to see the log statements. Is there any better way to do it?
    m
    Kris Wong
    +1
    3 replies
    Copy to Clipboard
  • Elka

    Elka

    2 years ago
    Hello, having Android studio IDE errors but builds are working fine.  Here's the structure: Repository1 is composed of • Android module
    :library
    • A Kotlin MP module targeting iOS and Android.
    :core
    . • The Android module
    :library
    is dependent on
    :core
    . In
    build.gradle (library)
    , I added
    api project(":core")
    to the dependencies. Repository2 is composed • Android App
    :app
    • Common Kotlin MP module targeting iOS and Android
    :common
    • The
    :app
    is dependent on
    :library
    . In
    build.gradle (app)
    I added
    implementation linkto:Library
    • The
    :common
    module is dependent only on
    :core
    . In
    build.gradle (common)
    I added
    api linkto:core
    . The build works fine but I am getting this IDE error: "Cannot access class X, Check your module classpath for missing or conflicting dependencies". X is a class in
    :core
    Any idea on how to solve this as the IDE errors are very annoying... Kotlin 1.3.72
    Elka
    Liliia
    4 replies
    Copy to Clipboard