@doorstepai/dropoff-sdk 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,7 +86,7 @@ def kotlin_version = getExtOrDefault("kotlinVersion")
86
86
  dependencies {
87
87
  implementation "com.facebook.react:react-android"
88
88
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
89
- implementation("ai.doorstep.com:doorstepai-dropoff-sdk:1.0.7")
89
+ implementation("ai.doorstep.com:doorstepai-dropoff-sdk:1.0.8")
90
90
  api "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1"
91
91
  }
92
92
 
@@ -9,6 +9,10 @@ import com.facebook.react.bridge.Promise
9
9
  import com.doorstepai.sdks.tracking.DoorstepAI
10
10
  import com.doorstepai.sdks.tracking.AddressType
11
11
  import com.facebook.react.bridge.ReadableMap
12
+ import kotlinx.coroutines.Dispatchers
13
+ import kotlinx.coroutines.CoroutineScope
14
+ import kotlinx.coroutines.launch
15
+
12
16
 
13
17
  class DoorstepAIModule(private val reactContext: ReactApplicationContext) :
14
18
  ReactContextBaseJavaModule(reactContext) {
@@ -126,10 +130,10 @@ class DoorstepAIModule(private val reactContext: ReactApplicationContext) :
126
130
  fun enableDevMode(promise: Promise) {
127
131
  CoroutineScope(Dispatchers.IO).launch {
128
132
  try {
129
- android.util.Log.i("DoorstepAI", "Attempting to enable dev mode...")
133
+ /*android.util.Log.i("DoorstepAI", "Attempting to enable dev mode...")
130
134
  val result = DoorstepAI.enableDevMode()
131
135
  android.util.Log.i("DoorstepAI", "Dev mode enabled: $result")
132
- promise.resolve(result)
136
+ promise.resolve(result)*/
133
137
  } catch (e: Exception) {
134
138
  promise.reject("DEV_MODE_ERROR", e.message ?: "Failed to enable dev mode")
135
139
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doorstepai/dropoff-sdk",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "doorstep.ai dropoff sdk for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",