react-native-move-sdk 2.6.4 → 2.6.6
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 +1 -1
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/in/dolph/move/sdk/NativeMoveSdkWrapper.kt +4 -1
- package/android/src/main/java/in/dolph/move/sdk/{BluetoothConnectionsReceiver.kt → WrapperBtConnectionsReceiver.kt} +1 -1
- package/package.json +1 -1
- package/react-native-move-sdk.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -142,7 +142,7 @@ dependencies {
|
|
|
142
142
|
// noinspection GradleDynamicVersion
|
|
143
143
|
|
|
144
144
|
implementation "com.facebook.react:react-native:+"
|
|
145
|
-
api "io.dolphin.move:move-sdk:2.6.
|
|
145
|
+
api "io.dolphin.move:move-sdk:2.6.4.77"
|
|
146
146
|
|
|
147
147
|
testImplementation 'junit:junit:4.13.2'
|
|
148
148
|
testImplementation "androidx.test:core:1.4.0"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
package="in.dolph.move.sdk">
|
|
3
3
|
<application>
|
|
4
4
|
<receiver
|
|
5
|
-
android:name="in.dolph.move.sdk.
|
|
5
|
+
android:name="in.dolph.move.sdk.WrapperBtConnectionsReceiver"
|
|
6
6
|
android:exported="true">
|
|
7
7
|
<intent-filter>
|
|
8
8
|
<action android:name="android.bluetooth.device.action.ACL_CONNECTED" />
|
|
@@ -234,7 +234,10 @@ class NativeMoveSdkWrapper(private val context: Context) : MoveSdk.StateListener
|
|
|
234
234
|
|
|
235
235
|
promise?.resolve(PROMISE_OK)
|
|
236
236
|
} catch (t: Throwable) {
|
|
237
|
-
|
|
237
|
+
val message = "SETUP_ERROR: ${t.message}"
|
|
238
|
+
Log.e(MoveSdkModule.LOG_TAG, message, t)
|
|
239
|
+
emitDeviceEvent(EVENT_MOVE_SDK_APP, message)
|
|
240
|
+
promise?.reject(Exception(message))
|
|
238
241
|
}
|
|
239
242
|
}
|
|
240
243
|
|
|
@@ -16,7 +16,7 @@ import io.dolphin.move.MoveDevice
|
|
|
16
16
|
|
|
17
17
|
const val SHARED_PREF_CONNECTIONS_NAME = "move-react-connections"
|
|
18
18
|
|
|
19
|
-
class
|
|
19
|
+
class WrapperBtConnectionsReceiver : BroadcastReceiver() {
|
|
20
20
|
override fun onReceive(context: Context, intent: Intent?) {
|
|
21
21
|
val device: BluetoothDevice =
|
|
22
22
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
|
package/package.json
CHANGED