@jacques_gordon/expo-mapbox-navigation 2.2.13 → 2.2.15
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/app.plugin.js +3 -3
- package/package.json +1 -1
- package/plugin/src/index.js +1 -1
package/app.plugin.js
CHANGED
|
@@ -159,7 +159,7 @@ const withMapboxNavigation = (config, options = {}) => {
|
|
|
159
159
|
|
|
160
160
|
console.log(`[@jacques_gordon/expo-mapbox-navigation] Maps ${mapsVersion} (minor=${mapsMinor}) → Navigation ${navMin}..<3.${navMinor+1}.0`);
|
|
161
161
|
console.log(`[@jacques_gordon/expo-mapbox-navigation] Phase: ${mapsMinor <= 15 ? `1 (offset -3: ${mapsMinor}-3=${navMinor})` : `2 (aligned: ${navMinor})`}`);
|
|
162
|
-
|
|
162
|
+
const podsBuildDir = '$' + '{PODS_CONFIGURATION_BUILD_DIR}';
|
|
163
163
|
// The Ruby hook — identical pattern to @rnmapbox/maps _add_spm_to_target
|
|
164
164
|
const spmHook = `
|
|
165
165
|
# [ExpoMapboxNavigation] SPM hook — injected by @jacques_gordon/expo-mapbox-navigation
|
|
@@ -207,14 +207,14 @@ def _expo_mapbox_nav_add_spm(installer)
|
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
# ── SWIFT_INCLUDE_PATHS fix ──────────────────────────────────────────────
|
|
210
|
-
# SPM compiles .swiftmodule into
|
|
210
|
+
# SPM compiles .swiftmodule into PODS_CONFIGURATION_BUILD_DIR.
|
|
211
211
|
# Without adding this path, Xcode throws "no such module MapboxNavigationCore".
|
|
212
212
|
# Source: https://trinhngocthuyen.com/posts/tech/spm-with-cocoapods/
|
|
213
213
|
expo_target.build_configurations.each do |config|
|
|
214
214
|
existing = config.build_settings['SWIFT_INCLUDE_PATHS'] || '$(inherited)'
|
|
215
215
|
unless existing.include?('PODS_CONFIGURATION_BUILD_DIR')
|
|
216
216
|
config.build_settings['SWIFT_INCLUDE_PATHS'] =
|
|
217
|
-
"#{existing}
|
|
217
|
+
"#{existing} \\"${podsBuildDir}\\""
|
|
218
218
|
puts "[ExpoMapboxNavigation] Added PODS_CONFIGURATION_BUILD_DIR to SWIFT_INCLUDE_PATHS (#{config.name})"
|
|
219
219
|
end
|
|
220
220
|
end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jacques_gordon/expo-mapbox-navigation",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.15",
|
|
4
4
|
"description": "Expo module for Mapbox Navigation SDK with 16KB page size support, NDK27, and Mapbox Maps v11.11.0+",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
package/plugin/src/index.js
CHANGED
|
@@ -207,7 +207,7 @@ def _expo_mapbox_nav_add_spm(installer)
|
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
# ── SWIFT_INCLUDE_PATHS fix ──────────────────────────────────────────────
|
|
210
|
-
# SPM compiles .swiftmodule into
|
|
210
|
+
# SPM compiles .swiftmodule into PODS_CONFIGURATION_BUILD_DIR.
|
|
211
211
|
# Without adding this path, Xcode throws "no such module MapboxNavigationCore".
|
|
212
212
|
# Source: https://trinhngocthuyen.com/posts/tech/spm-with-cocoapods/
|
|
213
213
|
expo_target.build_configurations.each do |config|
|