Thread
#multiplatform
    c

    coletz

    3 years ago
    Question time again! On the official mpp tutorial (https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html#creating-an-android-project) it's written to use gradle 4.10.2, while on the Droidcon app (https://github.com/touchlab/DroidconKotlin#note-on-gradle) it's written to use 4.7... What to do? 🤔
    orangy

    orangy

    3 years ago
    @h0tk3y
    h0tk3y

    h0tk3y

    3 years ago
    The recommendation to use Gradle 4.7 only makes sense if you want to use libraries that were published with metadata (https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#experimental-metadata-publishing-mode) with Gradle 4.7, as later Gradle versions fail to consume those libraries when they read metadata (i.e. when the consumer enables metadata as well). The kotlinx libraries have been published with Gradle 4.7 metadata and, until newer versions get published with a newer Gradle, you need to either keep Gradle metadata disabled on the consumer side or use Gradle 4.7. If you don't use those libraries, then I think you should use the newest Gradle version.
    c

    coletz

    3 years ago
    oh, that makes sense, in fact I was having problems with kotlinx using 4.10.2
    kpgalligan

    kpgalligan

    3 years ago
    We had trouble with 4.10 and native dependencies, as described above with metadata. Upgrading would require that to be functional, and republishing all the native libraries we’re using (which, if not ours, are forks because keeping versions compatible is tricky with the recent kotlin dev velocity). We’ll update in the coming weeks as things stabilize. Today, though, 4.7 or no 🎲