• jdemeulenaere

    jdemeulenaere

    2 years ago
    Is there any multiplatform Kotlin drawing or game engine library out there ? 🙂
    jdemeulenaere
    m
    +1
    3 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    2 years ago
    How do i share the same sourceSet between targets? i have common sourceSet with expect declarations and then another sourceSet with actual declarations which I want to compile to two different targets.
    Big Chungus
    p
    2 replies
    Copy to Clipboard
  • s

    steamstreet

    2 years ago
    Are there any known issues in dealing with a multiplatform project and publishing with resolved versions? I use a version resolution strategy, and when I publish to Maven, am getting errors that versions aren’t included. I’m trying to follow the instructions here: https://docs.gradle.org/6.0.1/userguide/publishing_maven.html#publishing_maven:resolved_dependencies but they don’t seem to work correctly with the multiplatform publications (the versions aren’t included and the metadata build won’t publish at all)
    s
    1 replies
    Copy to Clipboard
  • Brendan Weinstein

    Brendan Weinstein

    2 years ago
    Just digging through https://github.com/JetBrains/kotlinconf-app for the first time. Looking at build.gradle.kts in the common module, it makes sense that the source set defined as iosMain maps to the iosMain package, mobileMain maps to the mobileMain package, and commonMain maps to the commonMain package. Which packages do the jvmMain and androidMain sourcesets map to? I see there is one remaining package called 'main' and it has an AndroidManifest.xml file, so I presume the 'main' package maps to the androidMain sourceset. I am searching to see if these sourceset mappings are by convention or defined in code. They appear to be by convention, but the convention seems inconsistent and the androidMain sourceset appears greyed out.
    Brendan Weinstein
    2 replies
    Copy to Clipboard
  • a

    Alexander

    2 years ago
    Cannot find multiplatform arithmetic operations similar to Java's https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#addExact(long,long) Think it would be great to have arithmetic overflow handling for kotlin multiplatform.
    a
    1 replies
    Copy to Clipboard
  • Nikita Khlebushkin

    Nikita Khlebushkin

    2 years ago
    Hello there, I am curious is it possible to make annotation processor for Kotlin Multiplatform at the moment? I found this https://stackoverflow.com/questions/52757881/how-to-write-annotation-processors-for-kotlin-native with the response on October, 2018, but maybe things have changed since then
    Nikita Khlebushkin
    Robert Jaros
    4 replies
    Copy to Clipboard
  • altavir

    altavir

    2 years ago
    Are there any fixes for mutliplatform resource loading problem yet?
    altavir
    Dominaezzz
    3 replies
    Copy to Clipboard
  • b

    basher

    2 years ago
    If I have a Java class that defines a getter like
    getFoo()
    , which gets translated to the
    val
    foo
    in Kotlin, is there a way to write an expect class that captures that? If I do:
    expect class F {
       val foo: Int
    }
    Kotlin (1.3.61) complains that the matching class in Java (via
    actual typealias F = MyJavaClass
    ) doesn't have that property. Is there some kind of annotation I need to use in my
    expect class
    to make this work (so that when
    val foo
    matches up with the Java getter)?
    b
    Dominaezzz
    6 replies
    Copy to Clipboard
  • s

    Slackbot

    2 years ago
    This message was deleted.
    s
    mbonnin
    2 replies
    Copy to Clipboard
  • Kris Wong

    Kris Wong

    2 years ago
    has anyone managed to get mockk working for their common tests?
    Kris Wong
    b
    +2
    23 replies
    Copy to Clipboard