• soywiz

    soywiz

    4 years ago
    I'd suggest adding the possibility of creating pure common libraries. Without having to manually implement them. Example: https://github.com/korlibs/korge/tree/ad5089fcf6fbc3849c8c8592752ba98ac735b804 Here I have a lot of sublibraries/extensions that I have to implement per target. Which is a bit crazy. Because all of them uses other common libraries and no platform-specific code. I think that you can just upload common versions and "instantiate" platform specific-artifacts locally. Either at build/ or in an external cache folder. Or even allowing to create a single jar with JVM code + other code embedded. Since the initial implementation should be simple I understand that it is not a priority right now, but I'd vote for it for a later release 🙂
    soywiz
    elizarov
    +1
    4 replies
    Copy to Clipboard
  • soywiz

    soywiz

    4 years ago
    I still have to check how kotlinx.serialization works and how to create a plugin to do the same for my asynchronous injector and avoid to manually or automatically having to generate a file like this: https://github.com/korlibs/korge-samples/blob/master/korge-tic-tac-toe/src/com.soywiz.korge.tictactoe/InjectExt.kt#L8
    soywiz
    1 replies
    Copy to Clipboard
  • gaetan

    gaetan

    4 years ago
    One question on visibility: I have a common module with a function indicated as
    internal
    . I have a jvm module that implements this module. My test code inside the jvm module does not see the internal function. Is this normal?
    gaetan
    orangy
    +1
    4 replies
    Copy to Clipboard
  • snrostov

    snrostov

    4 years ago
    Trying to create multiplafrom project by: File > New > Project > Kotlin > Kotlin (Multiplatform - Experimental). Error after gradle import complete: https://pastebin.com/fZ2euzpS Same with https://github.com/jstuyts/kotlin-multiplatform-recipes/tree/syntax-1.2 (branch syntax-1.2).
    snrostov
    2 replies
    Copy to Clipboard
  • snrostov

    snrostov

    4 years ago
    Which version of IDEA, IDEA plugin and Gradle plugin is preferred for working with multiplatform project? In 1.2-EAP references from application module to common module not resolved in idea (red)
    snrostov
    gaetan
    +2
    8 replies
    Copy to Clipboard
  • soywiz

    soywiz

    4 years ago
    Is there a way for using
    org.intellij.lang.annotations.Language
    annotation in common code?
    soywiz
    ilya.gorbunov
    2 replies
    Copy to Clipboard
  • jossiwolf

    jossiwolf

    4 years ago
    Hey! I'm trying to use Reagent (github.com/jakewharton/reagent), but I get a "Unresolved Reference: Observable" error when compiling This is my code:
    import reagent.Observable
    
    expect interface ExampleAPI {
    
        fun getUsers(): Observable<UserModel>
    
    }
    This is the error from Gradle:
    Unresolved reference: Observable
    Anything I'm not seeing there? This code is in the common module of my project
    jossiwolf
    orangy
    2 replies
    Copy to Clipboard
  • soywiz

    soywiz

    4 years ago
    Is this reported?https://travis-ci.org/soywiz/kpspemu/builds/294470924#L967
    e: java.lang.IllegalStateException: Cannot get FQ name of local class: class <no name provided>
    	at org.jetbrains.kotlin.serialization.StringTableImpl.getFqNameIndexOfLocalAnonymousClass(StringTableImpl.kt:79)
            ...
    soywiz
    ilya.gorbunov
    3 replies
    Copy to Clipboard
  • soywiz

    soywiz

    4 years ago
    I'm facing an intermittent
    Actual ... has no corresponding expected declaration
    since first version, when compiling with gradle. I have recorded a video reproducing the problem. It seems that it happens when modifying a file containing an actual. When having two modules with expectedBy using platform-jvm. I have android + jvm doing this.

    https://youtu.be/DsqGGRimTnY

    soywiz
    ilya.gorbunov
    2 replies
    Copy to Clipboard
  • ilya.gorbunov

    ilya.gorbunov

    4 years ago
    @soywiz Could you debug it a little? I'll DM you the hints.
    ilya.gorbunov
    1 replies
    Copy to Clipboard