• birdsofparadise

    birdsofparadise

    1 year ago
    Anyone using MP, Android Compose, and running into an issues with the
    remember
    API in your "shared" module?
    birdsofparadise
    Thomas
    2 replies
    Copy to Clipboard
  • dasralph

    dasralph

    1 year ago
    I want to use Kotlin JS to create a JavaScript library with TypeScript declaration files (*.d.ts). For this, I use the new IR compiler. But I’m wondering which Gradle task I should use for it. Currently, I’m using
    ./gradlew clean compileProductionExecutableKotlinJs
    . But
    compileProductionExecutableKotlinJs
    does not appear in the
    ./gradlew tasks
    list, so I assume it is not the right one. Which Gradle task should I use?
    dasralph
    1 replies
    Copy to Clipboard
  • dasralph

    dasralph

    1 year ago
    When I try to compile a data class with default values with the IR compiler to JavaScript, I get this error:
    IllegalStateException: Can't find name for declaration FUN name:Foo_init_$Create$ visibility:public modality:FINAL <> (bar:kotlin.String?, $mask0:<http://kotlin.Int|kotlin.Int>, $marker:kotlin.js.DefaultConstructorMarker?) returnType:api.model.Foo
    . I assume this is a bug but is there a small workaround for it? Or do I need to wait until it is fixed?
    @ExperimentalJsExport
    @JsExport
    data class Foo(
        val bar: String? = null
    )
    dasralph
    1 replies
    Copy to Clipboard
  • Animesh Sahu

    Animesh Sahu

    1 year ago
    How to see stdout n stderr of failing tests, this setting only applies for jvm:
    tasks.withType<Test> {
    	testLogging {
    		exceptionFormat = TestExceptionFormat.FULL
    		showStandardStreams = true
    		showStackTraces = true
    	}
    }
    Animesh Sahu
    2 replies
    Copy to Clipboard
  • Alex

    Alex

    1 year ago
    Regarding of testing, I’ve been writing some tests on commonMain and they’re always running under ios or iosX64 Gradle tasks. I’ve downloaded the kmm-sample project from KMM documentation and the same happens there. Does anybody knows why the shared code is always executed under ios tasks? I’m having difficulties to find some quality content about shared tests.
    Alex
    t
    5 replies
    Copy to Clipboard
  • d

    Dragos Rachieru

    1 year ago
    Hello, I am having a hard time publishing my multiplatform library to Sonatype. My build.gradle file is this: https://github.com/dragossusi/sevens-payload/blob/master/payload/build.gradle.kts I somehow made it work, but it creates 2 repositories at the same time, 1 fails everytime.
    d
    g
    +2
    9 replies
    Copy to Clipboard
  • Ivy

    Ivy

    1 year ago
    Hello, I just started the KMM project. 😁 Before that, I mainly developed Android. So I wonder what IDE you use when writing Swift code in the KMM project. It’s very uncomfortable to write Swift code in Android Studio, so I’m using XCode and Android Studio alternately. Are there any tips for me?
    Ivy
    mbonnin
    5 replies
    Copy to Clipboard
  • Himanshu Singh

    Himanshu Singh

    1 year ago
    Hello All, is there any project which is open source and live in App/Play store ? Wanted to check out the app
    Himanshu Singh
    Yev Kanivets
    +1
    5 replies
    Copy to Clipboard
  • m

    Md Hanif

    1 year ago
    Hi. is DataStore available for KMM ? like I have used this library which uses shared pref and NSUSerDefaults for their native storage am not sure if we can do something like this using datastore ? Would I require to create my own native preference storage file which uses datastore and NSUserdefaults to store preference or is there any built in or third party available ?
    m
    mbonnin
    +1
    7 replies
    Copy to Clipboard
  • jean

    jean

    1 year ago
    I used to have a
    jvm
    target for which the generated library was in kotlin and readable from my android app. Since a changed the target to
    android
    both the debug and release libraries are in Java and not readable from android studio (it gives me the option to “Decompile to Java” which gives unclear/non-readable code, “Download sources” which does nothing and “Choose sources” for which I don’t know what to select. Isn’t there a simple config for the debug variant at least to make it readable just as the file from the shared library?
    jean
    1 replies
    Copy to Clipboard