react-native 0.65.0-rc.3 → 0.65.2

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.
Files changed (49) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +2 -2
  2. package/React/Base/RCTVersion.m +2 -2
  3. package/React/CoreModules/RCTAppearance.mm +3 -1
  4. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +2096 -0
  5. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +2554 -0
  6. package/ReactAndroid/gradle.properties +1 -1
  7. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java +7 -0
  8. package/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java +7 -0
  9. package/ReactAndroid/src/main/java/com/facebook/react/modules/appearance/AppearanceModule.java +10 -1
  10. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +2 -2
  11. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java +16 -1
  12. package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
  13. package/android/com/facebook/react/react-native/{0.65.0-rc.3/react-native-0.65.0-rc.3.aar → 0.65.2/react-native-0.65.2.aar} +0 -0
  14. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.aar.md5 +1 -0
  15. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.aar.sha1 +1 -0
  16. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.aar.sha256 +1 -0
  17. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.aar.sha512 +1 -0
  18. package/android/com/facebook/react/react-native/{0.65.0-rc.3/react-native-0.65.0-rc.3.module → 0.65.2/react-native-0.65.2.module} +16 -16
  19. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.module.md5 +1 -0
  20. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.module.sha1 +1 -0
  21. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.module.sha256 +1 -0
  22. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.module.sha512 +1 -0
  23. package/android/com/facebook/react/react-native/{0.65.0-rc.3/react-native-0.65.0-rc.3.pom → 0.65.2/react-native-0.65.2.pom} +1 -1
  24. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.pom.md5 +1 -0
  25. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.pom.sha1 +1 -0
  26. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.pom.sha256 +1 -0
  27. package/android/com/facebook/react/react-native/0.65.2/react-native-0.65.2.pom.sha512 +1 -0
  28. package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
  29. package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
  30. package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
  31. package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
  32. package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
  33. package/package.json +5 -5
  34. package/scripts/generate-specs.sh +2 -1
  35. package/scripts/react_native_pods.rb +24 -14
  36. package/template/android/app/build.gradle +1 -1
  37. package/template/package.json +2 -2
  38. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.aar.md5 +0 -1
  39. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.aar.sha1 +0 -1
  40. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.aar.sha256 +0 -1
  41. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.aar.sha512 +0 -1
  42. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.module.md5 +0 -1
  43. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.module.sha1 +0 -1
  44. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.module.sha256 +0 -1
  45. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.module.sha512 +0 -1
  46. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.pom.md5 +0 -1
  47. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.pom.sha1 +0 -1
  48. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.pom.sha256 +0 -1
  49. package/android/com/facebook/react/react-native/0.65.0-rc.3/react-native-0.65.0-rc.3.pom.sha512 +0 -1
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.65.0-rc.3
1
+ VERSION_NAME=0.65.2
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -8,6 +8,7 @@
8
8
  package com.facebook.react;
9
9
 
10
10
  import android.content.Intent;
11
+ import android.content.res.Configuration;
11
12
  import android.os.Bundle;
12
13
  import android.view.KeyEvent;
13
14
  import androidx.annotation.Nullable;
@@ -120,6 +121,12 @@ public abstract class ReactActivity extends AppCompatActivity
120
121
  mDelegate.onWindowFocusChanged(hasFocus);
121
122
  }
122
123
 
124
+ @Override
125
+ public void onConfigurationChanged(Configuration newConfig) {
126
+ super.onConfigurationChanged(newConfig);
127
+ mDelegate.onConfigurationChanged(newConfig);
128
+ }
129
+
123
130
  protected final ReactNativeHost getReactNativeHost() {
124
131
  return mDelegate.getReactNativeHost();
125
132
  }
@@ -11,6 +11,7 @@ import android.annotation.TargetApi;
11
11
  import android.app.Activity;
12
12
  import android.content.Context;
13
13
  import android.content.Intent;
14
+ import android.content.res.Configuration;
14
15
  import android.os.Build;
15
16
  import android.os.Bundle;
16
17
  import android.view.KeyEvent;
@@ -154,6 +155,12 @@ public class ReactActivityDelegate {
154
155
  }
155
156
  }
156
157
 
