• f

    Fabio Bombardi

    2 years ago
    Hi guys! Is it possible to debug (e.g. setting breakpoints in kotlin code) an mpp library using AppCode while running the iOS project that uses the framework generated from this library?
    f
    kpgalligan
    10 replies
    Copy to Clipboard
  • v

    vanniktech

    2 years ago
    Is there something similar to OkHttp's https://square.github.io/okhttp/4.x/okhttp/okhttp3/-authenticator/ for ktor? Basically, a mechanism to manually refresh a token and re-fire the same request
    v
    mbonnin
    4 replies
    Copy to Clipboard
  • Kurt Renzo Acosta

    Kurt Renzo Acosta

    2 years ago
    Hello! Has anyone encountered an
    unrecognized selector sent to instance
    in Kotlin/Native for iOS? I have a presenter which has use cases and I just use a service locator to try and use them.
    @ThreadLocal 
    object ServiceLocator {
        val myObject = MyObject()
    }
    
    class MyPresenter(val myView: MyView, val myObject: MyObject) {
        ...
    }
    class ViewController: UIViewController, MyView {
        let presenter = MyPresenter.init(myView: self, myObject, ServiceLocator.init().myObject)
        ...
    }
    Kurt Renzo Acosta
    b
    +1
    4 replies
    Copy to Clipboard
  • louiscad

    louiscad

    2 years ago
    Just fixed red code bug in the IDE (where I had a multiplatform module depending on another one, with an Android target) by adding
    kotlin.mpp.enableGranularSourceSetsMetadata=true
    to my
    gradle.properties
    (requires Kotlin 1.3.60). 🎉 🎉 💪 Thanks for the improvements!
    louiscad
    Arkadii Ivanov
    +1
    5 replies
    Copy to Clipboard
  • c

    Cristián Arenas

    2 years ago
    When I compile my project for iOS, the
    .h
    includes a lot of internal Kotlin stuff (like
    KotlinNumber
    ,
    KotlinUByte
    ,
    Sqldelight_runtimeTransacter
    , etc), how can I stop it from doing that? I just want it to expose what I mark as
    public
    c
    mbonnin
    +1
    8 replies
    Copy to Clipboard
  • mbonnin

    mbonnin

    2 years ago
    Do you use Android Studio or IntelliJ to develop an Android App that has some multiplatform modules ?
    mbonnin
    Kris Wong
    +1
    8 replies
    Copy to Clipboard
  • n

    niqo01

    2 years ago
    Is there an equivalent of java CopyOnWriteArrayList in common code? I am trying to find an easy way to share a mutable collection across threads in common code.
    n
    Arkadii Ivanov
    +1
    7 replies
    Copy to Clipboard
  • SrSouza

    SrSouza

    2 years ago
    Hi guys, three is no easy way to have a global native target? I was looking at Coroutines, and its kinda a hack what they dohttps://github.com/Kotlin/kotlinx.coroutines/blob/master/gradle/compile-native-multiplatform.gradle Any better way to achieve that? Any plan for in the future have a global native target?
    SrSouza
    1 replies
    Copy to Clipboard
  • v

    vanniktech

    2 years ago
    Has anyone been able to convert a file from an iOS system into a KotlinByteArray? I want to upload an image using ktor and ByteArray is the common denominator between the platforms. Android side is already working.
    v
    matej
    +1
    4 replies
    Copy to Clipboard
  • s

    serebit

    2 years ago
    What's the status of code generation for multiplatform projects where the code to be generated needs to be in the common source set?
    s
    russhwolf
    3 replies
    Copy to Clipboard