Skip to content

Commit 3eec545

Browse files
feat: SQDSDKS-7428 - Update imports used for callbacks and unload
2 parents 1b4d07e + 647a6ad commit 3eec545

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import android.os.Build
99
import com.mparticle.BuildConfig
1010
import com.mparticle.MParticle
1111
import com.mparticle.MParticle.IdentityType
12+
import com.mparticle.MpRoktEventCallback
13+
import com.mparticle.UnloadReasons
1214
import com.mparticle.WrapperSdk
1315
import com.mparticle.WrapperSdkVersion
1416
import com.mparticle.commerce.CommerceEvent
@@ -35,7 +37,7 @@ import java.math.BigDecimal
3537
*/
3638
class RoktKit : KitIntegration(), CommerceListener, IdentityListener, RoktListener, Rokt.RoktCallback {
3739
private var applicationContext: Context? = null
38-
private var mpRoktEventCallback: MParticle.MpRoktEventCallback? = null
40+
private var mpRoktEventCallback: MpRoktEventCallback? = null
3941
override fun getName(): String = NAME
4042

4143
override fun getInstance(): RoktKit = this
@@ -140,7 +142,7 @@ class RoktKit : KitIntegration(), CommerceListener, IdentityListener, RoktListen
140142
override fun execute(
141143
viewName: String,
142144
attributes: Map<String, String>,
143-
mpRoktEventCallback: MParticle.MpRoktEventCallback?,
145+
mpRoktEventCallback: MpRoktEventCallback?,
144146
placeHolders: MutableMap<String, WeakReference<RoktEmbeddedView>>?,
145147
fontTypefaces: MutableMap<String, WeakReference<Typeface>>?,
146148
filterUser: FilteredMParticleUser?,
@@ -310,14 +312,14 @@ class RoktKit : KitIntegration(), CommerceListener, IdentityListener, RoktListen
310312
override fun onUnload(reason: Rokt.UnloadReasons) : Unit {
311313
mpRoktEventCallback?.onUnload(
312314
when (reason) {
313-
Rokt.UnloadReasons.NO_OFFERS -> MParticle.UnloadReasons.NO_OFFERS
314-
Rokt.UnloadReasons.FINISHED -> MParticle.UnloadReasons.FINISHED
315-
Rokt.UnloadReasons.TIMEOUT -> MParticle.UnloadReasons.TIMEOUT
316-
Rokt.UnloadReasons.NETWORK_ERROR -> MParticle.UnloadReasons.NETWORK_ERROR
317-
Rokt.UnloadReasons.NO_WIDGET -> MParticle.UnloadReasons.NO_WIDGET
318-
Rokt.UnloadReasons.INIT_FAILED -> MParticle.UnloadReasons.INIT_FAILED
319-
Rokt.UnloadReasons.UNKNOWN_PLACEHOLDER -> MParticle.UnloadReasons.UNKNOWN_PLACEHOLDER
320-
Rokt.UnloadReasons.UNKNOWN -> MParticle.UnloadReasons.UNKNOWN
315+
Rokt.UnloadReasons.NO_OFFERS -> UnloadReasons.NO_OFFERS
316+
Rokt.UnloadReasons.FINISHED -> UnloadReasons.FINISHED
317+
Rokt.UnloadReasons.TIMEOUT -> UnloadReasons.TIMEOUT
318+
Rokt.UnloadReasons.NETWORK_ERROR -> UnloadReasons.NETWORK_ERROR
319+
Rokt.UnloadReasons.NO_WIDGET -> UnloadReasons.NO_WIDGET
320+
Rokt.UnloadReasons.INIT_FAILED -> UnloadReasons.INIT_FAILED
321+
Rokt.UnloadReasons.UNKNOWN_PLACEHOLDER -> UnloadReasons.UNKNOWN_PLACEHOLDER
322+
Rokt.UnloadReasons.UNKNOWN -> UnloadReasons.UNKNOWN
321323
}
322324
)
323325
}

0 commit comments

Comments
 (0)