File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
main/java/com/mparticle/react/rokt
newarch/java/com/mparticle/react/rokt
oldarch/java/com/mparticle/react/rokt Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import com.mparticle.MParticle
1515import com.mparticle.MpRoktEventCallback
1616import com.mparticle.RoktEvent
1717import com.mparticle.UnloadReasons
18+ import com.mparticle.WrapperSdk
1819import com.mparticle.rokt.CacheConfig
1920import com.mparticle.rokt.RoktConfig
2021import kotlinx.coroutines.Job
@@ -24,6 +25,11 @@ import kotlinx.coroutines.launch
2425class MPRoktModuleImpl (
2526 private val reactContext : ReactApplicationContext ,
2627) {
28+
29+ init {
30+ MParticle .getInstance()?.setWrapperSdk(WrapperSdk .WrapperSdkReactNative , " " )
31+ }
32+
2733 private var roktEventHandler: MpRoktEventCallback ? = null
2834
2935 private val eventSubscriptions = mutableMapOf<String , Job ?>()
Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ import java.util.concurrent.CountDownLatch
1717class MPRoktModule (
1818 private val reactContext : ReactApplicationContext ,
1919) : NativeMPRoktSpec(reactContext) {
20- init {
21- MParticle .getInstance()?.setWrapperSdk(WrapperSdk .WrapperSdkReactNative , " " )
22- }
2320
2421 private val impl = MPRoktModuleImpl (reactContext)
2522
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ import java.lang.ref.WeakReference
1515class MPRoktModule (
1616 private val reactContext : ReactApplicationContext ,
1717) : NativeMPRoktSpec(reactContext) {
18- init {
19- MParticle .getInstance()?.setWrapperSdk(WrapperSdk .WrapperSdkReactNative , " " )
20- }
2118
2219 private val impl = MPRoktModuleImpl (reactContext)
2320
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ - (void)selectPlacements:(NSString *)identifer
9090 MPRoktConfig *config = [self buildRoktConfigFromDict: roktConfig];
9191#endif
9292
93+ [MParticle _setWrapperSdk_internal: MPWrapperSdkReactNative version: @" " ];
9394 // Create callback implementation
9495 MPRoktEventCallback *callbacks = [[MPRoktEventCallback alloc ] init ];
9596
You can’t perform that action at this time.
0 commit comments