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.
- package/NitroSimplejsble.podspec +9 -4
- package/package.json +1 -1
package/NitroSimplejsble.podspec
CHANGED
|
@@ -14,11 +14,16 @@ Pod::Spec.new do |s|
|
|
|
14
14
|
|
|
15
15
|
s.source = { :path => "." }
|
|
16
16
|
|
|
17
|
-
# Build SimpleBLE from source
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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 = [
|