• Venkat , Bangalore , India

    Venkat , Bangalore , India

    2 years ago
    Hi All, m new to KMP, facing some issue... I have used expect/actual classes... but when i extracted the generated aar for android, the actual class is missing, i still see expect class in the classes.jar... Not sure what i am missing.. Appreciate if someone can help me?
    Venkat , Bangalore , India
    Jolas
    2 replies
    Copy to Clipboard
  • Davide Giuseppe Farella

    Davide Giuseppe Farella

    2 years ago
    Is there a way to automatically fix names for Js? Like
    fun `hello world`()
    I have to set
    @JsName
    manually
    Davide Giuseppe Farella
    Arkadii Ivanov
    3 replies
    Copy to Clipboard
  • a

    Andrew

    2 years ago
    For implementing a date object in KMP is the best solution so far to make a "expect class" with full implementation on each platform?
    a
    e
    +2
    8 replies
    Copy to Clipboard
  • s

    Slackbot

    2 years ago
    This message was deleted.
    s
    1 replies
    Copy to Clipboard
  • g

    GarouDan

    2 years ago
    Hi, Do you know if we have something like
    System.getenv()
    jvm method but that works for
    js
    and
    native
    as well?
    g
    mbonnin
    10 replies
    Copy to Clipboard
  • Justin

    Justin

    2 years ago
  • a

    Andrew

    2 years ago
    When trying to run unit tests in IntelliJ it says "no tasks available". A solution I found was to set the tests to run with IntelliJ instead of gradle. This runs them but now its failing to load resources from the ClassLoader which is needed for some of the tests. When I run the tests via gradle script it appears to work properly. Does any of this sound like known issues, any workarounds? Trying to convert a jvm library to KMP but need to get the basics working before doing any major refactors to more into common.
    a
    1 replies
    Copy to Clipboard
  • aleksey.tomin

    aleksey.tomin

    2 years ago
    @e5l I try to move my OSX project to 1.4-M2 and 1.3-1.4-M2 With this code
    val kotlinVersion = "1.4-M2"
        val ktorVersion = "1.3.2-1.4-M2"
        sourceSets {
            commonMain {
                dependencies {
                    implementation(kotlin("stdlib-common"))
                    implementation("io.ktor:ktor-client-core:${ktorVersion}")
        }.  }.  }
    I have error
    e: Could not find "io.ktor:ktor-io-cinterop-bits" in [/Users/atomin/Documents/iq/xpoint-sdk, /Users/atomin/.konan/klib, /Users/atomin/.konan/kotlin-native-prebuilt-macos-1.4-M2/klib/common, /Users/atomin/.konan/kotlin-native-prebuilt-macos-1.4-M2/klib/platform/macos_x64].
    I try to add
    val macosMain by getting {
                dependencies {
                    implementation("io.ktor:ktor-client-core:${ktorVersion}")
                }
            }
    but nothing was changed. I try to fix something like https://github.com/ktorio/ktor/issues/943
    macosX64("macos") {
            binaries.all {
                linkerOpts = mutableListOf("-L/usr/local/opt/curl/lib", "-I/usr/local/opt/curl/include/curl", "-lcurl")
            }
        }
    but error still active.
    $ ls /usr/local/opt/curl/lib
    libcurl.4.dylib	libcurl.a	libcurl.dylib	pkgconfig
    $ ls /usr/local/opt/curl/include/curl
    curl.h		curlver.h	easy.h		mprintf.h	multi.h		stdcheaders.h	system.h	typecheck-gcc.h	urlapi.h
    aleksey.tomin
    e5l
    8 replies
    Copy to Clipboard
  • a

    Alexander Larsson

    2 years ago
    Hey, anyone know of a way to detect if you are running your tests on Android device or JVM?
    a
    aleksey.tomin
    5 replies
    Copy to Clipboard
  • Siggi Gunnarss

    Siggi Gunnarss

    2 years ago
    Hello all. Does anyone have a link to a large gradle android/ios mpp project? Most samples are rather small. I'm looking for something that has multiplatform modules depending on other multiplatform modules?
    Siggi Gunnarss
    Hamza
    +1
    7 replies
    Copy to Clipboard