@baeckerherz/expo-mapbox-navigation 0.1.3 → 0.1.5

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 ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("./plugin/build/index.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baeckerherz/expo-mapbox-navigation",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
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",
@@ -35,6 +35,7 @@
35
35
  "android/",
36
36
  "plugin/build/",
37
37
  "plugin/src/",
38
+ "app.plugin.js",
38
39
  "expo-module.config.json",
39
40
  "README.md"
40
41
  ],
@@ -53,11 +53,13 @@ const withMapboxNavPodfile = (config) => {
53
53
  installer.pods_project.targets.each do |target|
54
54
  if target.name == 'ExpoMapboxNavigation'
55
55
  target.build_configurations.each do |config|
56
- shared_products = '$(BUILT_PRODUCTS_DIR)/..'
56
+ spm_frameworks = '$(BUILT_PRODUCTS_DIR)/PackageFrameworks'
57
57
  config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= ['$(inherited)']
58
- config.build_settings['FRAMEWORK_SEARCH_PATHS'] << shared_products
58
+ config.build_settings['FRAMEWORK_SEARCH_PATHS'] << spm_frameworks
59
59
  config.build_settings['SWIFT_INCLUDE_PATHS'] ||= ['$(inherited)']
60
- config.build_settings['SWIFT_INCLUDE_PATHS'] << shared_products
60
+ config.build_settings['SWIFT_INCLUDE_PATHS'] << spm_frameworks
61
+ config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)']
62
+ config.build_settings['OTHER_LDFLAGS'] << '-Wl,-rpath,@loader_path/../Frameworks'
61
63
  end
62
64
  end
63
65
  if target.name.start_with?('Mapbox') || target.name == 'Turf'
@@ -22,11 +22,13 @@ export const withMapboxNavPodfile: ConfigPlugin = (config) => {
22
22
  installer.pods_project.targets.each do |target|
23
23
  if target.name == 'ExpoMapboxNavigation'
24
24
  target.build_configurations.each do |config|
25
- shared_products = '$(BUILT_PRODUCTS_DIR)/..'
25
+ spm_frameworks = '$(BUILT_PRODUCTS_DIR)/PackageFrameworks'
26
26
  config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= ['$(inherited)']
27
- config.build_settings['FRAMEWORK_SEARCH_PATHS'] << shared_products
27
+ config.build_settings['FRAMEWORK_SEARCH_PATHS'] << spm_frameworks
28
28
  config.build_settings['SWIFT_INCLUDE_PATHS'] ||= ['$(inherited)']
29
- config.build_settings['SWIFT_INCLUDE_PATHS'] << shared_products
29
+ config.build_settings['SWIFT_INCLUDE_PATHS'] << spm_frameworks
30
+ config.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)']
31
+ config.build_settings['OTHER_LDFLAGS'] << '-Wl,-rpath,@loader_path/../Frameworks'
30
32
  end
31
33
  end
32
34
  if target.name.start_with?('Mapbox') || target.name == 'Turf'