From 1a4c846592459a4b6408812ee14fe479a2531da4 Mon Sep 17 00:00:00 2001 From: Thomson Thomas Date: Wed, 20 May 2026 17:22:08 -0400 Subject: [PATCH 1/3] build(rokt): update Rokt kit dependency stack Align the Rokt kit build with the upcoming Rokt SDK alpha by updating Kotlin, Compose, and coroutine dependencies. Pin the Maven artifact id so the kit continues publishing as android-rokt-kit. #agentic --- kits/rokt/rokt/build.gradle | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/kits/rokt/rokt/build.gradle b/kits/rokt/rokt/build.gradle index 56d5c7559..07c30adda 100644 --- a/kits/rokt/rokt/build.gradle +++ b/kits/rokt/rokt/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.kotlin_version = '2.0.20' + ext.kotlin_version = '2.1.20' if (!project.hasProperty('version') || project.version.equals('unspecified')) { project.version = '+' } @@ -20,7 +20,7 @@ buildscript { plugins { id "org.sonarqube" version "3.5.0.2730" id "org.jlleitschuh.gradle.ktlint" version "13.0.0" - id "org.jetbrains.kotlin.plugin.compose" version "2.0.20" + id "org.jetbrains.kotlin.plugin.compose" version "2.1.20" } sonarqube { @@ -35,6 +35,11 @@ apply plugin: 'org.jlleitschuh.gradle.ktlint' apply plugin: 'kotlin-android' apply plugin: 'com.mparticle.kit' +mparticleMavenPublish { + artifactId.set('android-rokt-kit') + description.set('Rokt kit for the mParticle SDK') +} + android { namespace 'com.mparticle.kits.rokt' defaultConfig { @@ -70,12 +75,13 @@ repositories { } dependencies { - def composeBom = platform('androidx.compose:compose-bom:2023.10.01') + def composeBom = platform('androidx.compose:compose-bom:2026.05.01') implementation composeBom implementation 'androidx.annotation:annotation:1.5.0' - implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4' + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0' implementation 'androidx.compose.runtime:runtime' - api 'com.rokt:roktsdk:5.1.0' + api 'com.rokt:roktsdk:6.0.0-alpha.1' + api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" testImplementation files('libs/java-json.jar') testImplementation 'com.squareup.assertj:assertj-android:1.2.0' @@ -85,7 +91,7 @@ dependencies { testImplementation 'org.powermock:powermock-api-mockito2:2.0.2' testImplementation 'org.powermock:powermock-core:2.0.7' testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" - testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4' + testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0' compileOnly 'androidx.compose.ui:ui' compileOnly 'androidx.compose.material:material' compileOnly 'androidx.compose.ui:ui-tooling' From f7a56256898a46b9b2620e16fa6a09d98e72bd9e Mon Sep 17 00:00:00 2001 From: Thomson Thomas Date: Thu, 21 May 2026 15:24:30 -0400 Subject: [PATCH 2/3] build(rokt): use Rokt SDK 6.0.0 release candidate Point the Rokt kit at the Maven Central release candidate so the kit can compile and test without relying on unpublished alpha artifacts. #agentic --- kits/rokt/rokt/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kits/rokt/rokt/build.gradle b/kits/rokt/rokt/build.gradle index 07c30adda..0a77514c8 100644 --- a/kits/rokt/rokt/build.gradle +++ b/kits/rokt/rokt/build.gradle @@ -80,7 +80,7 @@ dependencies { implementation 'androidx.annotation:annotation:1.5.0' implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0' implementation 'androidx.compose.runtime:runtime' - api 'com.rokt:roktsdk:6.0.0-alpha.1' + api 'com.rokt:roktsdk:6.0.0-rc.1' api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" testImplementation files('libs/java-json.jar') From 05e2e6fcbc252a37ceda3e8eddc77245f8952c47 Mon Sep 17 00:00:00 2001 From: Thomson Thomas Date: Thu, 21 May 2026 16:11:00 -0400 Subject: [PATCH 3/3] build(rokt): guard publish metadata for standalone builds Only configure the Rokt kit Maven publish metadata when the mparticleMavenPublish extension is available. This keeps standalone kit builds working while preserving the monorepo publish artifact id. #agentic --- kits/rokt/rokt/build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kits/rokt/rokt/build.gradle b/kits/rokt/rokt/build.gradle index 0a77514c8..4ac8e9138 100644 --- a/kits/rokt/rokt/build.gradle +++ b/kits/rokt/rokt/build.gradle @@ -35,9 +35,11 @@ apply plugin: 'org.jlleitschuh.gradle.ktlint' apply plugin: 'kotlin-android' apply plugin: 'com.mparticle.kit' -mparticleMavenPublish { - artifactId.set('android-rokt-kit') - description.set('Rokt kit for the mParticle SDK') +if (extensions.findByName('mparticleMavenPublish') != null) { + mparticleMavenPublish { + artifactId.set('android-rokt-kit') + description.set('Rokt kit for the mParticle SDK') + } } android {