• Philip Dukhov

    Philip Dukhov

    1 year ago
    I need to build an emoji, I was using
    Char.toChars(0x1F1E6 - 0x41 + ‘A’.code).concatToString()
    to get 🇦 emoji (and then build a country flag of two such letters). But now
    toChars
    marked deprecated. I checked out https://blog.jetbrains.com/kotlin/2021/04/kotlin-1-5-0-rc-released, and I can’t seem to find the replacement. What am I missing?
    Philip Dukhov
    Paul Woitaschek
    +4
    9 replies
    Copy to Clipboard
  • g

    Guilherme Delgado

    1 year ago
    Hello, I’m having this error:
    Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
    Adding support for Java 8 language features could solve this issue.
    And if I choose “fix it” the IDE adds this to my
    build.gradle.kts
    in shared module:
    android {
       ...
        compileOptions {
            sourceCompatibility = JavaVersion.VERSION_1_8
            targetCompatibility = JavaVersion.VERSION_1_8
        }
        kotlinOptions {
            jvmTarget = "1.8"
        }
    }
    Thing is,
    kotlinOptions
    throws unresolved reference. How can I fix this? Thanks 🙏 ps: don’t know if it’s related or just a coincidence, but I got this error after adding multiplatformSettings lib 🤔
    g
    John O'Reilly
    +1
    6 replies
    Copy to Clipboard
  • j

    Jeff Tycz

    1 year ago
    When I publish my KMM library to Maven and try to add my dependency to an Android application it seems I have to declare it like this for it to work
    releaseImplementation 'io.github.tyczj:myLib-android:0.X.X@aar'
    debugImplementation 'io.github.tyczj:myLib-android-debug:0.X.X@aar'
    What do I have to do to be able to add the dependency like one would for basically every other KMM or Android library? like this is what I am looking for
    implementation 'io.github.tyczj:myLib-android:0.X.X
    j
    russhwolf
    13 replies
    Copy to Clipboard
  • Alina Dolgikh [JB]

    Alina Dolgikh [JB]

    1 year ago
    Hi everyone! We’re running a survey to better understand how Kotlin beginners get started with the language. It will help us improve our learning materials and identify where users expect to find them. If you remember how you were first introduced to Kotlin, or you’re currently picking it up, you could really help us out by completing the survey: https://surveys.jetbrains.com/s3/t-kotlin-users-survey Thank you! 🙂
    Alina Dolgikh [JB]
    1 replies
    Copy to Clipboard
  • a

    Alfred Lopez

    1 year ago
    I am attempting to use Okio for File/IO and Square claims it's MPP, but I only see JVM implementations. Has anybody gotten this to work for a JVM/JS MPP? Thanks
    a
    russhwolf
    +1
    11 replies
    Copy to Clipboard
  • k

    kevindmoore

    1 year ago
    Attempted to create a new KMM project. Have the latest Intellij & Canary Android Studio. Both apps created empty projects when creating a test project. Only the stable version of AS worked
    k
    louiscad
    2 replies
    Copy to Clipboard
  • n

    Nikola Milovic

    1 year ago
    sourceSets {
            named("commonMain") {
                dependencies {
                    implementation(project(":common:utils"))
                    implementation(project(":common:database"))
                    implementation(project(":common:main"))
                    implementation(project(":common:edit"))
                    implementation(Deps.ArkIvanov.MVIKotlin.mvikotlin)
                    implementation(Deps.ArkIvanov.Decompose.decompose)
                    implementation(Deps.Badoo.Reaktive.reaktive)
                }
            }
        }
    
        sourceSets {
            named("iosMain") {
                dependencies {
                    api(project(":common:database"))
                    api(project(":common:main"))
                    api(project(":common:edit"))
                }
            }
    From the Compose Todo sample app. Can someone explain to me why are we implementing the projects in the commonMain and then api them in the iosMain? Doesnt iosMain inherit from the commonMain? What do we achieve/ what's happening here?
    n
    rnett
    +1
    4 replies
    Copy to Clipboard
  • m

    Mr.Android

    1 year ago
    Hi, how are you share “XcFramework’ to Xcode project ?
    m
    rudolf.hladik
    2 replies
    Copy to Clipboard
  • pablisco

    pablisco

    1 year ago
    Is there support to have both Android and Jvm targets at the moment? I was wonder while writing this 😅
    pablisco
    mbonnin
    2 replies
    Copy to Clipboard
  • Javier

    Javier

    1 year ago
    Is it possible to override
    src/target/kotlin
    ? My idea is moving to
    project/common/Platform.kt
    project/commonTest/PlatformTest.kt
    project/ios/Platform.kt
    project/iosTest/AnotherTest.kt
    project/jvm/Platform.kt
    project/jvmTest/AnotherTest.kt
    ...
    project/build.gradle.kts
    Javier
    turansky
    +1
    11 replies
    Copy to Clipboard