munim-bluetooth 0.3.19 → 0.3.20
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.
|
@@ -25,25 +25,8 @@ import com.margelo.nitro.core.HybridObject
|
|
|
25
25
|
"LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName"
|
|
26
26
|
)
|
|
27
27
|
abstract class HybridMunimBluetoothSpec: HybridObject() {
|
|
28
|
-
@DoNotStrip
|
|
29
|
-
private var mHybridData: HybridData = initHybrid()
|
|
30
|
-
|
|
31
|
-
init {
|
|
32
|
-
super.updateNative(mHybridData)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
override fun updateNative(hybridData: HybridData) {
|
|
36
|
-
mHybridData = hybridData
|
|
37
|
-
super.updateNative(hybridData)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Default implementation of `HybridObject.toString()`
|
|
41
|
-
override fun toString(): String {
|
|
42
|
-
return "[HybridObject MunimBluetooth]"
|
|
43
|
-
}
|
|
44
|
-
|
|
45
28
|
// Properties
|
|
46
|
-
|
|
29
|
+
|
|
47
30
|
|
|
48
31
|
// Methods
|
|
49
32
|
@DoNotStrip
|
|
@@ -126,7 +109,21 @@ abstract class HybridMunimBluetoothSpec: HybridObject() {
|
|
|
126
109
|
@Keep
|
|
127
110
|
abstract fun removeListeners(count: Double): Unit
|
|
128
111
|
|
|
129
|
-
|
|
112
|
+
// Default implementation of `HybridObject.toString()`
|
|
113
|
+
override fun toString(): String {
|
|
114
|
+
return "[HybridObject MunimBluetooth]"
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// C++ backing class
|
|
118
|
+
@DoNotStrip
|
|
119
|
+
@Keep
|
|
120
|
+
protected open class CxxPart(javaPart: HybridMunimBluetoothSpec): HybridObject.CxxPart(javaPart) {
|
|
121
|
+
// C++ JHybridMunimBluetoothSpec::CxxPart::initHybrid(...)
|
|
122
|
+
external override fun initHybrid(): HybridData
|
|
123
|
+
}
|
|
124
|
+
override fun createCxxPart(): CxxPart {
|
|
125
|
+
return CxxPart(this)
|
|
126
|
+
}
|
|
130
127
|
|
|
131
128
|
companion object {
|
|
132
129
|
protected const val TAG = "HybridMunimBluetoothSpec"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "munim-bluetooth",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"description": "A comprehensive React Native library for all your Bluetooth Low Energy (BLE) needs, supporting both peripheral and central roles with Expo support",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
"@semantic-release/git": "^10.0.1",
|
|
86
86
|
"@types/jest": "^29.5.14",
|
|
87
87
|
"@types/react": "19.2.8",
|
|
88
|
-
"nitrogen": "0.
|
|
88
|
+
"nitrogen": "0.35.2",
|
|
89
89
|
"react": "19.2.3",
|
|
90
90
|
"react-native": "0.83.1",
|
|
91
91
|
"react-native-builder-bob": "^0.40.17",
|
|
92
|
-
"react-native-nitro-modules": "0.
|
|
92
|
+
"react-native-nitro-modules": "0.35.2",
|
|
93
93
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
94
94
|
"semantic-release": "^25.0.2",
|
|
95
95
|
"typescript": "^5.8.3"
|