• Siggi Gunnarss

    Siggi Gunnarss

    9 months ago
    Hi! We are now using kotlin multiplatform in production in our main app, both Android and iOS. I wrote about it here:https://www.festinasweden.se/kotlin-multiplatform/ Since this community has helped me from the beginning I figured i would share here. AMA
    Siggi Gunnarss
    kenkyee
    2 replies
    Copy to Clipboard
  • kpgalligan

    kpgalligan

    9 months ago
    kpgalligan
    Andrew O Hart
    11 replies
    Copy to Clipboard
  • kpgalligan

    kpgalligan

    9 months ago
    So, you need to grab the version from the old db and set it manually in the new db, then you'd avoid the migration on sqldelight start. I'm making the assumption that sqldelight is trying to create a table that already exists from your migration process (correct?)
    kpgalligan
    j
    +1
    3 replies
    Copy to Clipboard
  • kpgalligan

    kpgalligan

    9 months ago
    What version of sqldelight are you on? Looks a bit old. SQLiter config is kind of different now, and there's direct support for adding sqlcipher keys
    kpgalligan
    1 replies
    Copy to Clipboard
  • a

    Anamika Trivedi

    9 months ago
    Hello! Is SQLDelight a recommended library to be used for caching in KMM project? Can Realm instead be used? Are there any examples where Realm has been used successfully and is better than SQLDelight?
    a
    m
    +3
    8 replies
    Copy to Clipboard
  • d

    dwursteisen

    9 months ago
    👋 I built a multiplatform library that expose some alias or extension methods. (For example:
    typealias Seconds = Float
    . The library is built for Android/JVM/JS. When I’m using this library in an android application, I can’t import my alias. I checked in the
    aar
    file: the typealias is present. Also, using my lib in a jvm or js project. the
    Seconds
    alias can be imported. I don’t understand why I can’t import it while I don’t have any issue with other class for my library. Did you already get this issue?
    d
    1 replies
    Copy to Clipboard
  • Rahul Rawat

    Rahul Rawat

    9 months ago
    I’ve been working on a kotlin multiplatform library for a while now and I started using kermit logger for it. Everything builds well the only concern I have are the following warnings I am getting
    Unable to resolve dependency for ':@debug/compileClasspath': Could not resolve co.touchlab:kermit:1.0.2.
    Show Details
    Affected Modules: AddressLibrary
    
    Unable to resolve dependency for ':@debugUnitTest/compileClasspath': Could not resolve co.touchlab:kermit:1.0.2.
    Show Details
    Affected Modules: AddressLibrary
    
    Unable to resolve dependency for ':@debugAndroidTest/compileClasspath': Could not resolve co.touchlab:kermit:1.0.2.
    Show Details
    Affected Modules: AddressLibrary
    Can anyone help me with any way on how to make them go away or why they are coming?
    Rahul Rawat
    2 replies
    Copy to Clipboard
  • John O'Reilly

    John O'Reilly

    9 months ago
    Am trying out new AWS SDK for Kotlin (https://aws.amazon.com/sdk-for-kotlin/) in shared KMP code and running in issue that following (in AWS SDK code) is returning true when running JVM code (located in
    jvmMain
    )...anybody know why that would be the case (the KMP module in this case targets just android and JVM) ?
    private static boolean isAndroid() {
            try {
                Class.forName("android.os.Build");
                return true;
            } catch (ClassNotFoundException ex) {
                return false;
            }
        }
    John O'Reilly
    d
    7 replies
    Copy to Clipboard
  • oshai

    oshai

    9 months ago
    avoid duplicate publication: I am trying to deploy MP project to maven central and added the explained here: https://kotlinlang.org/docs/mpp-publish-lib.html#avoid-duplicate-publications but still seeing same artifacts on different host. Any working example?
    oshai
    mbonnin
    8 replies
    Copy to Clipboard
  • l

    Luc Girardin

    9 months ago
    Did one of you had more success at using Kotlin multiplatform with Gradle project import or composite build? https://youtrack.jetbrains.com/issue/KT-50064
    l
    rnett
    3 replies
    Copy to Clipboard