expo-modules-autolinking 1.8.0 → 1.9.0

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/CHANGELOG.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 1.9.0 — 2023-12-12
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [iOS] Resolve `expo-modules-autolinking` from `expo` in the generated project integrator. ([#25817](https://github.com/expo/expo/pull/25817) by [@byCedric](https://github.com/byCedric))
18
+
13
19
  ## 1.8.0 — 2023-11-14
14
20
 
15
21
  ### 🎉 New features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-autolinking",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "Scripts that autolink Expo modules.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -36,17 +36,17 @@
36
36
  "devDependencies": {
37
37
  "@expo/spawn-async": "^1.5.0",
38
38
  "@types/fs-extra": "^9.0.11",
39
- "expo-module-scripts": "~3.3.0",
39
+ "expo-module-scripts": "~3.4.0",
40
40
  "minimatch": "^3.0.4",
41
41
  "tempy": "^0.7.1"
42
42
  },
43
43
  "dependencies": {
44
- "@expo/config": "~8.4.0",
44
+ "@expo/config": "~8.5.0",
45
45
  "chalk": "^4.1.0",
46
46
  "commander": "^7.2.0",
47
47
  "fast-glob": "^3.2.5",
48
48
  "find-up": "^5.0.0",
49
49
  "fs-extra": "^9.1.0"
50
50
  },
51
- "gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
51
+ "gitHead": "6aca7ce098ddc667776a3d7cf612adbb985e264a"
52
52
  }
@@ -109,7 +109,7 @@ module Expo
109
109
  def self.set_autolinking_configuration(project)
110
110
  project.native_targets.each do |native_target|
111
111
  native_target.build_configurations.each do |build_configuration|
112
- configuration_flag = "-D #{CONFIGURATION_FLAG_PREFIX}#{build_configuration.debug? ? "DEBUG" : "RELEASE"}"
112
+ configuration_flag = "-D #{CONFIGURATION_FLAG_PREFIX}#{build_configuration.debug? ? "DEBUG" : "RELEASE"}"
113
113
  build_settings = build_configuration.build_settings
114
114
 
115
115
  # For some targets it might be `nil` by default which is an equivalent to `$(inherited)`
@@ -121,11 +121,11 @@ module Expo
121
121
  if !build_settings[SWIFT_FLAGS].include?(configuration_flag)
122
122
  # Remove existing flag to make sure we don't put another one each time
123
123
  build_settings[SWIFT_FLAGS] = build_settings[SWIFT_FLAGS].gsub(/\b-D\s+#{Regexp.quote(CONFIGURATION_FLAG_PREFIX)}\w+/, '')
124
-
124
+
125
125
  # Add the correct flag
126
126
  build_settings[SWIFT_FLAGS] << ' ' << configuration_flag
127
127
 
128
- # Make sure the project will be saved as we did some changes
128
+ # Make sure the project will be saved as we did some changes
129
129
  project.mark_dirty!
130
130
  end
131
131
  end
@@ -258,7 +258,7 @@ module Expo
258
258
  fi
259
259
  }
260
260
 
261
- with_node --no-warnings --eval "require(\'expo-modules-autolinking\')(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}"
261
+ with_node --no-warnings --eval "require(require.resolve(\'expo-modules-autolinking\', { paths: [require.resolve(\'expo/package.json\')] }))(process.argv.slice(1))" generate-package-list #{args} --target "#{modules_provider_path}"
262
262
  SUPPORT_SCRIPT
263
263
  end
264
264