• n

    nestserau

    3 years ago
    According to documentation,
    kotlin-stdlib/kotlin.native/toUtf8
    should be available on String in my multiplatform project. But I cannot invoke it. Intellisense doesn’t see that method. What am I doing wrong?
    n
    d
    3 replies
    Copy to Clipboard
  • g

    GarouDan

    3 years ago
    Hi guys, If we would like to have the common source sets with different names, how could we do it? Is there something that we can put in our build.gradle? For example
    commonMain,
    commonTest,
    jvmMain,
    jvmTest,
    jsMain,
    jsTest
    to
    main,
    test,
    jvmMain,
    jvmTest,
    jsMain,
    jsTest
    g
    h0tk3y
    2 replies
    Copy to Clipboard
  • g

    GarouDan

    3 years ago
    Taking advantage of this opportunity @addamsson, do you know where can I find the documentation of the kotlin-multiplatform plugin (to see all possibilities we can have in the source sets and presets?
    g
    kpgalligan
    +1
    5 replies
    Copy to Clipboard
  • g

    GarouDan

    3 years ago
    One another doubt of mine is, can we have more than one common source set in the same module? For example, this way we could have an expect class statement just for a specific business domain, like the mobile one. If we put the expect in the common source set the js platform, for example, will need to implement this too. Putting this information on a different source set we could use something like depends on to accomplish that. I know that this problem can be solved with two or.more modules but I was wondering if we can do that in the same module too.
    g
    kpgalligan
    +1
    5 replies
    Copy to Clipboard
  • a

    addamsson

    3 years ago
    but JB is definitely working on this
    a
    n
    2 replies
    Copy to Clipboard
  • p

    patjackson52

    3 years ago
    Anyone interested in showing Timber some MPP love? I’ve created a WIP PR to refactor to the new MPP plugin. Still needs a lot of work overall to get it into proper shape. Would be nice to have easy logging with the familiar API on iOS & Android. Comments are welcome… https://github.com/JakeWharton/timber/pull/341
    p
    kpgalligan
    +4
    55 replies
    Copy to Clipboard
  • egorand

    egorand

    3 years ago
    how does one add platform-specific 1) plugins 2) tasks using the new multiplatform plugin? I'm trying to setup testing for the JS target using the
    com.moowork.node
    plugin and a bunch of custom tasks and struggling to wrap my head around it
    egorand
    a
    +2
    8 replies
    Copy to Clipboard
  • Hamza

    Hamza

    3 years ago
    how can i configure things like compilekotlin2Js in a multiplatform build?
    Hamza
    egorand
    3 replies
    Copy to Clipboard
  • bkenn

    bkenn

    3 years ago
    Check out klock
    bkenn
    kpgalligan
    +1
    4 replies
    Copy to Clipboard
  • e

    Eugenio

    3 years ago
    Anyone having trouble with multi-platforms projects and
    1.3.10
    ? I'm getting this: (if it makes any difference, I'm using the Gradle Kotlin DSL)
    > Task :common:compileKotlinCommon FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':common:compileKotlinCommon'.
    > Could not resolve all files for configuration ':common:compileClasspath'.
       > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-common:1.3.10.
         Required by:
             project :common
          > Cannot choose between the following variants of org.jetbrains.kotlin:kotlin-stdlib-common:1.3.10:
              - compile
              - enforced-platform-compile
              - enforced-platform-runtime
              - platform-compile
              - platform-runtime
              - runtime
            All of them match the consumer attributes:
              - Variant 'compile':
                  - Found org.gradle.component.category 'library' but wasn't required.
                  - Found org.gradle.status 'release' but wasn't required.
                  - Required org.gradle.usage 'kotlin-api' and found compatible value 'java-api'.
                  - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
              - Variant 'enforced-platform-compile':
                  - Found org.gradle.component.category 'enforced-platform' but wasn't required.
                  - Found org.gradle.status 'release' but wasn't required.
                  - Required org.gradle.usage 'kotlin-api' and found compatible value 'java-api'.
                  - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
              - Variant 'enforced-platform-runtime':
                  - Found org.gradle.component.category 'enforced-platform' but wasn't required.
                  - Found org.gradle.status 'release' but wasn't required.
                  - Required org.gradle.usage 'kotlin-api' and found compatible value 'java-runtime'.
                  - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
              - Variant 'platform-compile':
                  - Found org.gradle.component.category 'platform' but wasn't required.
                  - Found org.gradle.status 'release' but wasn't required.
                  - Required org.gradle.usage 'kotlin-api' and found compatible value 'java-api'.
                  - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
              - Variant 'platform-runtime':
                  - Found org.gradle.component.category 'platform' but wasn't required.
                  - Found org.gradle.status 'release' but wasn't required.
                  - Required org.gradle.usage 'kotlin-api' and found compatible value 'java-runtime'.
                  - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
              - Variant 'runtime':
                  - Found org.gradle.component.category 'library' but wasn't required.
                  - Found org.gradle.status 'release' but wasn't required.
                  - Required org.gradle.usage 'kotlin-api' and found compatible value 'java-runtime'.
                  - Required org.jetbrains.kotlin.platform.type 'common' but no value provided.
    e
    russhwolf
    +2
    9 replies
    Copy to Clipboard