• Paul Woitaschek

    Paul Woitaschek

    3 weeks ago
    Are there any advanced steps possible to reduce the size of the ios / watchos application? What we tried so far: • Move everything into a single gradle module and make everything internal that’s possible • Switching from dynamic to static linking (-1MB) • Not exporting any libraries Maybe some compiler flags that further reduce the size? We are currently blocked by this because the size of the watch (81mb) is larger than what apple allows (75mb)
    Paul Woitaschek
    p
    +5
    48 replies
    Copy to Clipboard
  • jacksonfdam

    jacksonfdam

    3 weeks ago
    I'm using Koin, but I'm not sure about the best approach to pass the app context until the shared prefs library.
    jacksonfdam
    m
    +1
    11 replies
    Copy to Clipboard
  • diego-gomez-olvera

    diego-gomez-olvera

    3 weeks ago
    given that https://github.com/Kotlin/kmm-with-cocoapods-sample is 2 years old, what do you user for reference for your KMP library with Cocoapods?
    diego-gomez-olvera
    j
    5 replies
    Copy to Clipboard
  • m

    mattinger

    3 weeks ago
    I’m sure this has been asked, but i wanted to confirm my suspicions that kotlin-reflect is a jvm only library. I have things i would like to do with meta programming, but i’m not sure i could make that work on iOS code (i’m not targeting JS, just android and ios), Swift itself has the Mirror functionality for reflection, but it’s my understanding that kmm doesn’t really deal in swift and compiles directly to down to binary code.
    m
    Trevor Stone
    5 replies
    Copy to Clipboard
  • Big Chungus

    Big Chungus

    3 weeks ago
    11 should work just fine, but cfd only needs 9+ for jlink and jpackage
    Big Chungus
    j
    2 replies
    Copy to Clipboard
  • adjpd

    adjpd

    2 weeks ago
    When Kotlin 1.7.20 is released do we think it'll have support for most of the compiler plugins needed for an average KMM (Android and iOS) project?
  • Peter Hsu

    Peter Hsu

    3 weeks ago
    I'm running into issues with Android Studio updating to kotlin 1.7.10 with a highly modularized project. it seems like AS gets confused when
    module A/androidMain
    has dependencies on
    module B/commonMain
    . AS has no problems with
    module B/androidMain
    depending on
    module B/commonMain
    Peter Hsu
    2 replies
    Copy to Clipboard
  • e

    eygraber

    2 weeks ago
    I see that Windows can be compiled on any host as of 1.6.0 (https://kotlinlang.org/docs/whatsnew16.html#compilation-of-windows-targets-on-any-host). Would running common tests for a Windows target work, or is it just compilation?
  • p

    PHondogo

    2 weeks ago
    Hello! Is it possible to add several android targets in one project? Now in such case when plugin com.android.library is applied it throws exception that extension with kotlinOptions already defined when defining second android target.
    p
    1 replies
    Copy to Clipboard
  • xxfast

    xxfast

    2 weeks ago
    Hi all. I'm getting this native compiler error
    java.lang.IllegalStateException: IrPropertyPublicSymbolImpl for io.github.xxfast.utils/FILE_SYSTEM|225970167697663469[0] is already bound: PROPERTY name:FILE_SYSTEM visibility:public modality:FINAL [val]
    my build script is setup as
    kotlin {
      val hostOs = System.getProperty("os.name")
      val isMingwX64 = hostOs.startsWith("Windows")
      val nativeTarget = when {
        hostOs == "Mac OS X" -> macosX64("native")
        hostOs == "Linux" -> linuxX64("native")
        isMingwX64 -> mingwX64("native")
        else -> throw GradleException("Host OS is not supported in Kotlin/Native.")
      }
      sourceSets {
        val nativeMain by getting { .. }
        val nativeTest by getting {
          dependsOn(nativeMain)
        }
      }
    }
    and have my implementation as
    // commonMain
    expect val FILE_SYSTEM: FileSystem
    
    // nativeMain
    actual val FILE_SYSTEM: FileSystem = FileSystem.SYSTEM
    Am I doing something wrong here? 🤔 jvm target is able to build and run fine