simplejsble 0.0.3 → 0.0.4

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.
@@ -14,11 +14,16 @@ Pod::Spec.new do |s|
14
14
 
15
15
  s.source = { :path => "." }
16
16
 
17
- # Build SimpleBLE from source using CMake during pod install
17
+ # Build SimpleBLE from source only if XCFramework doesn't exist
18
+ # When installed from npm, the pre-built XCFramework is already included
18
19
  s.prepare_command = <<-CMD
19
- echo "Building SimpleBLE for iOS..."
20
- chmod +x ios/build_simpleble.sh
21
- ios/build_simpleble.sh
20
+ if [ -d "ios/SimpleBLE.xcframework" ]; then
21
+ echo "SimpleBLE.xcframework already exists, skipping build"
22
+ else
23
+ echo "Building SimpleBLE for iOS..."
24
+ chmod +x ios/build_simpleble.sh
25
+ ios/build_simpleble.sh
26
+ fi
22
27
  CMD
23
28
 
24
29
  s.source_files = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplejsble",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "React Native Bluetooth Low Energy library using SimpleBLE with Nitro Modules",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",