• louiscad

    louiscad

    3 years ago
    Is the process of publishing a MPP library that supports both macOS and Windows documented somewhere? I know its something kotlinx.coroutines does, but the gradle setup there is quite complicated to me, plus I'm less and less familiar with Groovy based gradle as I use almost only Gradle Kotlin DSL since last year. I'd like to ensure my multiplatform publication can resolve using gradle metadata in the consumer projects dependeing on the targets, but I can't run the usual publishing task since I won't be able to compile for Windows on my Mac. A clear guidance or an example I can test with a dummy bintray repo, would be helpful.
    louiscad
    Dominaezzz
    +3
    26 replies
    Copy to Clipboard
  • y

    Yao Zhuanzhuan

    3 years ago
    How can I use protobuf generated java code in JVM target in multiplatform ?
    y
    1 replies
    Copy to Clipboard
  • Jan Stoltman

    Jan Stoltman

    3 years ago
    I'm trying to use kotlin
    Result
    in my K/Mpp project and I'm facing a lot of
    Result cannot be used as a return type
    warnings.
    freeCompilerArgs = ["-Xallow-result-return-type"]
    makes it so it can compile just fine, but the warnings are still there which is pretty annoying. Am I missing some other flag which would me allow to get rid of these IDE warnings?
    Jan Stoltman
    r
    +2
    19 replies
    Copy to Clipboard
  • r

    robstoll

    3 years ago
    what is the current state of the new multiplatform plugin. is it possible to have several JVM modules (say jvm, jdk8, jdk11) and share some code?
    r
    Dominaezzz
    5 replies
    Copy to Clipboard
  • Kris Wong

    Kris Wong

    3 years ago
    does anyone have an example of an MPP (not an app project) w/ an android library target?
    Kris Wong
    kpgalligan
    +2
    45 replies
    Copy to Clipboard
  • Kris Wong

    Kris Wong

    3 years ago
    let's say you wanted to create an iOS module with some UI that is built upon a kotlin MPP. and let's say you needed to integrate that module with an iOS app that already integrates a kotlin MPP. any thoughts on how to achieve something like that?
    Kris Wong
    s
    5 replies
    Copy to Clipboard
  • groostav

    groostav

    3 years ago
    Hey guys, if I wanted to call some kotlin-native compiled libraries from kotlin-jvm, is JNA still the best way to do it?
    groostav
    s
    3 replies
    Copy to Clipboard
  • mbonnin

    mbonnin

    3 years ago
    What would be the build.gradle.kts equivalent of
    androidMain {
                dependencies {
                    implementation kotlin("stdlib")
                }
            }
    ?
    mbonnin
    Dominaezzz
    7 replies
    Copy to Clipboard
  • kpgalligan

    kpgalligan

    3 years ago
    Using inline classes with expect doesn’t let me use
    val
    with “Inline class cannot have properties with backing fields”, even if all implementations provide getters. Is there a way to do this? Next step is to try the vals as extensions.
    kpgalligan
    r
    6 replies
    Copy to Clipboard
  • p

    Patrick Jackson

    3 years ago
    Anyone know what happened to KotlinxSerializer in Ktor 1.2.2? Previously I could do:
    HttpClient {
          install(JsonFeature) {
               serializer = KotlinxSerializer()
    But after updating the KotlinxSerializer class is not found
    p
    russhwolf
    +2
    4 replies
    Copy to Clipboard