@jacques_gordon/expo-mapbox-navigation 2.2.8 → 2.2.9
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 +7 -29
- package/package.json +1 -1
- package/plugin/src/index.js +7 -29
package/app.plugin.js
CHANGED
|
@@ -216,35 +216,13 @@ def _expo_mapbox_nav_add_spm(installer)
|
|
|
216
216
|
end
|
|
217
217
|
pods_project.save
|
|
218
218
|
|
|
219
|
-
# ──
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
unless user_pkg
|
|
227
|
-
user_pkg = user_project.new(pkg_class)
|
|
228
|
-
user_pkg.repositoryURL = url
|
|
229
|
-
user_pkg.requirement = requirement
|
|
230
|
-
user_project.root_object.package_references << user_pkg
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
products.each do |product_name|
|
|
234
|
-
ref = user_target.package_product_dependencies.find { |r|
|
|
235
|
-
r.class == ref_class && r.package == user_pkg && r.product_name == product_name
|
|
236
|
-
}
|
|
237
|
-
unless ref
|
|
238
|
-
ref = user_project.new(ref_class)
|
|
239
|
-
ref.package = user_pkg
|
|
240
|
-
ref.product_name = product_name
|
|
241
|
-
user_target.package_product_dependencies << ref
|
|
242
|
-
puts "[ExpoMapboxNavigation] Linked #{product_name} -> #{user_target.name}"
|
|
243
|
-
end
|
|
244
|
-
end
|
|
245
|
-
end
|
|
246
|
-
user_project.save
|
|
247
|
-
end
|
|
219
|
+
# ── NOTE: We do NOT add products to the user app target ────────────────────
|
|
220
|
+
# Adding MapboxNavigationCore/UIKit directly to the app target causes
|
|
221
|
+
# "Multiple commands produce" errors for MapboxCommon, MapboxCoreMaps, Turf
|
|
222
|
+
# because @rnmapbox/maps already embeds them via CocoaPods/SPM.
|
|
223
|
+
# The ExpoMapboxNavigation pod target is sufficient: when CocoaPods links
|
|
224
|
+
# the pod into the app, SPM resolves the transitive dependencies correctly
|
|
225
|
+
# without re-embedding them.
|
|
248
226
|
end
|
|
249
227
|
`;
|
|
250
228
|
|
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.9",
|
|
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
|
@@ -216,35 +216,13 @@ def _expo_mapbox_nav_add_spm(installer)
|
|
|
216
216
|
end
|
|
217
217
|
pods_project.save
|
|
218
218
|
|
|
219
|
-
# ──
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
unless user_pkg
|
|
227
|
-
user_pkg = user_project.new(pkg_class)
|
|
228
|
-
user_pkg.repositoryURL = url
|
|
229
|
-
user_pkg.requirement = requirement
|
|
230
|
-
user_project.root_object.package_references << user_pkg
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
products.each do |product_name|
|
|
234
|
-
ref = user_target.package_product_dependencies.find { |r|
|
|
235
|
-
r.class == ref_class && r.package == user_pkg && r.product_name == product_name
|
|
236
|
-
}
|
|
237
|
-
unless ref
|
|
238
|
-
ref = user_project.new(ref_class)
|
|
239
|
-
ref.package = user_pkg
|
|
240
|
-
ref.product_name = product_name
|
|
241
|
-
user_target.package_product_dependencies << ref
|
|
242
|
-
puts "[ExpoMapboxNavigation] Linked #{product_name} -> #{user_target.name}"
|
|
243
|
-
end
|
|
244
|
-
end
|
|
245
|
-
end
|
|
246
|
-
user_project.save
|
|
247
|
-
end
|
|
219
|
+
# ── NOTE: We do NOT add products to the user app target ────────────────────
|
|
220
|
+
# Adding MapboxNavigationCore/UIKit directly to the app target causes
|
|
221
|
+
# "Multiple commands produce" errors for MapboxCommon, MapboxCoreMaps, Turf
|
|
222
|
+
# because @rnmapbox/maps already embeds them via CocoaPods/SPM.
|
|
223
|
+
# The ExpoMapboxNavigation pod target is sufficient: when CocoaPods links
|
|
224
|
+
# the pod into the app, SPM resolves the transitive dependencies correctly
|
|
225
|
+
# without re-embedding them.
|
|
248
226
|
end
|
|
249
227
|
`;
|
|
250
228
|
|