• o

    Ola Adolfsson

    2 years ago
    Good evening. maybe a stupid question but… . We’re developing a KMP library targeting JS (web) (and in the future android, etc). The JS target are published as npm packages on our registry. We use the npm-packages in a SPA (not nodeJs) Now to my question, should JS target browser or nodejs? As I understand it, the DCE (threeshaking) is only used by the browser “target”. Using the DCE should result in smaller npm packages? Or?
    o
    andylamax
    2 replies
    Copy to Clipboard
  • a

    Alberto

    2 years ago
    hello, I have a project that uses build.gradle (groovy) instead of the kotlin version. I'm trying to translate the fatFramework logic for iOS in groovy but it's taking a long time. Wondering if anyone had a build.gradle to share with that logic already?
    a
    russhwolf
    2 replies
    Copy to Clipboard
  • Vinod Rai

    Vinod Rai

    2 years ago
    Hey, I'm developing a KMP library targeting iOS & Android. I have included library in Android app as a Jar. Now getting this exception while trying to access the service. java.lang.NoClassDefFoundError: Failed resolution of: Lkotlinx/serialization/json/JsonKt;
    Vinod Rai
    r
    +3
    9 replies
    Copy to Clipboard
  • c

    Christian Sousa

    2 years ago
    Hello everyone, hope this one is easy to answer, I’m trying to create a 
    UITableView
     class, extending both UITableViewDataSourceProtocoland 
    UITableViewDelegateProtocol
     , and when overriding methods, I get the following error when running (compiling does not produce any error):
    /Users/teamcity1/teamcity_work/4d622a065c544371/runtime/src/main/cpp/ObjCInterop.cpp:137: runtime assert: Unable to add method to Objective-C class
    I’m not really sure what’s causing the error, I only needed to extend the Delegate for the following method:
    @Suppress("CONFLICTING_OVERLOADS")    
    override fun tableView(tableView: UITableView, viewForHeaderInSection: NSInteger): UIView? {
        return UIView()
    }
    Does anyone knows what I could do? EDIT: Even if I remove the override, the compiler will tell me that: must override public open external fun debugDescription(): String? But when I override it, I get the same error.. (edited) (already tried asking on native channel but got no answer)
    c
    1 replies
    Copy to Clipboard
  • 4ntoine

    4ntoine

    2 years ago
    Hi, all. Being practical my question is “What can be used for files IO in Kotlin Multiplatform at the moment” (let’s say i want to open a text file and get all the lines on both iOS and Android)? I came up with some expected classes and home-brew 
    actual
     impls using 
    fopen(), ...
     in the 
    native
     sourceSet. Any existing/proper way of doing that? PS. https://github.com/orangy/kotlinx-files seems to be discontinued
    4ntoine
    g
    +1
    6 replies
    Copy to Clipboard
  • s

    Slackbot

    2 years ago
    This message was deleted.
    s
    Yevgeni Liskovich
    3 replies
    Copy to Clipboard
  • Yevgeni Liskovich

    Yevgeni Liskovich

    2 years ago
    👆sorry for two different messages(slack broke into two). but i add more information on first thread. thanks
    Yevgeni Liskovich
    b
    2 replies
    Copy to Clipboard
  • Yevgeni Liskovich

    Yevgeni Liskovich

    2 years ago
    Hi all, I have multi module gradle project(mono repo) for spring boot micro services and their common libraries. I am trying to take one common library(ktor client http wrapper) and migrate it to multiplatform module by changing build.gradle.kts file like this:
    Yevgeni Liskovich
    1 replies
    Copy to Clipboard
  • manueldidonna

    manueldidonna

    2 years ago
    I followed the official tutorial to create a mpp library https://kotlinlang.org/docs/tutorials/mpp/multiplatform-library.html How can I import that library into a javascript project?
    manueldidonna
    Nicholas Bilyk
    3 replies
    Copy to Clipboard
  • d

    Daniele B

    2 years ago
    I realized I have a similar feeling of when Google launched Firebase in 2016. At that time I thought: “This is great! finally a suite that unifies Google services for the different platforms! Everything looks so neat and clear! From the same console I can manage the Google services for both the Android and iOS apps!” Now the feeling is: “Wow, finally I can just use Android Studio to configure and build all my apps!” Kotlin MultiPlatform feels like the biggest step forward since Firebase. Not only Google services, but the whole application logic is now multiplatform. The next big step will happen when JetpackCompose will become multiplatform too. It’s probably going to take 2 more years.
    d
    c
    +2
    10 replies
    Copy to Clipboard