From bc27b2f99215e978d181dfd76b5bf65143c92449 Mon Sep 17 00:00:00 2001 From: Juul Mobile Bot Date: Fri, 3 Nov 2023 09:06:01 +0000 Subject: [PATCH 1/3] Update plugin kotlin-multiplatform to v1.9.20 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0985097..31e0cd5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -14,7 +14,7 @@ nserrorkt = { module = "com.rickclephas.kmp:nserror-kt", version = "0.1.0" } [plugins] android-library = { id = "com.android.library", version = "8.1.2" } api = { id = "binary-compatibility-validator", version = "0.13.2" } -kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version = "1.9.10" } +kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version = "1.9.20" } kotlinter = { id = "org.jmailen.kotlinter", version = "4.0.0" } maven-publish = { id = "com.vanniktech.maven.publish", version = "0.25.3" } swiftpackage = { id = "io.github.luca992.multiplatform-swiftpackage", version = "2.2.0" } From 13bedbdacb72ed31b0b6fcca2cdbaffacc487188 Mon Sep 17 00:00:00 2001 From: Travis Wyatt Date: Mon, 20 Nov 2023 11:10:51 -0800 Subject: [PATCH 2/3] Add `-fmodules` compiler option --- bundled/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundled/build.gradle.kts b/bundled/build.gradle.kts index 80f5d7b..5ff0cba 100644 --- a/bundled/build.gradle.kts +++ b/bundled/build.gradle.kts @@ -27,9 +27,11 @@ kotlin { pod("DatadogObjc") { version = "~> ${libs.versions.datadog.ios.get()}" + extraOpts += listOf("-compiler-option", "-fmodules") } pod("DatadogCore") { version = "~> ${libs.versions.datadog.ios.get()}" + extraOpts += listOf("-compiler-option", "-fmodules") } } From a2848ce368261e8bd2c5e090a5c17d0051dfaa32 Mon Sep 17 00:00:00 2001 From: Travis Wyatt Date: Mon, 20 Nov 2023 11:35:19 -0800 Subject: [PATCH 3/3] Globally opt-in to `kotlinx.cinterop.ExperimentalForeignApi` --- bundled/build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundled/build.gradle.kts b/bundled/build.gradle.kts index 5ff0cba..5c12c68 100644 --- a/bundled/build.gradle.kts +++ b/bundled/build.gradle.kts @@ -36,6 +36,12 @@ kotlin { } sourceSets { + all { + all { + languageSettings.optIn("kotlinx.cinterop.ExperimentalForeignApi") + } + } + val commonMain by getting { dependencies { api(projects.datadog)