From f0a76eb075f270f4af56a41c15e66bf101e945d1 Mon Sep 17 00:00:00 2001 From: ByteZhang Date: Wed, 9 Apr 2025 13:11:55 +0800 Subject: [PATCH] fix: android build --- android/src/main/java/so/onekey/lib/ble/utils/BleUtilsModule.kt | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/so/onekey/lib/ble/utils/BleUtilsModule.kt b/android/src/main/java/so/onekey/lib/ble/utils/BleUtilsModule.kt index ad70587..36c0ba7 100644 --- a/android/src/main/java/so/onekey/lib/ble/utils/BleUtilsModule.kt +++ b/android/src/main/java/so/onekey/lib/ble/utils/BleUtilsModule.kt @@ -32,7 +32,7 @@ class BleUtilsModule(private val reactContext: ReactApplicationContext) : private fun getBluetoothManager(): BluetoothManager? { if (bluetoothManager == null) { bluetoothManager = - reactContext.getSystemService(Context.BLUETOOTH_SERVICE) + reactContext.getSystemService(Context.BLUETOOTH_SERVICE) as BluetoothManager? } return bluetoothManager } diff --git a/package.json b/package.json index 2f2dcca..ecd823e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onekeyfe/react-native-ble-utils", - "version": "0.1.1", + "version": "0.1.2", "description": "ble uilts", "source": "./src/index.tsx", "main": "./dist/commonjs/index.js",