• Sam

    Sam

    2 years ago
    Hello everyone, Good day you guys, I’m researching about Kotlin / Native to build desktop and iOS apps So I want to ask about your experiences before presentation for my boss. 1. I want to build an desktop app for windows/macos, Can I use TornadoFX? or only Kotlin/Native is enough for build the app?. 2. How to create an Installer for Windows / MacOS ? ( like dmg or setup.exe) 3. Is it possible to use the Swift library (3rd) to integrate with Kotlin/Native? Thanks.
    Sam
    aleksey.tomin
    +1
    6 replies
    Copy to Clipboard
  • Orhan Tozan

    Orhan Tozan

    2 years ago
    Is this an unrevealed new library on top of Kotlin Multiplatform?
    Orhan Tozan
    o
    +1
    3 replies
    Copy to Clipboard
  • d

    Daniele B

    2 years ago
    This is what I think a typical app architecture will be. With third parties starting to release KMP libraries too.
    d
    Jeff
    10 replies
    Copy to Clipboard
  • dambakk

    dambakk

    2 years ago
    To answer myself , the issue is not sealed classes I believe but rather that
    kotlinNothing
    is not a sub-type of
    NSString
    . However, the situation above is an implementation of how this article suggests dealing with serializing nullable and optional properties which I think is overengineered. Instead of using the sealed class to represent the three states present-with-value, present-with-null-value, and not-present you can instead have a
    data class OptionalProperty<T>(val value: T)
    and use it as a nullable property type and still cover all the states. It works as before, but is now much more pleasant to use from swift. But please correct me if I’m wrong.
    dambakk
    p
    3 replies
    Copy to Clipboard
  • Jeff

    Jeff

    2 years ago
    :kotlin: Hello! Little question. How do I structure a multiplatform library that is basically an API wrapper for a third-party payment service. The library can be used in Multiplatform projects, Android and JS. 1. Is it even necessary for the library to include View Model and Data Repository? 2. Also, is it best to use callbacks or pure suspend functions? Really appreciate your advice 🙂
    Jeff
    Big Chungus
    6 replies
    Copy to Clipboard
  • Mikołaj Kąkol

    Mikołaj Kąkol

    2 years ago
    Hi, I was wondering if anyone tried to publish, a MPP lib that is build on multiple machines. Use case is: • build osx lib on mac • build Android on Unix • maybe building something on Windows How do I combine artifacts from each machine to a single artifatory? Since there is this
    *.module
    file in main lib, that contains information about every platform and calling multiple time
    mavenPublish
    or sth similar would override that
    *.module
    file. So basically it comes to how to publish artifacts build on different platforms to a single lib?
    Mikołaj Kąkol
    Big Chungus
    +2
    27 replies
    Copy to Clipboard
  • m

    Marc Knaup

    2 years ago
    How do you deal with
    NSInteger
    in common Darwin code? 😮
    m
    louiscad
    +2
    34 replies
    Copy to Clipboard
  • s

    Sebastien Leclerc Lavallee

    2 years ago
    Hello! When I try to build, I get this error:
    Your current kotlinx.serialization core version is too low, while current Kotlin compiler plugin 1.4.0 requires at least 1.0-M1-SNAPSHOT. Please update your kotlinx.serialization runtime dependency.
    The problem is, I never updated to Kotlin 1.4. My Kotlin used for dependencies is 1.3.70. I did came across a warning yesterday that sais something like:
    Common module has an external compiler that use Kotlin 1.4
    Does that ring a bell to someone? The “only” thing I did was to update from gradle 5.6.X to 6.5, but I doubt it had that kind of repercussion. Thanks 🙂
    s
    m
    8 replies
    Copy to Clipboard
  • m

    Maurice Jouvet

    2 years ago
    Hi, I am using KaMPKit and I have this issue when Building on iOS. Command PhaseScriptExecution failed with a nonzero exit code Do you know what is the pb?
    m
    s
    +2
    18 replies
    Copy to Clipboard
  • z

    zsperske

    2 years ago
    Wondering if anyone has run into an issue like this when trying to build for a real iPhone target.
    Undefined symbols for architecture arm64:
      "_OBJC_CLASS_$_SharedCodeEventUiModel", referenced from: objc-class-ref in EventUI.o
    I assume I need to change my gradle setup but I'm unsure what exactly I need to change.
    z
    yousefa2
    12 replies
    Copy to Clipboard