Skip to content

Commit 970ec03

Browse files
Address review comments
1 parent 5d37143 commit 970ec03

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ buildscript {
1818

1919
plugins {
2020
id "org.sonarqube" version "3.5.0.2730"
21-
id "org.jlleitschuh.gradle.ktlint" version "13.0.0"
2221
}
2322

2423
sonarqube {

src/main/kotlin/com/mparticle/kits/RoktKit.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,19 +293,19 @@ class RoktKit :
293293
Rokt.close()
294294
}
295295

296-
override fun callRoktComposable(attributes: MutableMap<String, String>, user: FilteredMParticleUser?) {
296+
override fun enrichAttributes(attributes: MutableMap<String, String>, user: FilteredMParticleUser?) {
297297
val finalAttributes = prepareFinalAttributes(user, attributes)
298298
deferredAttributes?.complete(finalAttributes)
299299
}
300300

301-
fun runComposableWithCallback(
301+
suspend fun runComposableWithCallback(
302302
attributes: Map<String, String>,
303303
mpRoktEventCallback: MpRoktEventCallback?,
304304
onResult: (Map<String, String>, RoktCallback) -> Unit
305305
) {
306306
val instance = MParticle.getInstance()
307307
deferredAttributes = CompletableDeferred()
308-
instance?.Internal()?.kitManager?.callExecuteForComposable(attributes)
308+
instance?.Internal()?.kitManager?.prepareAttributesAsync(attributes)
309309
this.mpRoktEventCallback = mpRoktEventCallback
310310
CoroutineScope(Dispatchers.Default).launch {
311311
val resultAttributes = deferredAttributes!!.await()

0 commit comments

Comments
 (0)