expo-modules-core 55.0.21 → 55.0.23

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,18 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 55.0.23 — 2026-04-21
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - [iOS] Fix finding EXConstants.bundle inside framework bundle for brownfield ([#44810](https://github.com/expo/expo/pull/44810) by [@gabrieldonadel](https://github.com/gabrieldonadel))
18
+
19
+ ## 55.0.22 — 2026-04-09
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - [iOS] Resolve `react-native-worklets` from existing podspec, falling back to peer resolution ([#44232](https://github.com/expo/expo/pull/44232) by [@kitten](https://github.com/kitten))
24
+
13
25
  ## 55.0.21 — 2026-04-07
14
26
 
15
27
  _This version does not introduce any user-facing changes._
@@ -108,9 +108,16 @@ Pod::Spec.new do |s|
108
108
  ])
109
109
 
110
110
  if shouldEnableWorkletsIntegration
111
+ rn_worklets_dep = Pod::Config.instance.podfile.dependencies.find { |dep| dep.name == 'RNWorklets' }
112
+ rn_worklets_path = rn_worklets_dep&.external_source&.dig(:path)
113
+ react_native_worklets_dir_absolute = if rn_worklets_path
114
+ File.expand_path(rn_worklets_path, Pod::Config.instance.installation_root.to_s)
115
+ else
116
+ project_root = ENV['PROJECT_ROOT'] || Pod::Config.instance.installation_root.to_s
117
+ File.dirname(`node --print "require.resolve('react-native-worklets/package.json', { paths: ['#{__dir__}', '#{project_root}'] })"`)
118
+ end
119
+
111
120
  pods_root = Pod::Config.instance.project_pods_root
112
- react_native_worklets_node_modules_dir = File.join(File.dirname(`cd "#{Pod::Config.instance.installation_root.to_s}" && node --print "require.resolve('react-native-worklets/package.json')"`), '..')
113
- react_native_worklets_dir_absolute = File.join(react_native_worklets_node_modules_dir, 'react-native-worklets')
114
121
  workletsPath = Pathname.new(react_native_worklets_dir_absolute).relative_path_from(pods_root).to_s
115
122
 
116
123
  header_search_paths.concat([
@@ -29,7 +29,7 @@ if (shouldIncludeCompose) {
29
29
  }
30
30
 
31
31
  group = 'host.exp.exponent'
32
- version = '55.0.21'
32
+ version = '55.0.23'
33
33
 
34
34
  def isExpoModulesCoreTests = {
35
35
  Gradle gradle = getGradle()
@@ -96,7 +96,7 @@ android {
96
96
  defaultConfig {
97
97
  consumerProguardFiles 'proguard-rules.pro'
98
98
  versionCode 1
99
- versionName "55.0.21"
99
+ versionName "55.0.23"
100
100
  buildConfigField "String", "EXPO_MODULES_CORE_VERSION", "\"${versionName}\""
101
101
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", "true"
102
102
 
@@ -87,9 +87,27 @@ private func getDeviceName() -> String {
87
87
  #endif
88
88
  }
89
89
 
90
+ private func findEXConstantsBundle() -> Bundle? {
91
+ let bundleName = "EXConstants.bundle"
92
+
93
+ // Check the main app bundle first (standard CocoaPods setup)
94
+ if let bundleUrl = Bundle.main.resourceURL?.appendingPathComponent(bundleName),
95
+ let bundle = Bundle(url: bundleUrl) {
96
+ return bundle
97
+ }
98
+
99
+ // Fall back to the bundle containing this code, which handles the case where
100
+ // EXConstants.bundle is embedded inside a dynamic framework (e.g. expo-brownfield xcframework)
101
+ if let bundleUrl = Bundle(for: ConstantsProvider.self).resourceURL?.appendingPathComponent(bundleName),
102
+ let bundle = Bundle(url: bundleUrl) {
103
+ return bundle
104
+ }
105
+
106
+ return nil
107
+ }
108
+
90
109
  private func getManifest() -> [String: Any]? {
91
- guard let bundleUrl = Bundle.main.resourceURL?.appendingPathComponent("EXConstants.bundle"),
92
- let bundle = Bundle(url: bundleUrl),
110
+ guard let bundle = findEXConstantsBundle(),
93
111
  let url = bundle.url(forResource: "app", withExtension: "config") else {
94
112
  log.error("Unable to find the embedded app config")
95
113
  return nil
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "55.0.21",
3
+ "version": "55.0.23",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -60,11 +60,17 @@
60
60
  },
61
61
  "peerDependencies": {
62
62
  "react": "*",
63
- "react-native": "*"
63
+ "react-native": "*",
64
+ "react-native-worklets": "^0.7.4 || ^0.8.0"
65
+ },
66
+ "peerDependenciesMeta": {
67
+ "react-native-worklets": {
68
+ "optional": true
69
+ }
64
70
  },
65
71
  "devDependencies": {
66
72
  "@testing-library/react-native": "^13.3.0",
67
73
  "expo-module-scripts": "^55.0.2"
68
74
  },
69
- "gitHead": "f35977db4ffc6bbc2b295d65a8d74e9fd4f24ecb"
75
+ "gitHead": "e37e614d97c3ca53f16b91609a787675d044c284"
70
76
  }