158
+ public void onConfigurationChanged(Configuration newConfig) {
159
+ if (getReactNativeHost().hasInstance()) {
160
+ getReactInstanceManager().onConfigurationChanged(getContext(), newConfig);
161
+ }
162
+ }
163
+
157
164
  @TargetApi(Build.VERSION_CODES.M)
158
165
  public void requestPermissions(
159
166
  String[] permissions, int requestCode, PermissionListener listener) {
@@ -7,6 +7,7 @@
7
7
 
8
8
  package com.facebook.react.modules.appearance;
9
9
 
10
+ import android.app.Activity;
10
11
  import android.content.Context;
11
12
  import android.content.res.Configuration;
12
13
  import androidx.annotation.Nullable;
@@ -74,7 +75,15 @@ public class AppearanceModule extends NativeAppearanceSpec {
74
75
 
75
76
  @Override
76
77
  public String getColorScheme() {
77
- mColorScheme = colorSchemeForCurrentConfiguration(getReactApplicationContext());
78
+ // Attempt to use the Activity context first in order to get the most up to date
79
+ // scheme. This covers the scenario when AppCompatDelegate.setDefaultNightMode()
80
+ // is called directly (which can occur in Brownfield apps for example).
81
+ Activity activity = getCurrentActivity();
82
+
83
+ mColorScheme =
84
+ colorSchemeForCurrentConfiguration(
85
+ activity != null ? activity : getReactApplicationContext());
86
+
78
87
  return mColorScheme;
79
88
  }
80
89
 
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 65,
20
- "patch", 0,
21
- "prerelease", "rc.3");
20
+ "patch", 2,
21
+ "prerelease", null);
22
22
  }
@@ -325,6 +325,21 @@ import java.util.Map;
325
325
  }
326
326
  }
327
327
 
328
+ private static class BoxedColorPropSetter extends PropSetter {
329
+
330
+ public BoxedColorPropSetter(ReactProp prop, Method setter) {
331
+ super(prop, "mixed", setter);
332
+ }
333
+
334
+ @Override
335
+ protected @Nullable Object getValueOrDefault(Object value, Context context) {
336
+ if (value != null) {
337
+ return ColorPropConverter.getColor(value, context);
338
+ }
339
+ return null;
340
+ }
341
+ }
342
+
328
343
  /*package*/ static Map<String, String> getNativePropsForView(
329
344
  Class<? extends ViewManager> viewManagerTopClass,
330
345
  Class<? extends ReactShadowNode> shadowNodeTopClass) {
@@ -418,7 +433,7 @@ import java.util.Map;
418
433
  return new BoxedBooleanPropSetter(annotation, method);
419
434
  } else if (propTypeClass == Integer.class) {
420
435
  if ("Color".equals(annotation.customType())) {
421
- return new ColorPropSetter(annotation, method);
436
+ return new BoxedColorPropSetter(annotation, method);
422
437
  }
423
438
  return new BoxedIntPropSetter(annotation, method);
424
439
  } else if (propTypeClass == ReadableArray.class) {
@@ -17,8 +17,8 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 65;
20
- int32_t Patch = 0;
21
- std::string_view Prerelease = "rc.3";
20
+ int32_t Patch = 2;
21
+ std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
24
24
  } // namespace facebook::react
