Skip to content

Commit 536cb7b

Browse files
authored
build(rokt): update Rokt kit dependency stack (#707)
* 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 * 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 * 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
1 parent 165a3af commit 536cb7b

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

kits/rokt/rokt/build.gradle

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '2.0.20'
2+
ext.kotlin_version = '2.1.20'
33
if (!project.hasProperty('version') || project.version.equals('unspecified')) {
44
project.version = '+'
55
}
@@ -20,7 +20,7 @@ buildscript {
2020
plugins {
2121
id "org.sonarqube" version "3.5.0.2730"
2222
id "org.jlleitschuh.gradle.ktlint" version "13.0.0"
23-
id "org.jetbrains.kotlin.plugin.compose" version "2.0.20"
23+
id "org.jetbrains.kotlin.plugin.compose" version "2.1.20"
2424
}
2525

2626
sonarqube {
@@ -35,6 +35,13 @@ apply plugin: 'org.jlleitschuh.gradle.ktlint'
3535
apply plugin: 'kotlin-android'
3636
apply plugin: 'com.mparticle.kit'
3737

38+
if (extensions.findByName('mparticleMavenPublish') != null) {
39+
mparticleMavenPublish {
40+
artifactId.set('android-rokt-kit')
41+
description.set('Rokt kit for the mParticle SDK')
42+
}
43+
}
44+
3845
android {
3946
namespace 'com.mparticle.kits.rokt'
4047
defaultConfig {
@@ -70,12 +77,13 @@ repositories {
7077
}
7178

7279
dependencies {
73-
def composeBom = platform('androidx.compose:compose-bom:2023.10.01')
80+
def composeBom = platform('androidx.compose:compose-bom:2026.05.01')
7481
implementation composeBom
7582
implementation 'androidx.annotation:annotation:1.5.0'
76-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
83+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0'
7784
implementation 'androidx.compose.runtime:runtime'
78-
api 'com.rokt:roktsdk:5.1.0'
85+
api 'com.rokt:roktsdk:6.0.0-rc.1'
86+
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
7987

8088
testImplementation files('libs/java-json.jar')
8189
testImplementation 'com.squareup.assertj:assertj-android:1.2.0'
@@ -85,7 +93,7 @@ dependencies {
8593
testImplementation 'org.powermock:powermock-api-mockito2:2.0.2'
8694
testImplementation 'org.powermock:powermock-core:2.0.7'
8795
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
88-
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4'
96+
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0'
8997
compileOnly 'androidx.compose.ui:ui'
9098
compileOnly 'androidx.compose.material:material'
9199
compileOnly 'androidx.compose.ui:ui-tooling'

0 commit comments

Comments
 (0)