Skip to content

Commit 77363df

Browse files
fix: android build (#3)
1 parent 32f3d39 commit 77363df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/src/main/java/so/onekey/lib/ble/utils/BleUtilsModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class BleUtilsModule(private val reactContext: ReactApplicationContext) :
3232
private fun getBluetoothManager(): BluetoothManager? {
3333
if (bluetoothManager == null) {
3434
bluetoothManager =
35-
reactContext.getSystemService(Context.BLUETOOTH_SERVICE)
35+
reactContext.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager?
3636
}
3737
return bluetoothManager
3838
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@onekeyfe/react-native-ble-utils",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "ble uilts",
55
"source": "./src/index.tsx",
66
"main": "./dist/commonjs/index.js",

0 commit comments

Comments
 (0)