• m

    Mendess

    4 months ago
    I think I found a miscompilation/bad codegen of js. Is there a standard way for me to debug this? Report this issue in the compiler? I tried to make a small repro project but I can't reproduce it outside my own case which is massive and closed source. Any tips?
    m
    rnett
    3 replies
    Copy to Clipboard
  • Ran

    Ran

    4 months ago
    I encounter a problem after I publish my KMP library into nexus. In my KMP library:
    plugins {
        kotlin("multiplatform") version "1.6.10"
        id("maven-publish")
    }
    
    publishing {
        publications.withType(MavenPublication::class) {
            pom {
                name.set("Kotlin Multiplatform BigDecimal")
                description.set("Kotlin Multiplatform BigDecimal library")
            }
        }
    
        repositories {
            maven {
               ...
            }
        }
    }
    Then I run
    ./gradlew publishAllPublicationsToNexusSnapshotRepository
    I checked my nexus and all targets library were uploaded. Then in another KMP project, add the dependency
    sourceSets {
        val commonMain by getting {
          dependencies {
            implementation("com.calculation.multiplatform:MultiplatformBigDecimal:1.0.0-SNAPSHOT")
          }
        }
      }
    After synced project, I cannot build the project in any target.
    Unresolved reference: multiplatform
    I guess that there is no need to import every target library with gradle module metadata feature, but I don't know why it doesn't work.
    Ran
    Javier
    6 replies
    Copy to Clipboard
  • v

    Vivek Modi

    4 months ago
    hey I see in gradle file I have kotlin block inside that I have
    getting/creating
    . I know this property using delagate property. Can someone explain me what is use of
    creating
    and
    getting
    and when to use them. I am totally confused.
    val androidMain by getting {
                dependencies {
                    implementation("androidx.core:core-ktx:1.3.2")
                }
            }
    
    val iosMain by creating {
                dependsOn(commonMain)
                iosX64Main.dependsOn(this)
                iosArm64Main.dependsOn(this)
                iosSimulatorArm64Main.dependsOn(this)
            }
    
      val iosMain by creating { dependsOn(commonMain) }
            val iosX64Main by getting { dependsOn(iosMain) }
            val iosArm64Main by getting { dependsOn(iosMain) }
    v
    Paul Woitaschek
    8 replies
    Copy to Clipboard
  • Jan

    Jan

    4 months ago
    Hey tried to make a compose library for desktop and android, works theoretical but if I try to add this to the plugins:
    kotlin("plugin.serialization") version Versions.KOTLIN
    I get this error when reloading: The 'java' plugin has been applied, but it is not compatible with the Android plugins.
    Jan
    3 replies
    Copy to Clipboard
  • simon.vergauwen

    simon.vergauwen

    4 months ago
    Hey everyone, Is it possible to depend on c++ or Swift packages for native targets? If yes, does anyone have a small example of either? I can only find big complex setups, with complex Gradle setups.
    simon.vergauwen
    a
    +1
    4 replies
    Copy to Clipboard
  • v

    Vivek Modi

    4 months ago
    Hey guy, I am using cocoapods in my kmm project. I want to create private repos and I am following this docs. But when I try to hit the command
    pod repo lint
    it continue running and it not stoping. i am adding small video in thread. Please have a look. Thanks
    v
    Chrimaeon
    8 replies
    Copy to Clipboard
  • Jan

    Jan

    4 months ago
    Hello I have a little problem with kotlin multiplatform. I get these errors (thread) (so the source set android apparently doesn't have this SupabaseClient). However this is a multiplatform module and the common source set implements the module that has the SupabaseClient and the other source set does work (jvm)
    Jan
    Paul Woitaschek
    21 replies
    Copy to Clipboard
  • Allen

    Allen

    4 months ago
    Hello guys, I am working in Kmm library. I am in iOS part and using cocoapods as dependency manager. I am new in ios and kmm. I am reading the cocoapods doc in kotlin. I am adding my gradle code in the thread. I am understand that my cocoapod code is generating .podspec file. But there is no instructions given in doc to generate framework. I want to use pod private spec, but I don't understand what I need to share in the repo. Can someone help me how can I generate framework and what files I can share in private pod sec repo. Any working examples will be great. Thanks
    Allen
    2 replies
    Copy to Clipboard
  • Jan

    Jan

    4 months ago
    Any idea on how to fix intellij not finding classes in a mpp project from the common code. Below 1.6.20 I could fix it with
    kotlin.mpp.enableGranularSourceSetsMetadata=true
    in the gradle.properties In does build perfectly fine
    Jan
    Michael Paus
    3 replies
    Copy to Clipboard
  • Alejandro Moya

    Alejandro Moya

    4 months ago
    Hi 👋 , quick question, is there a way to publish only the release version of the ios cocoapods?
    Alejandro Moya
    1 replies
    Copy to Clipboard