@@ -0,0 +1 @@
1
+ 9f12b8b1b21dc36149c63b362be0a824
@@ -0,0 +1 @@
1
+ ae8570c226297eee1206e33c8fbcaa956b4105fc
@@ -0,0 +1 @@
1
+ d13d4762755816a83930c2704a58174b03689dc65d2314d5844d26ced608ecfd
@@ -0,0 +1 @@
1
+ 4380186a22b704f5272c2b2e549d53c9422197b1bf1b71ddaef2ea27d03056cadf121d49aa70a1d13e33e7e7bb4f41e48c25dffe4887d87a6b51d74870f69af4
@@ -3,7 +3,7 @@
3
3
  "component": {
4
4
  "group": "com.facebook.react",
5
5
  "module": "react-native",
6
- "version": "0.65.0-rc.3",
6
+ "version": "0.65.2",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
@@ -11,7 +11,7 @@
11
11
  "createdBy": {
12
12
  "gradle": {
13
13
  "version": "6.9",
14
- "buildId": "vnyvpcgkj5cwddxuwylywsyyty"
14
+ "buildId": "2sbetvekoncltfz7ihbu43oj4i"
15
15
  }
16
16
  },
17
17
  "variants": [
@@ -125,13 +125,13 @@
125
125
  ],
126
126
  "files": [
127
127
  {
128
- "name": "react-native-0.65.0-rc.3.aar",
129
- "url": "react-native-0.65.0-rc.3.aar",
130
- "size": 17646548,
131
- "sha512": "7866095d4f1a689856231636e16d3d40a5a8eda99271d91023c98a1429801b28f172c05f3a9918a3bd0955a90aea134e9982186fe1aa8aaa956dfdd93b92ea8b",
132
- "sha256": "0dc661a2f33f37acac50cb546f7cb6425c3bc06410cfb69b6f405641e879b197",
133
- "sha1": "cd6458c0f8700ea1972bcc298a05eb6c9ac1ac1f",
134
- "md5": "f1e9c4941681b43175620f69d8aefcc1"
128
+ "name": "react-native-0.65.2.aar",
129
+ "url": "react-native-0.65.2.aar",
130
+ "size": 17647573,
131
+ "sha512": "4380186a22b704f5272c2b2e549d53c9422197b1bf1b71ddaef2ea27d03056cadf121d49aa70a1d13e33e7e7bb4f41e48c25dffe4887d87a6b51d74870f69af4",
132
+ "sha256": "d13d4762755816a83930c2704a58174b03689dc65d2314d5844d26ced608ecfd",
133
+ "sha1": "ae8570c226297eee1206e33c8fbcaa956b4105fc",
134
+ "md5": "9f12b8b1b21dc36149c63b362be0a824"
135
135
  }
136
136
  ]
137
137
  },
@@ -245,13 +245,13 @@
245
245
  ],
246
246
  "files": [
247
247
  {
248
- "name": "react-native-0.65.0-rc.3.aar",
249
- "url": "react-native-0.65.0-rc.3.aar",
250
- "size": 17646548,
251
- "sha512": "7866095d4f1a689856231636e16d3d40a5a8eda99271d91023c98a1429801b28f172c05f3a9918a3bd0955a90aea134e9982186fe1aa8aaa956dfdd93b92ea8b",
252
- "sha256": "0dc661a2f33f37acac50cb546f7cb6425c3bc06410cfb69b6f405641e879b197",
253
- "sha1": "cd6458c0f8700ea1972bcc298a05eb6c9ac1ac1f",
254
- "md5": "f1e9c4941681b43175620f69d8aefcc1"
248
+ "name": "react-native-0.65.2.aar",
249
+ "url": "react-native-0.65.2.aar",
250
+ "size": 17647573,
251
+ "sha512": "4380186a22b704f5272c2b2e549d53c9422197b1bf1b71ddaef2ea27d03056cadf121d49aa70a1d13e33e7e7bb4f41e48c25dffe4887d87a6b51d74870f69af4",
252
+ "sha256": "d13d4762755816a83930c2704a58174b03689dc65d2314d5844d26ced608ecfd",
253
+ "sha1": "ae8570c226297eee1206e33c8fbcaa956b4105fc",
254
+ "md5": "9f12b8b1b21dc36149c63b362be0a824"
255
255
  }
256
256
  ]
257
257
  }
@@ -0,0 +1 @@
1
+ 92cf8478aa5bd70f71b7339799e01f4c
@@ -0,0 +1 @@
1
+ fbb6013b12fc2eec44ee4985060eb931d5df74ba
@@ -0,0 +1 @@
1
+ d3be54c8a6ef6706e312d24ed5aec328d027aae1a5dea99c9ead5797a7793ddf
@@ -0,0 +1 @@
1
+ 8603a7fa7f35a05a3a0e34a0b4c8ce04ba488a0f8b9d25aa417033f1a2e2802d373c8443fda36a963074f1e15d6bb98a44709ee81fb7c320fd35ed5924085aad
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>com.facebook.react</groupId>
11
11
  <artifactId>react-native</artifactId>
12
- <version>0.65.0-rc.3</version>
12
+ <version>0.65.2</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>ReactNative</name>
15
15
  <description>A framework for building native apps with React</description>
