simplejsble 0.0.43 → 0.0.45

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.
@@ -10,7 +10,7 @@
10
10
  <key>HeadersPath</key>
11
11
  <string>Headers</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>ios-arm64</string>
13
+ <string>ios-arm64-simulator</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>libsimpleble.a</string>
16
16
  <key>SupportedArchitectures</key>
@@ -19,6 +19,8 @@
19
19
  </array>
20
20
  <key>SupportedPlatform</key>
21
21
  <string>ios</string>
22
+ <key>SupportedPlatformVariant</key>
23
+ <string>simulator</string>
22
24
  </dict>
23
25
  <dict>
24
26
  <key>BinaryPath</key>
@@ -26,17 +28,16 @@
26
28
  <key>HeadersPath</key>
27
29
  <string>Headers</string>
28
30
  <key>LibraryIdentifier</key>
29
- <string>ios-arm64-simulator</string>
31
+ <string>macos-arm64_x86_64</string>
30
32
  <key>LibraryPath</key>
31
33
  <string>libsimpleble.a</string>
32
34
  <key>SupportedArchitectures</key>
33
35
  <array>
34
36
  <string>arm64</string>
37
+ <string>x86_64</string>
35
38
  </array>
36
39
  <key>SupportedPlatform</key>
37
- <string>ios</string>
38
- <key>SupportedPlatformVariant</key>
39
- <string>simulator</string>
40
+ <string>macos</string>
40
41
  </dict>
41
42
  <dict>
42
43
  <key>BinaryPath</key>
@@ -44,16 +45,15 @@
44
45
  <key>HeadersPath</key>
45
46
  <string>Headers</string>
46
47
  <key>LibraryIdentifier</key>
47
- <string>macos-arm64_x86_64</string>
48
+ <string>ios-arm64</string>
48
49
  <key>LibraryPath</key>
49
50
  <string>libsimpleble.a</string>
50
51
  <key>SupportedArchitectures</key>
51
52
  <array>
52
53
  <string>arm64</string>
53
- <string>x86_64</string>
54
54
  </array>
55
55
  <key>SupportedPlatform</key>
56
- <string>macos</string>
56
+ <string>ios</string>
57
57
  </dict>
58
58
  </array>
59
59
  <key>CFBundlePackageType</key>
package/lib/index.d.ts CHANGED
@@ -2,5 +2,4 @@ import type { Adapter } from "./specs/Adapter.nitro";
2
2
  import type { Peripheral, BluetoothAddressType } from "./specs/Peripheral.nitro";
3
3
  export type { Adapter, Peripheral, BluetoothAddressType };
4
4
  export declare const HybridAdapter: Adapter;
5
- export declare const HybridPeripheral: Peripheral;
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEjF,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAE1D,eAAO,MAAM,aAAa,SAAsD,CAAC;AACjF,eAAO,MAAM,gBAAgB,YAA4D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEjF,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAE1D,eAAO,MAAM,aAAa,SAAsD,CAAC"}
package/lib/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  import { NitroModules } from "react-native-nitro-modules";
2
2
  export const HybridAdapter = NitroModules.createHybridObject("Adapter");
3
- export const HybridPeripheral = NitroModules.createHybridObject("Peripheral");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplejsble",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "description": "React Native Bluetooth Low Energy library using SimpleBLE with Nitro Modules",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",
package/src/index.ts CHANGED
@@ -4,5 +4,4 @@ import type { Peripheral, BluetoothAddressType } from "./specs/Peripheral.nitro"
4
4
 
5
5
  export type { Adapter, Peripheral, BluetoothAddressType };
6
6
 
7
- export const HybridAdapter = NitroModules.createHybridObject<Adapter>("Adapter");
8
- export const HybridPeripheral = NitroModules.createHybridObject<Peripheral>("Peripheral");
7
+ export const HybridAdapter = NitroModules.createHybridObject<Adapter>("Adapter");
@@ -1,50 +0,0 @@
1
- # CMake Install Options Reference
2
-
3
- ## Install Target Destinations
4
-
5
- | Destination | Purpose | File Types |
6
- |-------------|---------|------------|
7
- | `ARCHIVE` | Static libraries and import libraries | `.a`, `.lib` (Windows import libs) |
8
- | `LIBRARY` | Shared libraries | `.so`, `.dylib` |
9
- | `RUNTIME` | Executables and DLLs | `.exe`, `.dll` |
10
-
11
- ## Recommended Variables (via `GNUInstallDirs`)
12
-
13
- ```cmake
14
- include(GNUInstallDirs)
15
- ```
16
-
17
- | Variable | Default Value | Purpose |
18
- |----------|---------------|---------|
19
- | `CMAKE_INSTALL_LIBDIR` | `lib` | Library installation directory |
20
- | `CMAKE_INSTALL_INCLUDEDIR` | `include` | Header installation directory |
21
- | `CMAKE_INSTALL_BINDIR` | `bin` | Binary/executable installation directory |
22
-
23
- ## Current iOS CMakeLists.txt
24
-
25
- ```cmake
26
- install(TARGETS simpleble ARCHIVE DESTINATION lib)
27
-
28
- install(DIRECTORY ${PROJECT_ROOT_DIR}/simpleble/include/simpleble/ DESTINATION include/simpleble)
29
- install(DIRECTORY ${CMAKE_BINARY_DIR}/simpleble/export/simpleble/ DESTINATION include/simpleble)
30
- install(FILES ${PROJECT_ROOT_DIR}/dependencies/external/kvn/kvn_bytearray.h DESTINATION include/simpleble/kvn)
31
- ```
32
-
33
- ## Recommended Update (matching main simpleble pattern)
34
-
35
- ```cmake
36
- include(GNUInstallDirs)
37
-
38
- install(TARGETS simpleble ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
39
-
40
- install(DIRECTORY ${PROJECT_ROOT_DIR}/simpleble/include/simpleble/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/simpleble)
41
- install(DIRECTORY ${CMAKE_BINARY_DIR}/simpleble/export/simpleble/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/simpleble)
42
- install(FILES ${PROJECT_ROOT_DIR}/dependencies/external/kvn/kvn_bytearray.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/simpleble/kvn)
43
- ```
44
-
45
- ## Notes
46
-
47
- - For iOS static builds (`BUILD_SHARED_LIBS OFF`), only `ARCHIVE` is needed
48
- - `LIBRARY` is unnecessary since we're not building shared libraries
49
- - Using CMake variables instead of hardcoded paths improves portability
50
- - Header installation is required separately from library installation for XCFramework builds