@@ -63,10 +63,7 @@ class RoktKit :
6363
6464 private var deferredAttributes: CompletableDeferred <Map <String , String >>? = null
6565
66- public override fun onKitCreate (
67- settings : Map <String , String >,
68- ctx : Context
69- ): List <ReportingMessage > {
66+ public override fun onKitCreate (settings : Map <String , String >, ctx : Context ): List <ReportingMessage > {
7067 register(this )
7168 applicationContext = ctx.applicationContext
7269 val roktTagId = settings[ROKT_ACCOUNT_ID ]
@@ -206,13 +203,13 @@ class RoktKit :
206203 // Pass placeholders and fontTypefaces only if they are not empty or null
207204 placeholders.takeIf { it?.isNotEmpty() == true },
208205 fontTypefaces.takeIf { it?.isNotEmpty() == true },
209- roktConfig
206+ roktConfig,
210207 )
211208 }
212209
213210 private fun prepareFinalAttributes (
214211 filterUser : FilteredMParticleUser ? ,
215- attributes : Map <String , String >?
212+ attributes : Map <String , String >? ,
216213 ): Map <String , String > {
217214 val finalAttributes = mutableMapOf<String , String >()
218215 filterUser?.userAttributes?.let { userAttrs ->
@@ -301,7 +298,7 @@ class RoktKit :
301298 suspend fun runComposableWithCallback (
302299 attributes : Map <String , String >,
303300 mpRoktEventCallback : MpRoktEventCallback ? ,
304- onResult : (Map <String , String >, RoktCallback ) -> Unit
301+ onResult : (Map <String , String >, RoktCallback ) -> Unit ,
305302 ) {
306303 val instance = MParticle .getInstance()
307304 deferredAttributes = CompletableDeferred ()
0 commit comments