@soyio/soyio-rn-sdk 4.1.6 → 4.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soyio/soyio-rn-sdk",
3
- "version": "4.1.6",
3
+ "version": "4.1.7",
4
4
  "license": "MIT",
5
5
  "author": "Ignacio Méndez",
6
6
  "main": "./package/index.js",
@@ -12,7 +12,17 @@
12
12
  set -e
13
13
 
14
14
  # --- 1. Extract the correct xcframework slice for the current platform -----
15
- "${PODS_ROOT}/Target Support Files/soyio_rn_sdk/soyio_rn_sdk-xcframeworks.sh"
15
+ XCFW_SRC="${PODS_TARGET_SRCROOT}/ios/Frameworks/FaceTecSDK.xcframework"
16
+ XCFW_DST="${PODS_XCFRAMEWORKS_BUILD_DIR}/soyio_rn_sdk"
17
+
18
+ if [[ "${PLATFORM_NAME}" == "iphonesimulator" ]]; then
19
+ SLICE="ios-arm64_x86_64-simulator"
20
+ else
21
+ SLICE="ios-arm64"
22
+ fi
23
+
24
+ mkdir -p "${XCFW_DST}"
25
+ rsync -a --delete "${XCFW_SRC}/${SLICE}/FaceTecSDK.framework" "${XCFW_DST}/"
16
26
 
17
27
  # --- 2. Patch consumer embed-frameworks script -----------------------------
18
28
  # CocoaPods generates Pods-<Target>-frameworks.sh to embed dynamic frameworks
@@ -20,7 +30,7 @@ set -e
20
30
  # copied into the .app bundle.
21
31
  EMBED_LINE='install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/soyio_rn_sdk/FaceTecSDK.framework"'
22
32
  for fw_script in "${PODS_ROOT}/Target Support Files"/Pods-*/Pods-*-frameworks.sh; do
23
- [ -f "$fw_script" ] || continue
33
+ [[ -f "$fw_script" ]] || continue
24
34
  grep -q 'soyio_rn_sdk/FaceTecSDK' "$fw_script" && continue
25
35
  awk -v line="$EMBED_LINE" '/^if.*COCOAPODS_PARALLEL_CODE_SIGN/{print line}1' "$fw_script" > "${fw_script}.tmp"
26
36
  mv "${fw_script}.tmp" "$fw_script"