@@ -0,0 +1 @@
1
+ c2e880374444723e5b7f487ac88f5a26
@@ -0,0 +1 @@
1
+ 751b1842f50e6488f158073949f2701ccce24d19
@@ -0,0 +1 @@
1
+ e54f9c3f4ddd9821e6b25fc1dc756d7aebee3d0bc3df844fdc28d17922f525c2
@@ -0,0 +1 @@
1
+ 8c8ce04d110988c323ebfce8421688753efd953edeefdd0ec6c430b8c511aa31968e4933faad4de999cd6d6ffd5b456d85918ea8ddd986ebd7ed3f2772ae7174
@@ -3,11 +3,11 @@
3
3
  <groupId>com.facebook.react</groupId>
4
4
  <artifactId>react-native</artifactId>
5
5
  <versioning>
6
- <latest>0.65.0-rc.3</latest>
7
- <release>0.65.0-rc.3</release>
6
+ <latest>0.65.2</latest>
7
+ <release>0.65.2</release>
8
8
  <versions>
9
- <version>0.65.0-rc.3</version>
9
+ <version>0.65.2</version>
10
10
  </versions>
11
- <lastUpdated>20210723160406</lastUpdated>
11
+ <lastUpdated>20211104072303</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- d923fc898c96cd8032c1e944fe5d8403
1
+ b8b576a7b77c7f163d6b7270ac09ce35
@@ -1 +1 @@
1
- 048d07b9829c3f24bd02a2f86ba1e3fa8d89dd2a
1
+ d5042457c67ee8dc7bd7f5b0a0ae7f95a0571074
@@ -1 +1 @@
1
- 6de87d21cff951660efbb538aa487afab79f545501a63a6de5744b3babe181bb
1
+ 2def014f5f410150f7286b2b4f57889117230b535e9d16543dc7dd8bb34768e1
@@ -1 +1 @@
1
- 171dfb77d02292b3fbfde9171b1bb078c0ab9e76748fd90d856dc39b0f9df3b46035bda98469bdf2fc4f46db9d47424438e87358a748b956aa981011fb75cb4d
1
+ 32e345c332bbc42058e86b12cfe4e936071fd23abedc0ee6dab02582bfa5fadd0e41ef8208ccdff291c6e1ae8e3ad531b75b6c3e4a0b0e180528fae26858bae0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.65.0-rc.3",
3
+ "version": "0.65.2",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -85,9 +85,9 @@
85
85
  },
