simplejsble 0.0.39 → 0.0.41

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,16 +10,15 @@
10
10
  <key>HeadersPath</key>
11
11
  <string>Headers</string>
12
12
  <key>LibraryIdentifier</key>
13
- <string>macos-arm64_x86_64</string>
13
+ <string>ios-arm64</string>
14
14
  <key>LibraryPath</key>
15
15
  <string>libsimpleble.a</string>
16
16
  <key>SupportedArchitectures</key>
17
17
  <array>
18
18
  <string>arm64</string>
19
- <string>x86_64</string>
20
19
  </array>
21
20
  <key>SupportedPlatform</key>
22
- <string>macos</string>
21
+ <string>ios</string>
23
22
  </dict>
24
23
  <dict>
25
24
  <key>BinaryPath</key>
@@ -45,15 +44,16 @@
45
44
  <key>HeadersPath</key>
46
45
  <string>Headers</string>
47
46
  <key>LibraryIdentifier</key>
48
- <string>ios-arm64</string>
47
+ <string>macos-arm64_x86_64</string>
49
48
  <key>LibraryPath</key>
50
49
  <string>libsimpleble.a</string>
51
50
  <key>SupportedArchitectures</key>
52
51
  <array>
53
52
  <string>arm64</string>
53
+ <string>x86_64</string>
54
54
  </array>
55
55
  <key>SupportedPlatform</key>
56
- <string>ios</string>
56
+ <string>macos</string>
57
57
  </dict>
58
58
  </array>
59
59
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplejsble",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "React Native Bluetooth Low Energy library using SimpleBLE with Nitro Modules",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",
@@ -64,6 +64,9 @@
64
64
  "registry": "https://registry.npmjs.org/",
65
65
  "access": "public"
66
66
  },
67
+ "dependencies": {
68
+ "react-native-nitro-modules": ">=0.20.0"
69
+ },
67
70
  "devDependencies": {
68
71
  "@react-native/eslint-config": "0.82.0",
69
72
  "@types/react": "^19.1.03",
@@ -79,13 +82,7 @@
79
82
  },
80
83
  "peerDependencies": {
81
84
  "react": "*",
82
- "react-native": "*",
83
- "react-native-nitro-modules": ">=0.20.0"
84
- },
85
- "peerDependenciesMeta": {
86
- "react-native-nitro-modules": {
87
- "optional": false
88
- }
85
+ "react-native": "*"
89
86
  },
90
87
  "eslintConfig": {
91
88
  "root": true,
@@ -14,8 +14,8 @@ SCRIPT_NAME="[simplejsble]"
14
14
 
15
15
  # Possible locations for NitroModules.podspec
16
16
  PATHS=(
17
- "$SCRIPT_DIR/../../../react-native-nitro-modules/NitroModules.podspec"
18
- "$SCRIPT_DIR/../../../../node_modules/react-native-nitro-modules/NitroModules.podspec"
17
+ # When simplejsble is in node_modules (user's project)
18
+ "$SCRIPT_DIR/../../react-native-nitro-modules/NitroModules.podspec"
19
19
  )
20
20
 
21
21
  PODSPEC_PATH=""
@@ -44,15 +44,17 @@ if ! grep -q "s\.platforms" "$PODSPEC_PATH"; then
44
44
  fi
45
45
 
46
46
  # Create the replacement
47
- NEW_SYNTAX="s.ios.deployment_target = min_ios_version_supported
47
+ NEW_SYNTAX="s.ios.deployment_target = '15.8'
48
48
  s.macos.deployment_target = '13.0'
49
49
  s.tvos.deployment_target = '13.4'
50
50
  s.visionos.deployment_target = '1.0'"
51
51
 
52
52
  # Use sed to replace the s.platforms = {...} block
53
53
  # This handles multiline replacement
54
+ # Note: We use hardcoded values because min_ios_version_supported is only available
55
+ # in React Native's Podfile context, not when CocoaPods validates the podspec directly
54
56
  sed -i.bak '/s\.platforms.*=.*{/,/}/c\
55
- s.ios.deployment_target = min_ios_version_supported\
57
+ s.ios.deployment_target = '"'"'15.8'"'"'\
56
58
  s.macos.deployment_target = '"'"'13.0'"'"'\
57
59
  s.tvos.deployment_target = '"'"'13.4'"'"'\
58
60
  s.visionos.deployment_target = '"'"'1.0'"'"'' "$PODSPEC_PATH"