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())