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.
@@ -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.2.76"
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.BluetoothConnectionsReceiver"
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
- promise?.reject(Exception("SETUP_ERROR"))
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 BluetoothConnectionsReceiver : BroadcastReceiver() {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-move-sdk",
3
- "version": "2.6.4",
3
+ "version": "2.6.6",
4
4
  "description": "React Native library for MOVE SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
18
18
  s.source_files = "ios/**/*.{h,m,mm,swift}"
19
19
 
20
20
  s.dependency 'React'
21
- s.dependency 'DolphinMoveSDK', '2.6.3.270'
21
+ s.dependency 'DolphinMoveSDK', '2.6.4.271'
22
22
  end