@react-native-ohos/react-native-ble-plx 3.2.1-rc.1
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/LICENSE +202 -0
- package/README.OpenSource +11 -0
- package/README.md +9 -0
- package/app.plugin.js +1 -0
- package/harmony/rn_bleplx/build-profile.json5 +8 -0
- package/harmony/rn_bleplx/hvigorfile.ts +2 -0
- package/harmony/rn_bleplx/index.ets +27 -0
- package/harmony/rn_bleplx/obfuscation-rules.txt +18 -0
- package/harmony/rn_bleplx/oh-package.json5 +13 -0
- package/harmony/rn_bleplx/src/main/cpp/BlePlxPackage.h +36 -0
- package/harmony/rn_bleplx/src/main/cpp/CMakeLists.txt +9 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/RNOH/generated/BaseReactNativeBlePlxPackage.h +65 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/RNOH/generated/turbo_modules/BlePlx.cpp +59 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/RNOH/generated/turbo_modules/BlePlx.h +16 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/react/renderer/components/react_native_ble_plx/ComponentDescriptors.h +22 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/react/renderer/components/react_native_ble_plx/EventEmitters.cpp +18 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/react/renderer/components/react_native_ble_plx/EventEmitters.h +19 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/react/renderer/components/react_native_ble_plx/Props.cpp +21 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/react/renderer/components/react_native_ble_plx/Props.h +20 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/react/renderer/components/react_native_ble_plx/ShadowNodes.cpp +19 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/react/renderer/components/react_native_ble_plx/ShadowNodes.h +25 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/react/renderer/components/react_native_ble_plx/States.cpp +18 -0
- package/harmony/rn_bleplx/src/main/cpp/generated/react/renderer/components/react_native_ble_plx/States.h +23 -0
- package/harmony/rn_bleplx/src/main/ets/BleDevice.ts +99 -0
- package/harmony/rn_bleplx/src/main/ets/BleModule.ts +1219 -0
- package/harmony/rn_bleplx/src/main/ets/BlePlxInterface.ts +27 -0
- package/harmony/rn_bleplx/src/main/ets/BlePlxModule.ts +246 -0
- package/harmony/rn_bleplx/src/main/ets/BlePlxPackage.ets +47 -0
- package/harmony/rn_bleplx/src/main/ets/BlePlxPackage.ts +46 -0
- package/harmony/rn_bleplx/src/main/ets/Characteristic.ts +179 -0
- package/harmony/rn_bleplx/src/main/ets/CommonConstants.ts +30 -0
- package/harmony/rn_bleplx/src/main/ets/Descriptor.ts +143 -0
- package/harmony/rn_bleplx/src/main/ets/Service.ts +85 -0
- package/harmony/rn_bleplx/src/main/ets/common/BleError.ts +90 -0
- package/harmony/rn_bleplx/src/main/ets/common/BleErrorToJsObjectConverter.ts +63 -0
- package/harmony/rn_bleplx/src/main/ets/common/BleEvent.ts +33 -0
- package/harmony/rn_bleplx/src/main/ets/common/BleUtils.ts +86 -0
- package/harmony/rn_bleplx/src/main/ets/common/IdGenerator.ts +49 -0
- package/harmony/rn_bleplx/src/main/ets/common/IdGeneratorKey.ts +70 -0
- package/harmony/rn_bleplx/src/main/ets/common/InstanceIdGenerator.ts +37 -0
- package/harmony/rn_bleplx/src/main/ets/common/Logger.ts +64 -0
- package/harmony/rn_bleplx/src/main/ets/common/PermissionHandler.ts +98 -0
- package/harmony/rn_bleplx/src/main/ets/common/ServiceFactory.ts +37 -0
- package/harmony/rn_bleplx/src/main/ets/generated/components/ts.ts +5 -0
- package/harmony/rn_bleplx/src/main/ets/generated/index.ets +5 -0
- package/harmony/rn_bleplx/src/main/ets/generated/ts.ts +6 -0
- package/harmony/rn_bleplx/src/main/ets/generated/turboModules/BlePlx.ts +100 -0
- package/harmony/rn_bleplx/src/main/ets/generated/turboModules/ts.ts +5 -0
- package/harmony/rn_bleplx/src/main/module.json5 +7 -0
- package/harmony/rn_bleplx/ts.ets +26 -0
- package/harmony/rn_bleplx/ts.ts +26 -0
- package/harmony/rn_bleplx.har +0 -0
- package/package.json +185 -0
- package/src/BleError.js +555 -0
- package/src/BleManager.js +1287 -0
- package/src/BleModule.js +847 -0
- package/src/Characteristic.js +166 -0
- package/src/Descriptor.js +82 -0
- package/src/Device.js +370 -0
- package/src/NativeBlePlx.ts +121 -0
- package/src/Service.js +188 -0
- package/src/TypeDefinition.js +360 -0
- package/src/Utils.js +26 -0
- package/src/index.d.ts +2113 -0
- package/src/index.js +20 -0
package/src/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { BleError, BleErrorCode, BleAndroidErrorCode, BleIOSErrorCode, BleATTErrorCode } from './BleError'
|
|
2
|
+
export { BleManager } from './BleManager'
|
|
3
|
+
export { Device } from './Device'
|
|
4
|
+
export { Service } from './Service'
|
|
5
|
+
export { Characteristic } from './Characteristic'
|
|
6
|
+
export { Descriptor } from './Descriptor'
|
|
7
|
+
export { fullUUID } from './Utils'
|
|
8
|
+
export { State, LogLevel, ConnectionPriority, ScanCallbackType, ScanMode, MatchMode, PhyType } from './TypeDefinition'
|
|
9
|
+
|
|
10
|
+
export type {
|
|
11
|
+
Subscription,
|
|
12
|
+
DeviceId,
|
|
13
|
+
UUID,
|
|
14
|
+
TransactionId,
|
|
15
|
+
Base64,
|
|
16
|
+
ScanOptions,
|
|
17
|
+
ConnectionOptions,
|
|
18
|
+
BleManagerOptions,
|
|
19
|
+
BleRestoredState
|
|
20
|
+
} from './TypeDefinition'
|