• brabo-hi

    brabo-hi

    1 year ago
    i cannot access it within
    commonMain
    but i can access it within
    androidMain
    brabo-hi
    Atabek M
    3 replies
    Copy to Clipboard
  • e

    edwinRNDR

    1 year ago
    Are there any examples of a multiplatform project in which a task generates .kt files that are placed in a separate sourceset? I run into problems with implicit dependencies and can't figure out how to go about this.
    e
    kpgalligan
    +1
    5 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    1 year ago
    Is there a definitive list of "testable" (i.e. where you can actually run tests) kotlin targets?
    Big Chungus
    c
    2 replies
    Copy to Clipboard
  • William Persall

    William Persall

    1 year ago
    I created a full-stack web multiplatform project from the template. When I run the run task, I get
    Execution failed for task ':run'.
    > Process 'command 'C:\Users\folder\.jdks\liberica-1.8.0_302\bin\java.exe'' finished with non-zero exit value 1
    not sure how to diagnose what the cause it, would someone be able to assist?
    William Persall
    andylamax
    3 replies
    Copy to Clipboard
  • Viktor Petrovski

    Viktor Petrovski

    1 year ago
    Hello 👋 I’m starting to work on a project that I tend to do it using KotlinMultiPlatform. can you guys recommend some open source/article explaining code organisation and architecture on kmm projects, would love to see some examples.
    Viktor Petrovski
    Alexey Glushkov
    4 replies
    Copy to Clipboard
  • simon.vergauwen

    simon.vergauwen

    1 year ago
    Hey everyone 👋, I was wondering if anyone has attempted to leverage the new “Shared Indexes” functionality to share indexes of multiplatform dependencies. I notice that after adding JS (Browser/Node), and all native targets to my project that indexing exploded. It seems that if installed correctly “Shared Indexes” might be able to almost completely get rid of the indexing of all common libraries. References: https://blog.jetbrains.com/idea/2020/07/shared-indexes-plugin-unveiled/ https://docs.google.com/document/d/1Lvhyimh94Ni-VqKYMktknsB8Itv3pYkYRy0QUsUPn4o/edit
    simon.vergauwen
    Javier
    13 replies
    Copy to Clipboard
  • Mihail Krivov

    Mihail Krivov

    1 year ago
    Sup every1🖖 Case: M1 processor Multiplatform project with last changes from documentation ( migration to embedAndSignAppleFrameworkForXcode ) + last version of kotlin (1.5.30-release-411) Any type of ios config in gradle e.g.:
    val ios = listOf(iosX64(), iosArm64())
    configure(ios) {
    binaries{
    framework{
    baseName = "commonModule"
    }
    }
    }
    ...
    ...
    val iosX64Main by getting{
    dependencies{
    ...kotlinx-coroutines-core-native:1.3.5
    ...ktor-client-ios:1.6.1
    ...sqldelight:native-driver:1.5.0
    }
    val iosArm64Main by getting{
    dependsOn(iosX64Main)
    }
    OR
    ios {
    binaries{
    framework{
    baseName = "commonModule"
    }
    }
    }
    val iosMain by getting{
    dependencies{
    ...kotlinx-coroutines-core-native:1.3.5
    ...ktor-client-ios:1.6.1
    ...sqldelight:native-driver:1.5.0
    }
    OR any structure u prefer And regardless of type u prefer, xCode everytime return error when try to build project like task embedAndSignAppleFrameworkForXcode not found OR NVActivityIndicatorView not found for target x86_64-apple-ios-simulator OR one time I saw error like DatabaseDriverFactory has no dependencies OR Execution failed for task ":commonModule:compileKotlinIosX64" OR etc... So... can any1 explain me what I need to do?! I feel like a blind kitten and constantly bump into walls 🤕
    Mihail Krivov
    s
    3 replies
    Copy to Clipboard
  • Carson Holzheimer

    Carson Holzheimer

    1 year ago
    I upgraded to kotlin 1.5.30 and tried to use the new cocoapods plugin features to get around this:https://youtrack.jetbrains.com/issue/KT-42023#focus=Comments-27-4880877.0-0 However now the xcode build just fails with this error:
    * What went wrong:
    Task 'Debug' not found in root project 'KotlinCommon'.`
    Why is it looking for a task called Debug???
    Carson Holzheimer
    l
    +1
    30 replies
    Copy to Clipboard
  • a

    atsushieno

    1 year ago
    Is there any known Multiplatform way to "relativize" file path from another path like
    java.nio.file.Path.relativize()
    ? As far as I checked, okio Path/FileSystem and ktor Url don't seem to provide such a feature.
    a
    1 replies
    Copy to Clipboard
  • tylerwilson

    tylerwilson

    1 year ago
    Trying to use the new XCFramework support in 1.5.30. When trying to add watchos target, I get the following. Anybody else see this?
    Compilation failed: The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ command returned non-zero exit code: 1.
    output:
    clang (LLVM option parsing): for the --fast-isel option: may only occur zero or one times!
    clang (LLVM option parsing): for the --global-isel option: may only occur zero or one times!
    
     * Source files: 
     * Compiler version info: Konan: 1.5.30 / Kotlin: 1.5.30
     * Output kind: FRAMEWORK
    tylerwilson
    Thomas
    6 replies
    Copy to Clipboard