@baeckerherz/expo-mapbox-navigation 0.1.23 → 0.1.25

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": "@baeckerherz/expo-mapbox-navigation",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "Expo module wrapping Mapbox Navigation SDK v3 for iOS and Android",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withMapboxArchiveFix = void 0;
4
4
  const config_plugins_1 = require("@expo/config-plugins");
5
- const SCRIPT_NAME = "[Mapbox] Strip xcframework signatures";
5
+ const SCRIPT_NAME = "Mapbox - Strip xcframework signatures";
6
6
  /**
7
7
  * Adds a Run Script build phase to the app target that removes xcframework
8
8
  * .signature files from the build directory before the archive step.
@@ -22,8 +22,9 @@ const withMapboxArchiveFix = (config) => {
22
22
  if (!nativeTargetKey)
23
23
  return config;
24
24
  const target = project.hash.project.objects["PBXNativeTarget"][nativeTargetKey];
25
- const alreadyAdded = (target.buildPhases || []).some((uuid) => {
26
- const comment = project.hash.project.objects["PBXShellScriptBuildPhase"]?.[`${uuid}_comment`];
25
+ const alreadyAdded = (target.buildPhases || []).some((phase) => {
26
+ const phaseUuid = typeof phase === "object" ? phase.value : phase;
27
+ const comment = project.hash.project.objects["PBXShellScriptBuildPhase"]?.[`${phaseUuid}_comment`];
27
28
  return comment === SCRIPT_NAME;
28
29
  });
29
30
  if (alreadyAdded)
@@ -41,7 +42,7 @@ const withMapboxArchiveFix = (config) => {
41
42
  outputPaths: [],
42
43
  runOnlyForDeploymentPostprocessing: 0,
43
44
  shellPath: "/bin/sh",
44
- shellScript: 'find "${BUILD_DIR}" -name "*.xcframework-*.signature" -delete 2>/dev/null\\nexit 0\\n',
45
+ shellScript: 'DERIVED_ROOT="${BUILD_DIR%/Build/*}"\\nfind "${DERIVED_ROOT}" -name "*.xcframework-*.signature" -delete 2>/dev/null\\nexit 0\\n',
45
46
  };
46
47
  project.hash.project.objects["PBXShellScriptBuildPhase"][`${uuid}_comment`] = SCRIPT_NAME;
47
48
  if (!target.buildPhases)
@@ -1,6 +1,6 @@
1
1
  import { withXcodeProject, ConfigPlugin } from "@expo/config-plugins";
2
2
 
3
- const SCRIPT_NAME = "[Mapbox] Strip xcframework signatures";
3
+ const SCRIPT_NAME = "Mapbox - Strip xcframework signatures";
4
4
 
5
5
  /**
6
6
  * Adds a Run Script build phase to the app target that removes xcframework
@@ -27,10 +27,11 @@ export const withMapboxArchiveFix: ConfigPlugin = (config) => {
27
27
  const target =
28
28
  project.hash.project.objects["PBXNativeTarget"][nativeTargetKey];
29
29
 
30
- const alreadyAdded = (target.buildPhases || []).some((uuid: string) => {
30
+ const alreadyAdded = (target.buildPhases || []).some((phase: any) => {
31
+ const phaseUuid = typeof phase === "object" ? phase.value : phase;
31
32
  const comment =
32
33
  project.hash.project.objects["PBXShellScriptBuildPhase"]?.[
33
- `${uuid}_comment`
34
+ `${phaseUuid}_comment`
34
35
  ];
35
36
  return comment === SCRIPT_NAME;
36
37
  });
@@ -51,7 +52,7 @@ export const withMapboxArchiveFix: ConfigPlugin = (config) => {
51
52
  runOnlyForDeploymentPostprocessing: 0,
52
53
  shellPath: "/bin/sh",
53
54
  shellScript:
54
- 'find "${BUILD_DIR}" -name "*.xcframework-*.signature" -delete 2>/dev/null\\nexit 0\\n',
55
+ 'DERIVED_ROOT="${BUILD_DIR%/Build/*}"\\nfind "${DERIVED_ROOT}" -name "*.xcframework-*.signature" -delete 2>/dev/null\\nexit 0\\n',
55
56
  };
56
57
  project.hash.project.objects["PBXShellScriptBuildPhase"][
57
58
  `${uuid}_comment`