simplejsble 0.0.52 → 0.0.53

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,15 +26,16 @@
28
26
  <key>HeadersPath</key>
29
27
  <string>Headers</string>
30
28
  <key>LibraryIdentifier</key>
31
- <string>ios-arm64</string>
29
+ <string>macos-arm64_x86_64</string>
32
30
  <key>LibraryPath</key>
33
31
  <string>libsimpleble.a</string>
34
32
  <key>SupportedArchitectures</key>
35
33
  <array>
36
34
  <string>arm64</string>
35
+ <string>x86_64</string>
37
36
  </array>
38
37
  <key>SupportedPlatform</key>
39
- <string>ios</string>
38
+ <string>macos</string>
40
39
  </dict>
41
40
  <dict>
42
41
  <key>BinaryPath</key>
@@ -44,16 +43,17 @@
44
43
  <key>HeadersPath</key>
45
44
  <string>Headers</string>
46
45
  <key>LibraryIdentifier</key>
47
- <string>macos-arm64_x86_64</string>
46
+ <string>ios-arm64-simulator</string>
48
47
  <key>LibraryPath</key>
49
48
  <string>libsimpleble.a</string>
50
49
  <key>SupportedArchitectures</key>
51
50
  <array>
52
51
  <string>arm64</string>
53
- <string>x86_64</string>
54
52
  </array>
55
53
  <key>SupportedPlatform</key>
56
- <string>macos</string>
54
+ <string>ios</string>
55
+ <key>SupportedPlatformVariant</key>
56
+ <string>simulator</string>
57
57
  </dict>
58
58
  </array>
59
59
  <key>CFBundlePackageType</key>
@@ -21,14 +21,14 @@ class VM {
21
21
  }
22
22
  instance._jvm = jvm_override;
23
23
  } else if (instance._jvm == nullptr) {
24
- #ifdef __REACT_NATIVE_ANDROID__
25
- // On React Native/Expo Android, JNI_GetCreatedJavaVMs is not available.
26
- // The JVM must be set via set_jvm() from JNI_OnLoad.
27
- throw std::runtime_error(
28
- "JavaVM not initialized. Ensure JNI_OnLoad calls "
29
- "SimpleBLE::Advanced::Android::set_jvm(vm) before any SimpleBLE operations"
30
- );
31
- #else
24
+ // #ifdef __REACT_NATIVE_ANDROID__
25
+ // // On React Native/Expo Android, JNI_GetCreatedJavaVMs is not available.
26
+ // // The JVM must be set via set_jvm() from JNI_OnLoad.
27
+ // throw std::runtime_error(
28
+ // "JavaVM not initialized. Ensure JNI_OnLoad calls "
29
+ // "SimpleBLE::Advanced::Android::set_jvm(vm) before any SimpleBLE operations"
30
+ // );
31
+ // #else
32
32
  jsize count;
33
33
  if (JNI_GetCreatedJavaVMs(&instance._jvm, 1, &count) != JNI_OK || count == 0) {
34
34
  throw std::runtime_error("Failed to retrieve the Java Virtual Machine");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplejsble",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "description": "React Native Bluetooth Low Energy library using SimpleBLE with Nitro Modules",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",