expo-modules-autolinking 1.3.0 → 1.4.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.4.0 — 2023-06-13
14
+
15
+ ### 🎉 New features
16
+
17
+ - Added support for React Native 0.72. ([#22588](https://github.com/expo/expo/pull/22588) by [@kudo](https://github.com/kudo))
18
+
13
19
  ## 1.3.0 — 2023-05-08
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.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Scripts that autolink Expo modules.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -48,5 +48,5 @@
48
48
  "find-up": "^5.0.0",
49
49
  "fs-extra": "^9.1.0"
50
50
  },
51
- "gitHead": "4ba50c428c8369bb6b3a51a860d4898ad4ccbe78"
51
+ "gitHead": "3ccd2edee9cbfed217557675cb50f0ba5e55a9e4"
52
52
  }
@@ -3,6 +3,17 @@
3
3
 
4
4
  require 'json'
5
5
 
6
+ REACT_DEFINE_MODULES_LIST = [
7
+ 'ReactCommon',
8
+ 'React-RCTAppDelegate',
9
+ 'React-hermes',
10
+ 'React-jsc',
11
+ 'React-Fabric',
12
+ 'React-graphics',
13
+ 'React-utils',
14
+ 'React-debug',
15
+ ]
16
+
6
17
  module Pod
7
18
  class Sandbox
8
19
  private
@@ -35,7 +46,7 @@ module Pod
35
46
  patched_spec = Specification.from_json(spec_json.to_json)
36
47
 
37
48
  # Patch podspecs to define module
38
- elsif ['ReactCommon', 'React-RCTAppDelegate', 'React-hermes', 'React-jsc'].include? name
49
+ elsif REACT_DEFINE_MODULES_LIST.include? name
39
50
  spec_json = JSON.parse(podspec.to_pretty_json)
40
51
  spec_json['pod_target_xcconfig'] ||= {}
41
52
  spec_json['pod_target_xcconfig']['DEFINES_MODULE'] = 'YES'