@trentrand/react-native-app-clip 0.6.2-beta.0 → 0.6.2-beta.1

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": "@trentrand/react-native-app-clip",
3
- "version": "0.6.2-beta.0",
3
+ "version": "0.6.2-beta.1",
4
4
  "description": "Config plugin to add an App Clip to a React Native iOS app",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -38,7 +38,7 @@ function addBuildPhases(xcodeProject, { targetUuid, groupName, productFile, enab
38
38
  if (enableCompression) {
39
39
  xcodeProject.addBuildPhase([], "PBXShellScriptBuildPhase", "Compress JS Bundle", targetUuid, {
40
40
  shellPath: "/bin/sh",
41
- shellScript: 'if [[ "$CONFIGURATION" != "Release" ]]; then\n exit 0\nfi\n\nBUNDLE="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/main.jsbundle"\n\nif [ -f "$BUNDLE" ]; then\n node -e "const fs=require(\'fs\');const zlib=require(\'zlib\');fs.createReadStream(\'${BUNDLE}\').pipe(zlib.createDeflate({level:9})).pipe(fs.createWriteStream(\'${BUNDLE}.zlib\')).on(\'finish\', ()=>fs.unlinkSync(\'${BUNDLE}\'))"\nfi\n',
41
+ shellScript: 'if [[ -f "$PODS_ROOT/../.xcode.env" ]]; then\n source "$PODS_ROOT/../.xcode.env"\nfi\nif [[ -f "$PODS_ROOT/../.xcode.env.local" ]]; then\n source "$PODS_ROOT/../.xcode.env.local"\nfi\n\nif [[ "$CONFIGURATION" != "Release" ]]; then\n exit 0\nfi\n\nBUNDLE="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/main.jsbundle"\n\nif [ -f "$BUNDLE" ]; then\n "$NODE_BINARY" -e "const fs=require(\'fs\');const zlib=require(\'zlib\');fs.createReadStream(\'${BUNDLE}\').pipe(zlib.createDeflate({level:9})).pipe(fs.createWriteStream(\'${BUNDLE}.zlib\')).on(\'finish\', ()=>fs.unlinkSync(\'${BUNDLE}\'))"\nfi\n',
42
42
  }, buildPath);
43
43
  }
44
44
  }