@baeckerherz/expo-mapbox-navigation 0.1.10 → 0.1.11

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.10",
3
+ "version": "0.1.11",
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",
@@ -90,11 +90,18 @@ const withMapboxNavPodfile = (config, { navigationSdkVersion }) => {
90
90
  product_dep.package = pkg_ref
91
91
  product_dep.product_name = '${name}'
92
92
  target.package_product_dependencies << product_dep
93
- build_file = project.new(Xcodeproj::Project::Object::PBXBuildFile)
94
- build_file.product_ref = product_dep
95
- target.frameworks_build_phases.files << build_file
93
+ if target.frameworks_build_phases
94
+ build_file = project.new(Xcodeproj::Project::Object::PBXBuildFile)
95
+ build_file.product_ref = product_dep
96
+ target.frameworks_build_phases.files << build_file
97
+ end
96
98
  end`).join("")}
97
99
  project.save
100
+ workspace_path = Dir.glob(File.join(installer.sandbox.root, '..', '*.xcworkspace'))[0]
101
+ scheme = workspace_path ? File.basename(workspace_path, '.xcworkspace') : nil
102
+ if workspace_path && scheme
103
+ Dir.chdir(File.dirname(workspace_path)) { system('xcodebuild', '-resolvePackageDependencies', '-workspace', File.basename(workspace_path), '-scheme', scheme, '-configuration', 'Release') }
104
+ end
98
105
  end`;
99
106
  const marker = "@baeckerherz/expo-mapbox-navigation: Mapbox SPM in Pods";
100
107
  if (!contents.includes(marker)) {
@@ -68,12 +68,19 @@ export const withMapboxNavPodfile: ConfigPlugin<PodfileOptions> = (
68
68
  product_dep.package = pkg_ref
69
69
  product_dep.product_name = '${name}'
70
70
  target.package_product_dependencies << product_dep
71
- build_file = project.new(Xcodeproj::Project::Object::PBXBuildFile)
72
- build_file.product_ref = product_dep
73
- target.frameworks_build_phases.files << build_file
71
+ if target.frameworks_build_phases
72
+ build_file = project.new(Xcodeproj::Project::Object::PBXBuildFile)
73
+ build_file.product_ref = product_dep
74
+ target.frameworks_build_phases.files << build_file
75
+ end
74
76
  end`
75
77
  ).join("")}
76
78
  project.save
79
+ workspace_path = Dir.glob(File.join(installer.sandbox.root, '..', '*.xcworkspace'))[0]
80
+ scheme = workspace_path ? File.basename(workspace_path, '.xcworkspace') : nil
81
+ if workspace_path && scheme
82
+ Dir.chdir(File.dirname(workspace_path)) { system('xcodebuild', '-resolvePackageDependencies', '-workspace', File.basename(workspace_path), '-scheme', scheme, '-configuration', 'Release') }
83
+ end
77
84
  end`;
78
85
 
79
86
  const marker = "@baeckerherz/expo-mapbox-navigation: Mapbox SPM in Pods";