86
86
  "dependencies": {
87
87
  "@jest/create-cache-key-function": "^27.0.1",
88
- "@react-native-community/cli": "^6.0.0-rc.0",
89
- "@react-native-community/cli-platform-android": "^6.0.0-rc.0",
90
- "@react-native-community/cli-platform-ios": "^6.0.0-rc.0",
88
+ "@react-native-community/cli": "^6.0.0",
89
+ "@react-native-community/cli-platform-android": "^6.0.0",
90
+ "@react-native-community/cli-platform-ios": "^6.0.0",
91
91
  "@react-native/assets": "1.0.0",
92
92
  "@react-native/normalize-color": "1.0.0",
93
93
  "@react-native/polyfills": "1.0.0",
@@ -109,7 +109,7 @@
109
109
  "react-devtools-core": "^4.6.0",
110
110
  "react-refresh": "^0.4.0",
111
111
  "regenerator-runtime": "^0.13.2",
112
- "scheduler": "^0.20.1",
112
+ "scheduler": "^0.20.2",
113
113
  "stacktrace-parser": "^0.1.3",
114
114
  "use-subscription": "^1.0.0",
115
115
  "whatwg-fetch": "^3.0.0",
@@ -27,13 +27,14 @@ set -e
27
27
  THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
28
28
  TEMP_DIR=$(mktemp -d /tmp/react-native-codegen-XXXXXXXX)
29
29
  RN_DIR=$(cd "$THIS_DIR/.." && pwd)
30
- NODE_BINARY="${NODE_BINARY:-$(command -v node || true)}"
31
30
  USE_FABRIC="${USE_FABRIC:-0}"
32
31
 
33
32
  # Find path to Node
34
33
  # shellcheck source=/dev/null
35
34
  source "$RN_DIR/scripts/find-node.sh"
36
35
 
36
+ NODE_BINARY="${NODE_BINARY:-$(command -v node || true)}"
37
+
37
38
  cleanup () {
38
39
  set +e
39
40
  rm -rf "$TEMP_DIR"
@@ -152,31 +152,33 @@ end
152
152
  def use_react_native_codegen!(spec, options={})
153
153
  return if ENV['DISABLE_CODEGEN'] == '1'
154
154
 
155
- # The path to react-native
156
- prefix = options[:path] ||= "${PODS_TARGET_SRCROOT}/../.."
155
+ # The prefix to react-native
156
+ prefix = options[:react_native_path] ||= "../.."
157
157
 
158
158
  # The path to JavaScript files
159
159
  js_srcs = options[:js_srcs_dir] ||= "#{prefix}/Libraries"
160
160
 
161
161
  # Library name (e.g. FBReactNativeSpec)
162
- modules_library_name = spec.name
163
- modules_output_dir = "React/#{modules_library_name}/#{modules_library_name}"
162
+ modules_library_name = options[:library_name] ||= spec.name
164
163
 
165
- # Run the codegen as part of the Xcode build pipeline.
166
- env_vars = "SRCS_DIR=#{js_srcs}"
167
- env_vars += " MODULES_OUTPUT_DIR=#{prefix}/#{modules_output_dir}"
168
- env_vars += " MODULES_LIBRARY_NAME=#{modules_library_name}"
164
+ # Output dir, relative to podspec that invoked this method
165
+ modules_output_dir = options[:modules_output_dir] ||= "#{prefix}/React/#{modules_library_name}/#{modules_library_name}"
169
166
 
170
167
  generated_dirs = [ modules_output_dir ]
171
168
  generated_filenames = [ "#{modules_library_name}.h", "#{modules_library_name}-generated.mm" ]
172
169
  generated_files = generated_filenames.map { |filename| "#{modules_output_dir}/#{filename}" }
173
170
 
171
+ # Run the codegen as part of the Xcode build pipeline.
172
+ env_vars = "SRCS_DIR='${PODS_TARGET_SRCROOT}/#{js_srcs}'"
173
+ env_vars += " MODULES_OUTPUT_DIR='${PODS_TARGET_SRCROOT}/#{modules_output_dir}'"
174
+ env_vars += " MODULES_LIBRARY_NAME='#{modules_library_name}'"
175
+
174
176
  if ENV['USE_FABRIC'] == '1'
175
177
  # We use a different library name for components, as well as an additional set of files.
176
178
  # Eventually, we want these to be part of the same library as #{modules_library_name} above.
177
- components_output_dir = "ReactCommon/react/renderer/components/rncore/"
179
+ components_output_dir = options[:components_output_dir] ||= "#{prefix}/ReactCommon/react/renderer/components/rncore/"
178
180
  generated_dirs.push components_output_dir
179
- env_vars += " COMPONENTS_OUTPUT_DIR=#{prefix}/#{components_output_dir}"
181
+ env_vars += " COMPONENTS_OUTPUT_DIR='${PODS_TARGET_SRCROOT}/#{components_output_dir}'"
180
182
  components_generated_filenames = [
181
183
  "ComponentDescriptors.h",
182
184
  "EventEmitters.cpp",
@@ -190,13 +192,21 @@ def use_react_native_codegen!(spec, options={})
190
192
  generated_files = generated_files.concat(components_generated_filenames.map { |filename| "#{components_output_dir}/#{filename}" })
191
193
  end
192
194
 
195
+ # Prepare filesystem by creating empty files that will be picked up as references by CocoaPods.
196
+ prepare_command = "mkdir -p #{generated_dirs.join(" ")} && touch -a #{generated_files.join(" ")}"
197
+ system(prepare_command) # Always run prepare_command when a podspec uses the codegen, as CocoaPods may skip invoking this command in certain scenarios
198
+ spec.prepare_command = prepare_command
199
+
193
200
  spec.script_phase = {
194
201
  :name => 'Generate Specs',
195
- :input_files => [js_srcs],
196
- :output_files => ["${DERIVED_FILE_DIR}/codegen-#{modules_library_name}.log"].concat(generated_files.map { |filename| "#{prefix}/#{filename}"} ),
197
- :script => "set -o pipefail\n\nbash -l -c '#{env_vars} ${PODS_TARGET_SRCROOT}/../../scripts/generate-specs.sh' 2>&1 | tee \"${SCRIPT_OUTPUT_FILE_0}\"",
202
+ :input_files => [ "${PODS_TARGET_SRCROOT}/#{js_srcs}" ], # This also needs to be relative to Xcode
203
+ :output_files => ["${DERIVED_FILE_DIR}/codegen-#{modules_library_name}.log"].concat(generated_files.map { |filename| " ${PODS_TARGET_SRCROOT}/#{filename}"} ),
204
+ # The final generated files will be created when this script is invoked at Xcode build time.
205
+ :script => %{set -o pipefail
206
+
207
+ bash -l -c '#{env_vars} $\{PODS_TARGET_SRCROOT\}/#{prefix}/scripts/generate-specs.sh' 2>&1 | tee "${SCRIPT_OUTPUT_FILE_0}"
208
+ },
198
209
  :execution_position => :before_compile,
199
210
  :show_env_vars_in_log => true
200
211
  }
201
- spec.prepare_command = "mkdir -p #{generated_dirs.reduce("") { |str, dir| "#{str} ../../#{dir}" }} && touch #{generated_files.reduce("") { |str, filename| "#{str} ../../#{filename}" }}"
202
212
  end
@@ -210,7 +210,7 @@ dependencies {
210
210
  // Run this once to be able to run the application with BUCK
211
211
  // puts all compile dependencies into folder libs for BUCK to use
212
212
  task copyDownloadableDepsToLibs(type: Copy) {
213
- from configurations.compile
213
+ from configurations.implementation
214
214
  into 'libs'
215
215
  }
216
216
 
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.2",
14
- "react-native": "0.65.0-rc.3"
14
+ "react-native": "0.65.2"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",
@@ -22,7 +22,7 @@
22
22
  "jest": "^26.6.3",
23
23
  "metro-react-native-babel-preset": "^0.66.0",
24
24
  "react-native-codegen": "^0.0.7",
25
- "react-test-renderer": "17.0.1"
25
+ "react-test-renderer": "17.0.2"
26
26
  },
27
27
  "jest": {
28
28
  "preset": "react-native"
@@ -1 +0,0 @@
1
- f1e9c4941681b43175620f69d8aefcc1
@@ -1 +0,0 @@
1
- cd6458c0f8700ea1972bcc298a05eb6c9ac1ac1f
@@ -1 +0,0 @@
1
- 0dc661a2f33f37acac50cb546f7cb6425c3bc06410cfb69b6f405641e879b197
@@ -1 +0,0 @@
1
- 7866095d4f1a689856231636e16d3d40a5a8eda99271d91023c98a1429801b28f172c05f3a9918a3bd0955a90aea134e9982186fe1aa8aaa956dfdd93b92ea8b
@@ -1 +0,0 @@
1
- 95551ec3d2a3068d9bbdee20cbbce03a8377ae24
@@ -1 +0,0 @@
1
- 3e171e7e8424950f931b762d99e1a9e79db9de0ea16b4f90b456db6c3092e7d0
@@ -1 +0,0 @@
1
- 0ca2b5566ca71b69a9433575f2f17d461fa3e1947c8cac8897ba211e8d46e3eb7d4499a346275dec19ac56732e1c6eb4768b47564831edb3906bff8d584d9b31
@@ -1 +0,0 @@
1
- 27992c8af709eb479c8a12f5eab9a87b
@@ -1 +0,0 @@
1
- ba43dd489d0e7da7f49cb6fa0823e646e53a29cb
@@ -1 +0,0 @@
1
- 725c8d6334ec6d6ddf53031e9d661e9705c10cd85e497f33b3901e7b05631fdc
@@ -1 +0,0 @@
1
- f4e8a911b077e3edeed6c5b3d667f473636adccb294851c9c7c80f47b5ec41bb971cf9ff03a1c561750e33445bf8a99327e33465dcc3eb83101f00b75f20641a