react-native-move-sdk 2.12.0 → 2.13.0

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.
@@ -144,7 +144,7 @@ dependencies {
144
144
  // noinspection GradleDynamicVersion
145
145
 
146
146
  implementation "com.facebook.react:react-native:+"
147
- api "io.dolphin.move:move-sdk:2.12.0.92"
147
+ api "io.dolphin.move:move-sdk:2.13.0.94"
148
148
 
149
149
  testImplementation 'junit:junit:4.13.2'
150
150
  testImplementation "androidx.test:core:1.4.0"
@@ -17,15 +17,18 @@ import io.dolphin.move.MoveDevice
17
17
  const val SHARED_PREF_CONNECTIONS_NAME = "move-react-connections"
18
18
 
19
19
  class WrapperBtConnectionsReceiver : BroadcastReceiver() {
20
- override fun onReceive(context: Context, intent: Intent?) {
20
+ override fun onReceive(context: Context, intent: Intent) {
21
+ if (BluetoothDevice.ACTION_ACL_CONNECTED != intent.action
22
+ && BluetoothDevice.ACTION_ACL_DISCONNECTED != intent.action
23
+ ) return
21
24
  val device: BluetoothDevice =
22
25
  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
23
- intent?.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE, BluetoothDevice::class.java)
26
+ intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE, BluetoothDevice::class.java)
24
27
  } else {
25
- intent?.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)
28
+ intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)
26
29
  } ?: return
27
30
 
28
- when (intent?.action) {
31
+ when (intent.action) {
29
32
  BluetoothDevice.ACTION_ACL_CONNECTED -> {
30
33
  handleDeviceConnection(context.applicationContext, device, true)
31
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-move-sdk",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "React Native library for MOVE SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -12,11 +12,11 @@ Pod::Spec.new do |s|
12
12
  s.license = package["license"]
13
13
  s.authors = package["author"]
14
14
 
15
- s.platforms = { :ios => "12.0" }
15
+ s.platforms = { :ios => "13.0" }
16
16
 
17
17
  s.source = { :git => "https://github.com/***", :tag=> "v#{s.version}" }
18
18
  s.source_files = "ios/**/*.{h,m,mm,swift}"
19
19
 
20
20
  s.dependency 'React'
21
- s.dependency 'DolphinMoveSDK', '2.12.0.310'
21
+ s.dependency 'DolphinMoveSDK', '2.13.0.315'
22
22
  end