@jacques_gordon/expo-mapbox-navigation 2.2.16 → 2.2.18

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.
@@ -0,0 +1,22 @@
1
+ // MapboxNavigationCore depends internally on MapboxNavigationNative (native
2
+ // ObjC classes such as MBNNAmenity), but no file in this module calls its
3
+ // APIs directly. React Native/Expo's CocoaPods post_install SPM step
4
+ // re-derives which package products a pod target actually needs
5
+ // (independently of our own config-plugin hook that explicitly registers it
6
+ // via Xcodeproj manipulation), and that derivation appears to work off of
7
+ // literal `import` statements found in Swift source files. Without an
8
+ // explicit import somewhere in this module, that step silently drops the
9
+ // MapboxNavigationNative product dependency after our hook adds it, causing
10
+ // "Undefined symbols" for MBNN* classes at the final app link step — even
11
+ // though the package resolves correctly and MapboxNavigationCore itself
12
+ // compiles fine.
13
+ //
14
+ // This import is isolated in its own file (rather than placed in
15
+ // ExpoMapboxNavigationView.swift) because MapboxNavigationNative exposes raw
16
+ // types that collide by name with types MapboxNavigationCore re-exports at a
17
+ // higher level (e.g. Waypoint, and enum cases like .automobile, .walking,
18
+ // .cycling, .automobileAvoidingTraffic). Importing both modules in the same
19
+ // file makes those symbols ambiguous to the compiler. Keeping this import in
20
+ // its own compilation unit, with nothing else in the file, satisfies the
21
+ // SPM auto-detection step without affecting name resolution anywhere else.
22
+ import MapboxNavigationNative
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jacques_gordon/expo-mapbox-navigation",
3
- "version": "2.2.16",
3
+ "version": "2.2.18",
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",