From da786fd70e27c047a1c9580d837d5e1c831ad5dd Mon Sep 17 00:00:00 2001 From: christine Date: Thu, 28 Sep 2023 12:29:45 +0300 Subject: [PATCH] sc-93182:Product removed from cart event --- android/build.gradle | 5 +---- android/src/main/java/com/rnmovableink/RNMovableInkModule.kt | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 8d6ada4..87117ae 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -80,10 +80,7 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - - // implementation "androidx.annotation:annotation:1.6.0" - // implementation 'androidx.core:core-ktx:1.10.0' - implementation "com.movableink.sdk:inked:1.1.2" + implementation "com.movableink.sdk:inked:1.2.0" } if (isNewArchitectureEnabled()) { diff --git a/android/src/main/java/com/rnmovableink/RNMovableInkModule.kt b/android/src/main/java/com/rnmovableink/RNMovableInkModule.kt index 5bed180..58a9a14 100644 --- a/android/src/main/java/com/rnmovableink/RNMovableInkModule.kt +++ b/android/src/main/java/com/rnmovableink/RNMovableInkModule.kt @@ -56,7 +56,10 @@ class RNMovableInkModule(reactContext: ReactApplicationContext) : fun categoryViewed(properties: ReadableMap) { MIClient.categoryViewed(properties.toHashMap()) } - + @ReactMethod + fun productRemoved(properties: ReadableMap) { + MIClient.productRemoved(properties.toHashMap()) + } @ReactMethod fun logEvent(name: String, properties: ReadableMap) { MIClient.logEvent(name, properties.toHashMap())