@doorstepai/dropoff-sdk 1.0.18 → 1.0.20
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.
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
89
|
+
implementation("ai.doorstep.com:doorstepai-dropoff-sdk:1.0.9")
|
|
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
|
}
|