simplejsble 0.0.50 → 0.0.51

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-simulator</string>
13
+ <string>ios-arm64</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>libsimpleble.a</string>
16
16
  <key>SupportedArchitectures</key>
@@ -19,8 +19,6 @@
19
19
  </array>
20
20
  <key>SupportedPlatform</key>
21
21
  <string>ios</string>
22
- <key>SupportedPlatformVariant</key>
23
- <string>simulator</string>
24
22
  </dict>
25
23
  <dict>
26
24
  <key>BinaryPath</key>
@@ -28,7 +26,7 @@
28
26
  <key>HeadersPath</key>
29
27
  <string>Headers</string>
30
28
  <key>LibraryIdentifier</key>
31
- <string>ios-arm64</string>
29
+ <string>ios-arm64-simulator</string>
32
30
  <key>LibraryPath</key>
33
31
  <string>libsimpleble.a</string>
34
32
  <key>SupportedArchitectures</key>
@@ -37,6 +35,8 @@
37
35
  </array>
38
36
  <key>SupportedPlatform</key>
39
37
  <string>ios</string>
38
+ <key>SupportedPlatformVariant</key>
39
+ <string>simulator</string>
40
40
  </dict>
41
41
  <dict>
42
42
  <key>BinaryPath</key>
@@ -93,12 +93,12 @@ std::vector<std::shared_ptr<HybridServiceSpec>> HybridPeripheral::services() {
93
93
  return hybrid_services;
94
94
  }
95
95
 
96
- std::unordered_map<double, std::shared_ptr<ArrayBuffer>> HybridPeripheral::manufacturer_data() {
96
+ std::unordered_map<int, std::shared_ptr<ArrayBuffer>> HybridPeripheral::manufacturer_data() {
97
97
  std::map<uint16_t, SimpleBLE::ByteArray> peripheral_manufacturer_data = _peripheral.manufacturer_data();
98
- std::unordered_map<double, std::shared_ptr<ArrayBuffer>> manufacturer_array_buffer_map;
98
+ std::unordered_map<int, std::shared_ptr<ArrayBuffer>> manufacturer_array_buffer_map;
99
99
 
100
100
  for (const auto& pair : peripheral_manufacturer_data) {
101
- manufacturer_array_buffer_map[static_cast<double>(pair.first)] = toArrayBuffer(pair.second);
101
+ manufacturer_array_buffer_map[static_cast<int>(pair.first)] = toArrayBuffer(pair.second);
102
102
  }
103
103
 
104
104
  return manufacturer_array_buffer_map;
@@ -38,7 +38,7 @@ class HybridPeripheral : public HybridPeripheralSpec {
38
38
  void set_callback_on_disconnected(const std::function<void()>& callback) override;
39
39
 
40
40
  std::vector<std::shared_ptr<HybridServiceSpec>> services() override;
41
- std::unordered_map<double, std::shared_ptr<ArrayBuffer>> manufacturer_data() override;
41
+ std::unordered_map<int, std::shared_ptr<ArrayBuffer>> manufacturer_data() override;
42
42
 
43
43
  std::shared_ptr<ArrayBuffer> read(const std::string& service, const std::string& characteristic) override;
44
44
  void write_request(const std::string& service, const std::string& characteristic, const std::shared_ptr<ArrayBuffer>& data) override;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplejsble",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "React Native Bluetooth Low Energy library using SimpleBLE with Nitro Modules",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",