diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/Dependencies.kt index 0d857da..d74a594 100644 --- a/buildSrc/src/main/kotlin/Dependencies.kt +++ b/buildSrc/src/main/kotlin/Dependencies.kt @@ -2,7 +2,7 @@ object versions { const val kotlin = "1.9.22" const val dokka = "1.5.0" const val spotless = "6.17.0" - const val serialization = "1.5.0" + const val serialization = "1.6.2" } object deps { diff --git a/smartype-receivers/smartype-mparticle/build.gradle.kts b/smartype-receivers/smartype-mparticle/build.gradle.kts index fa89fb0..7c1dae2 100644 --- a/smartype-receivers/smartype-mparticle/build.gradle.kts +++ b/smartype-receivers/smartype-mparticle/build.gradle.kts @@ -19,7 +19,7 @@ group = GROUP version = VERSION_NAME kotlin { - android() { + androidTarget() { publishLibraryVariants("release") } js { @@ -36,7 +36,10 @@ kotlin { baseName = "mParticle_Smartype" ios.deploymentTarget = "14.3" } - pod("mParticle-Apple-SDK/mParticle") + pod("mParticle-Apple-SDK/mParticle"){ + // Add these lines + extraOpts += listOf("-compiler-option", "-fmodules") + } } sourceSets { @@ -85,10 +88,10 @@ tasks { } android { - compileSdk = 31 + compileSdk = 33 defaultConfig { minSdk = 19 - targetSdk = 31 + targetSdk = 33 } sourceSets { getByName("main") { diff --git a/smartype/build.gradle.kts b/smartype/build.gradle.kts index 0f3df8b..ea04711 100644 --- a/smartype/build.gradle.kts +++ b/smartype/build.gradle.kts @@ -32,7 +32,7 @@ kotlin { binaries.executable() } - android() { + androidTarget() { publishLibraryVariants("release", "debug") mavenPublication { artifactId = "smartype" @@ -67,7 +67,10 @@ kotlin { export(project(":smartype-receivers:smartype-mparticle")) } } - pod("mParticle-Apple-SDK/mParticle") + pod("mParticle-Apple-SDK/mParticle"){ + // Add these lines + extraOpts += listOf("-compiler-option", "-fmodules") + } } tasks.create("iosFatFramework", org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask::class) { @@ -155,10 +158,10 @@ kotlin { } android { - compileSdk = 31 + compileSdk = 33 defaultConfig { minSdk = 19 - targetSdk = 31 + targetSdk = 33 } sourceSets { getByName("main") {