react-native 0.68.0-rc.0 → 0.68.0-rc.3

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 (83) hide show
  1. package/Libraries/Blob/React-RCTBlob.podspec +1 -1
  2. package/Libraries/Components/Switch/Switch.js +2 -1
  3. package/Libraries/Core/ReactNativeVersion.js +1 -1
  4. package/Libraries/Image/React-RCTImage.podspec +1 -1
  5. package/Libraries/LinkingIOS/React-RCTLinking.podspec +1 -1
  6. package/Libraries/NativeAnimation/React-RCTAnimation.podspec +1 -1
  7. package/Libraries/Network/React-RCTNetwork.podspec +1 -1
  8. package/Libraries/PushNotificationIOS/React-RCTPushNotification.podspec +1 -1
  9. package/Libraries/Settings/React-RCTSettings.podspec +1 -1
  10. package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +1 -29
  11. package/Libraries/Text/TextInput/RCTBaseTextInputView.m +2 -0
  12. package/Libraries/Vibration/React-RCTVibration.podspec +1 -1
  13. package/React/Base/RCTVersion.m +1 -1
  14. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingProxyRootView.mm +4 -7
  15. package/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +4 -2
  16. package/React/CoreModules/React-CoreModules.podspec +1 -1
  17. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +4 -2
  18. package/React/React-RCTFabric.podspec +1 -1
  19. package/ReactAndroid/build.gradle +7 -1
  20. package/ReactAndroid/gradle.properties +1 -1
  21. package/ReactAndroid/proguard-rules.pro +4 -6
  22. package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +7 -3
  23. package/ReactAndroid/src/main/java/com/facebook/react/config/ReactFeatureFlags.java +0 -3
  24. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  25. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextShadowNode.java +0 -5
  26. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java +0 -12
  27. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  28. package/ReactCommon/react/renderer/mapbuffer/MapBuffer.cpp +5 -5
  29. package/ReactCommon/react/renderer/mapbuffer/MapBuffer.h +5 -3
  30. package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp +7 -5
  31. package/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.h +1 -1
  32. package/android/com/facebook/react/react-native/{0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar → 0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar} +0 -0
  33. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar.md5 +1 -0
  34. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar.sha1 +1 -0
  35. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar.sha256 +1 -0
  36. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3-sources.jar.sha512 +1 -0
  37. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar +0 -0
  38. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar.md5 +1 -0
  39. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar.sha1 +1 -0
  40. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar.sha256 +1 -0
  41. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.aar.sha512 +1 -0
  42. package/android/com/facebook/react/react-native/{0.68.0-rc.0/react-native-0.68.0-rc.0.module → 0.68.0-rc.3/react-native-0.68.0-rc.3.module} +15 -15
  43. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.module.md5 +1 -0
  44. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.module.sha1 +1 -0
  45. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.module.sha256 +1 -0
  46. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.module.sha512 +1 -0
  47. package/android/com/facebook/react/react-native/{0.68.0-rc.0/react-native-0.68.0-rc.0.pom → 0.68.0-rc.3/react-native-0.68.0-rc.3.pom} +1 -1
  48. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.md5 +1 -0
  49. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.sha1 +1 -0
  50. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.sha256 +1 -0
  51. package/android/com/facebook/react/react-native/0.68.0-rc.3/react-native-0.68.0-rc.3.pom.sha512 +1 -0
  52. package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
  53. package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
  54. package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
  55. package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
  56. package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
  57. package/package.json +5 -4
  58. package/react.gradle +52 -15
  59. package/scripts/react_native_pods.rb +12 -9
  60. package/template/Gemfile.lock +5 -5
  61. package/template/_flowconfig +2 -0
  62. package/template/android/app/build.gradle +28 -13
  63. package/template/android/gradle.properties +2 -2
  64. package/template/ios/Podfile +2 -2
  65. package/template/package.json +1 -5
  66. package/third-party-podspecs/RCT-Folly.podspec +5 -1
  67. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar.md5 +0 -1
  68. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar.sha1 +0 -1
  69. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar.sha256 +0 -1
  70. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0-sources.jar.sha512 +0 -1
  71. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar +0 -0
  72. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.md5 +0 -1
  73. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.sha1 +0 -1
  74. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.sha256 +0 -1
  75. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.aar.sha512 +0 -1
  76. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.md5 +0 -1
  77. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.sha1 +0 -1
  78. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.sha256 +0 -1
  79. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.module.sha512 +0 -1
  80. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.md5 +0 -1
  81. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.sha1 +0 -1
  82. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.sha256 +0 -1
  83. package/android/com/facebook/react/react-native/0.68.0-rc.0/react-native-0.68.0-rc.0.pom.sha512 +0 -1
@@ -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.68.0-rc.0</version>
12
+ <version>0.68.0-rc.3</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
+ 404f6b92fc9cb5fcb260ec295c71c51b3471f125
@@ -0,0 +1 @@
1
+ f2341daae502c4a5e5c331cd5f9d6b83e8e1fd9de7b07fa18aa79bdbe0f0a134
@@ -0,0 +1 @@
1
+ c750d6a1f17a95b26021926dfe5d8a473dfa92e04ddda77106a8a32553127a4042fe7e421794f434ad35e2fda6e660dd4b1ad2188dd44c9048b15a3c40cef991
@@ -3,11 +3,11 @@
3
3
  <groupId>com.facebook.react</groupId>
4
4
  <artifactId>react-native</artifactId>
5
5
  <versioning>
6
- <latest>0.68.0-rc.0</latest>
7
- <release>0.68.0-rc.0</release>
6
+ <latest>0.68.0-rc.3</latest>
7
+ <release>0.68.0-rc.3</release>
8
8
  <versions>
9
- <version>0.68.0-rc.0</version>
9
+ <version>0.68.0-rc.3</version>
10
10
  </versions>
11
- <lastUpdated>20220128194053</lastUpdated>
11
+ <lastUpdated>20220317130835</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- d24f069cf11b4e84685eb525c7ba9791
1
+ 1f962d9f97c011638f2e8fbece96f653
@@ -1 +1 @@
1
- 7ca0d539317f9d523ff02bccee0b831d7e6c4ef6
1
+ 5c041a9349b5eef4146725efcc1c06495bf6ce97
@@ -1 +1 @@
1
- 78a919e127c88b97b103b6e8ebfffdc032b970be891ca9e0ab15864a11ab71f4
1
+ 82ecc2d7c6b571a55bc8c6077353307b1b6d58f4dc8d161b3f593c2e761aff43
@@ -1 +1 @@
1
- 6ca43c2138be68f98bc9f984045ed5136201bd1fb699733b60df19bbd1d57951e6f798665e3eac82149e366e2eafa5b14234cfbd613f7123e0ce83d7bf077e70
1
+ 80df3500fce9108fe02e366d8c97f8a7a86f8094930e2d983def08133c8dcffe460f3c8003b427a19bacc88d240b2753ebc75c0e0fb44d75b24587ea50c2c0bb
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.68.0-rc.0",
3
+ "version": "0.68.0-rc.3",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -87,9 +87,9 @@
87
87
  },
88
88
  "dependencies": {
89
89
  "@jest/create-cache-key-function": "^27.0.1",
90
- "@react-native-community/cli": "^6.0.0",
91
- "@react-native-community/cli-platform-android": "^6.0.0",
92
- "@react-native-community/cli-platform-ios": "^6.0.0",
90
+ "@react-native-community/cli": "^7.0.3",
91
+ "@react-native-community/cli-platform-android": "^7.0.1",
92
+ "@react-native-community/cli-platform-ios": "^7.0.1",
93
93
  "@react-native/assets": "1.0.0",
94
94
  "@react-native/normalize-color": "2.0.0",
95
95
  "@react-native/polyfills": "2.0.0",
@@ -108,6 +108,7 @@
108
108
  "pretty-format": "^26.5.2",
109
109
  "promise": "^8.0.3",
110
110
  "react-devtools-core": "^4.23.0",
111
+ "react-native-gradle-plugin": "^0.0.5",
111
112
  "react-refresh": "^0.4.0",
112
113
  "react-shallow-renderer": "16.14.1",
113
114
  "regenerator-runtime": "^0.13.2",
package/react.gradle CHANGED
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  import org.apache.tools.ant.taskdefs.condition.Os
9
+ import org.gradle.internal.jvm.Jvm
9
10
 
10
11
  def config = project.hasProperty("react") ? project.react : [:];
11
12
 
@@ -21,20 +22,6 @@ def detectEntryFile(config) {
21
22
  return "index.js";
22
23
  }
23
24
 
24
- /**
25
- * Detects CLI location in a similar fashion to the React Native CLI
26
- */
27
- def detectCliPath(config) {
28
- if (config.cliPath) {
29
- return "${projectDir}/${config.cliPath}"
30
- }
31
- if (new File("${projectDir}/../../node_modules/react-native/cli.js").exists()) {
32
- return "${projectDir}/../../node_modules/react-native/cli.js"
33
- }
34
- throw new Exception("Couldn't determine CLI location. " +
35
- "Please set `project.ext.react.cliPath` to the path of the react-native cli.js file. This file typically resides in `node_modules/react-native/cli.js`");
36
- }
37
-
38
25
  def composeSourceMapsPath = config.composeSourceMapsPath ?: "node_modules/react-native/scripts/compose-source-maps.js"
39
26
  def bundleAssetName = config.bundleAssetName ?: "index.android.bundle"
40
27
  def entryFile = detectEntryFile(config)
@@ -45,6 +32,43 @@ def bundleConfig = config.bundleConfig ? "${reactRoot}/${config.bundleConfig}" :
45
32
  def enableVmCleanup = config.enableVmCleanup == null ? true : config.enableVmCleanup
46
33
  def hermesCommand = config.hermesCommand ?: "../../node_modules/hermes-engine/%OS-BIN%/hermesc"
47
34
 
35
+ /**
36
+ * Detects CLI location in a similar fashion to the React Native CLI
37
+ */
38
+ def detectCliPath(config, reactRoot) {
39
+ // 1. preconfigured path
40
+ if (config.cliPath) {
41
+ def cliJsAbsolute = new File(config.cliPath)
42
+ if (cliJsAbsolute.exists()) {
43
+ return cliJsAbsolute.getAbsolutePath()
44
+ }
45
+ def cliJsRelativeToRoot = new File("${rootDir}/${config.cliPath}")
46
+ if (cliJsRelativeToRoot.exists()) {
47
+ return cliJsRelativeToRoot.getAbsolutePath()
48
+ }
49
+ def cliJsRelativeToProject = new File("${projectDir}/${config.cliPath}")
50
+ if (cliJsRelativeToProject.exists()) {
51
+ return cliJsRelativeToProject.getAbsolutePath()
52
+ }
53
+ }
54
+
55
+ // 2. node module path
56
+ def cliJsFromNode = new File(["node", "--print", "require.resolve('react-native/cli').bin"].execute(null, rootDir).text.trim())
57
+ if (cliJsFromNode.exists()) {
58
+ return cliJsFromNode.getAbsolutePath()
59
+ }
60
+
61
+ // 3. cli.js in the root folder
62
+ def rootCliJs = new File(reactRoot, "node_modules/react-native/cli.js")
63
+ if (rootCliJs.exists()) {
64
+ return rootCliJs.getAbsolutePath()
65
+ }
66
+
67
+ throw new Exception("Couldn't determine CLI location. " +
68
+ "Please set `project.ext.react.cliPath` to the path of the react-native cli.js file. " +
69
+ "This file typically resides in `node_modules/react-native/cli.js`");
70
+ }
71
+
48
72
  def reactNativeDevServerPort() {
49
73
  def value = project.getProperties().get("reactNativeDevServerPort")
50
74
  return value != null ? value : "8081"
@@ -129,6 +153,19 @@ android {
129
153
  }
130
154
  }
131
155
 
156
+ def jvmVersion = Jvm.current().javaVersion.majorVersion
157
+ if (jvmVersion.toInteger() <= 8) {
158
+ println "\n\n\n"
159
+ println "**************************************************************************************************************"
160
+ println "\n\n"
161
+ println "ERROR: requires JDK11 or higher."
162
+ println "Incompatible major version detected: '" + jvmVersion + "'"
163
+ println "\n\n"
164
+ println "**************************************************************************************************************"
165
+ println "\n\n\n"
166
+ System.exit(1)
167
+ }
168
+
132
169
  afterEvaluate {
133
170
  def isAndroidLibrary = plugins.hasPlugin("com.android.library")
134
171
  def variants = isAndroidLibrary ? android.libraryVariants : android.applicationVariants
@@ -150,7 +187,7 @@ afterEvaluate {
150
187
 
151
188
  // Additional node and packager commandline arguments
152
189
  def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"]
153
- def cliPath = detectCliPath(config)
190
+ def cliPath = detectCliPath(config, reactRoot)
154
191
 
155
192
  def execCommand = []
156
193
 
@@ -131,10 +131,10 @@ end
131
131
  def use_flipper!(versions = {}, configurations: ['Debug'])
132
132
  versions['Flipper'] ||= '0.125.0'
133
133
  versions['Flipper-Boost-iOSX'] ||= '1.76.0.1.11'
134
- versions['Flipper-DoubleConversion'] ||= '3.1.7'
134
+ versions['Flipper-DoubleConversion'] ||= '3.2.0'
135
135
  versions['Flipper-Fmt'] ||= '7.1.7'
136
136
  versions['Flipper-Folly'] ||= '2.6.10'
137
- versions['Flipper-Glog'] ||= '0.3.9'
137
+ versions['Flipper-Glog'] ||= '0.5.0.4'
138
138
  versions['Flipper-PeerTalk'] ||= '0.0.4'
139
139
  versions['Flipper-RSocket'] ||= '1.4.3'
140
140
  versions['OpenSSL-Universal'] ||= '1.1.1100'
@@ -271,8 +271,9 @@ def modify_flags_for_new_architecture(installer, cpp_flags)
271
271
  end
272
272
 
273
273
  def build_codegen!(react_native_path)
274
- codegen_repo_path = "#{react_native_path}/packages/react-native-codegen";
275
- codegen_npm_path = "#{react_native_path}/../react-native-codegen";
274
+ relative_installation_root = Pod::Config.instance.installation_root.relative_path_from(Pathname.pwd)
275
+ codegen_repo_path = "#{relative_installation_root}/#{react_native_path}/packages/react-native-codegen";
276
+ codegen_npm_path = "#{relative_installation_root}/#{react_native_path}/../react-native-codegen";
276
277
  codegen_cli_path = ""
277
278
  if Dir.exist?(codegen_repo_path)
278
279
  codegen_cli_path = codegen_repo_path
@@ -313,7 +314,7 @@ def checkAndGenerateEmptyThirdPartyProvider!(react_native_path)
313
314
  Pod::Executable.execute_command(
314
315
  'node',
315
316
  [
316
- "#{react_native_path}/scripts/generate-provider-cli.js",
317
+ "#{relative_installation_root}/#{react_native_path}/scripts/generate-provider-cli.js",
317
318
  "--platform", 'ios',
318
319
  "--schemaListPath", temp_schema_list_path,
319
320
  "--outputDir", "#{output_dir}"
@@ -503,6 +504,7 @@ def use_react_native_codegen_discovery!(options={})
503
504
  app_path = options[:app_path]
504
505
  fabric_enabled = options[:fabric_enabled] ||= false
505
506
  config_file_dir = options[:config_file_dir] ||= ''
507
+ relative_installation_root = Pod::Config.instance.installation_root.relative_path_from(Pathname.pwd)
506
508
 
507
509
  if !app_path
508
510
  Pod::UI.warn '[Codegen] Error: app_path is required for use_react_native_codegen_discovery.'
@@ -518,7 +520,7 @@ def use_react_native_codegen_discovery!(options={})
518
520
  out = Pod::Executable.execute_command(
519
521
  'node',
520
522
  [
521
- "#{react_native_path}/scripts/generate-artifacts.js",
523
+ "#{relative_installation_root}/#{react_native_path}/scripts/generate-artifacts.js",
522
524
  "-p", "#{app_path}",
523
525
  "-o", Pod::Config.instance.installation_root,
524
526
  "-e", "#{fabric_enabled}",
@@ -540,6 +542,7 @@ def use_react_native_codegen!(spec, options={})
540
542
  library_name = options[:library_name] ||= "#{spec.name.gsub('_','-').split('-').collect(&:capitalize).join}Spec"
541
543
  Pod::UI.puts "[Codegen] Found #{library_name}"
542
544
 
545
+ relative_installation_root = Pod::Config.instance.installation_root.relative_path_from(Pathname.pwd)
543
546
  output_dir = options[:output_dir] ||= $CODEGEN_OUTPUT_DIR
544
547
  output_dir_module = "#{output_dir}/#{$CODEGEN_MODULE_DIR}"
545
548
  output_dir_component = "#{output_dir}/#{$CODEGEN_COMPONENT_DIR}"
@@ -547,7 +550,7 @@ def use_react_native_codegen!(spec, options={})
547
550
  codegen_config = {
548
551
  "modules" => {
549
552
  :js_srcs_pattern => "Native*.js",
550
- :generated_dir => "#{Pod::Config.instance.installation_root}/#{output_dir_module}/#{library_name}",
553
+ :generated_dir => "#{relative_installation_root}/#{output_dir_module}/#{library_name}",
551
554
  :generated_files => [
552
555
  "#{library_name}.h",
553
556
  "#{library_name}-generated.mm"
@@ -555,7 +558,7 @@ def use_react_native_codegen!(spec, options={})
555
558
  },
556
559
  "components" => {
557
560
  :js_srcs_pattern => "*NativeComponent.js",
558
- :generated_dir => "#{Pod::Config.instance.installation_root}/#{output_dir_component}/#{library_name}",
561
+ :generated_dir => "#{relative_installation_root}/#{output_dir_component}/#{library_name}",
559
562
  :generated_files => [
560
563
  "ComponentDescriptors.h",
561
564
  "EventEmitters.cpp",
@@ -604,7 +607,7 @@ def use_react_native_codegen!(spec, options={})
604
607
  spec.script_phase = {
605
608
  :name => 'Generate Specs',
606
609
  :input_files => input_files, # This also needs to be relative to Xcode
607
- :output_files => ["${DERIVED_FILE_DIR}/codegen-#{library_name}.log"].concat(generated_files.map { |filename| " ${PODS_TARGET_SRCROOT}/#{filename}"} ),
610
+ :output_files => ["${DERIVED_FILE_DIR}/codegen-#{library_name}.log"].concat(generated_files.map { |filename| "${PODS_TARGET_SRCROOT}/#{filename}"} ),
608
611
  # The final generated files will be created when this script is invoked at Xcode build time.
609
612
  :script => get_script_phases_no_codegen_discovery(
610
613
  react_native_path: react_native_path,
@@ -3,7 +3,7 @@ GEM
3
3
  specs:
4
4
  CFPropertyList (3.0.5)
5
5
  rexml
6
- activesupport (6.1.4.4)
6
+ activesupport (6.1.5)
7
7
  concurrent-ruby (~> 1.0, >= 1.0.2)
8
8
  i18n (>= 1.6, < 2)
9
9
  minitest (>= 5.1)
@@ -16,10 +16,10 @@ GEM
16
16
  json (>= 1.5.1)
17
17
  atomos (0.1.3)
18
18
  claide (1.1.0)
19
- cocoapods (1.11.2)
19
+ cocoapods (1.11.3)
20
20
  addressable (~> 2.8)
21
21
  claide (>= 1.0.2, < 2.0)
22
- cocoapods-core (= 1.11.2)
22
+ cocoapods-core (= 1.11.3)
23
23
  cocoapods-deintegrate (>= 1.0.3, < 2.0)
24
24
  cocoapods-downloader (>= 1.4.0, < 2.0)
25
25
  cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -34,7 +34,7 @@ GEM
34
34
  nap (~> 1.0)
35
35
  ruby-macho (>= 1.0, < 3.0)
36
36
  xcodeproj (>= 1.21.0, < 2.0)
37
- cocoapods-core (1.11.2)
37
+ cocoapods-core (1.11.3)
38
38
  activesupport (>= 5.0, < 7)
39
39
  addressable (~> 2.8)
40
40
  algoliasearch (~> 1.0)
@@ -63,7 +63,7 @@ GEM
63
63
  fuzzy_match (2.0.4)
64
64
  gh_inspector (1.1.3)
65
65
  httpclient (2.8.3)
66
- i18n (1.9.1)
66
+ i18n (1.10.0)
67
67
  concurrent-ruby (~> 1.0)
68
68
  json (2.6.1)
69
69
  minitest (5.15.0)
@@ -11,6 +11,8 @@ node_modules/react-native/Libraries/polyfills/.*
11
11
  ; Flow doesn't support platforms
12
12
  .*/Libraries/Utilities/LoadingView.js
13
13
 
14
+ .*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$
15
+
14
16
  [untyped]
15
17
  .*/node_modules/@react-native-community/cli/.*/.*
16
18
 
@@ -186,6 +186,20 @@ android {
186
186
  // preBuild.dependsOn("generateCodegenArtifactsFromSchema")
187
187
  preDebugBuild.dependsOn(packageReactNdkDebugLibs)
188
188
  preReleaseBuild.dependsOn(packageReactNdkReleaseLibs)
189
+
190
+ // Due to a bug inside AGP, we have to explicitly set a dependency
191
+ // between configureNdkBuild* tasks and the preBuild tasks.
192
+ // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732
193
+ configureNdkBuildRelease.dependsOn(preReleaseBuild)
194
+ configureNdkBuildDebug.dependsOn(preDebugBuild)
195
+ reactNativeArchitectures().each { architecture ->
196
+ tasks.findByName("configureNdkBuildDebug[${architecture}]")?.configure {
197
+ dependsOn("preDebugBuild")
198
+ }
199
+ tasks.findByName("configureNdkBuildRelease[${architecture}]")?.configure {
200
+ dependsOn("preReleaseBuild")
201
+ }
202
+ }
189
203
  }
190
204
  }
191
205
 
@@ -233,24 +247,13 @@ android {
233
247
 
234
248
  }
235
249
  }
236
-
237
- packagingOptions {
238
- pickFirst '**/libhermes.so'
239
- pickFirst '**/libjsc.so'
240
- }
241
250
  }
242
251
 
243
252
  dependencies {
244
253
  implementation fileTree(dir: "libs", include: ["*.jar"])
245
254
 
246
- // If new architecture is enabled, we let you build RN from source
247
- // Otherwise we fallback to a prebuilt .aar bundled in the NPM package.
248
- if (isNewArchitectureEnabled()) {
249
- implementation project(":ReactAndroid")
250
- } else {
251
- //noinspection GradleDynamicVersion
252
- implementation "com.facebook.react:react-native:+" // From node_modules
253
- }
255
+ //noinspection GradleDynamicVersion
256
+ implementation "com.facebook.react:react-native:+" // From node_modules
254
257
 
255
258
  implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
256
259
 
@@ -276,6 +279,18 @@ dependencies {
276
279
  }
277
280
  }
278
281
 
282
+ if (isNewArchitectureEnabled()) {
283
+ // If new architecture is enabled, we let you build RN from source
284
+ // Otherwise we fallback to a prebuilt .aar bundled in the NPM package.
285
+ // This will be applied to all the imported transtitive dependency.
286
+ configurations.all {
287
+ resolutionStrategy.dependencySubstitution {
288
+ substitute(module("com.facebook.react:react-native"))
289
+ .using(project(":ReactAndroid")).because("On New Architecture we're building React Native from source")
290
+ }
291
+ }
292
+ }
293
+
279
294
  // Run this once to be able to run the application with BUCK
280
295
  // puts all compile dependencies into folder libs for BUCK to use
281
296
  task copyDownloadableDepsToLibs(type: Copy) {
@@ -9,8 +9,8 @@
9
9
 
10
10
  # Specifies the JVM arguments used for the daemon process.
11
11
  # The setting is particularly useful for tweaking memory settings.
12
- # Default value: -Xmx1024m -XX:MaxPermSize=256m
13
- # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
12
+ # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
13
+ org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
14
14
 
15
15
  # When configured, Gradle will run in incubating parallel mode.
16
16
  # This option should only be used with decoupled projects. More details, visit
@@ -15,8 +15,8 @@ target 'HelloWorld' do
15
15
  # to enable hermes on iOS, change `false` to `true` and then install pods
16
16
  :hermes_enabled => flags[:hermes_enabled],
17
17
  :fabric_enabled => flags[:fabric_enabled],
18
- # An abosolute path to your application root.
19
- :app_path => "#{Dir.pwd}/.."
18
+ # An absolute path to your application root.
19
+ :app_path => "#{Pod::Config.instance.installation_root}/.."
20
20
  )
21
21
 
22
22
  target 'HelloWorldTests' do
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.2",
14
- "react-native": "0.68.0-rc.0"
14
+ "react-native": "0.68.0-rc.3"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",
@@ -21,13 +21,9 @@
21
21
  "eslint": "^7.32.0",
22
22
  "jest": "^26.6.3",
23
23
  "metro-react-native-babel-preset": "^0.67.0",
24
- "react-native-gradle-plugin": "^0.0.4",
25
24
  "react-test-renderer": "17.0.2"
26
25
  },
27
26
  "jest": {
28
27
  "preset": "react-native"
29
- },
30
- "codegenConfig": {
31
- "libraries": []
32
28
  }
33
29
  }
@@ -91,7 +91,11 @@ Pod::Spec.new do |spec|
91
91
  'folly/concurrency/CacheLocality.cpp',
92
92
  'folly/detail/Futex.cpp',
93
93
  'folly/synchronization/ParkingLot.cpp',
94
- 'folly/portability/Malloc.cpp'
94
+ 'folly/portability/Malloc.cpp',
95
+ 'folly/concurrency/CacheLocality.h',
96
+ 'folly/synchronization/ParkingLot.h',
97
+ 'folly/synchronization/SanitizeThread.h',
98
+ 'folly/system/ThreadId.h'
95
99
 
96
100
  fabric.preserve_paths = 'folly/concurrency/CacheLocality.h',
97
101
  'folly/synchronization/ParkingLot.h',
@@ -1 +0,0 @@
1
- 2bf726dacf4698363693205f90464b9120132eb8
@@ -1 +0,0 @@
1
- 854ba7ec58f695e754ee8685e5e15376aa14b52b23cfdfecbee2e78dbc88806e
@@ -1 +0,0 @@
1
- d38849cb8e7af3b28a732f8df25d89df78f4e148c49e426302e2ceebcc18f680e0010dc58aef13a59b8771c4162e468ad89902ef4f95c44e849dd0aefe370edf
@@ -1 +0,0 @@
1
- 59f5fb0f2117fb928a3e577df4ce9e3e
@@ -1 +0,0 @@
1
- 05c90a01ca9a36b8da76f16aad42e6b1e8df757b
@@ -1 +0,0 @@
1
- 312453337c694fc69741b685554eebb60b4c1cce84f847bdfa2d565e3ba19719
@@ -1 +0,0 @@
1
- 1b5c6233d0cb6f374aa2246d5000eb5db27a81f3855ae9fe3242eefbbd5618e5d82fa9aceccfb1d215d9efc9722371436c977ac787883a12de679b185d5295b1
@@ -1 +0,0 @@
1
- bd4e374653744fb05bc7a238fffb1bdf7be9bd23
@@ -1 +0,0 @@
1
- 441b0bfec745157bb18ce9c0d61544a5a595a11ae691cb8bd3b15a45f4cc0684
@@ -1 +0,0 @@
1
- 637e05ad827f91fec90f586b11fd21461fb48e15771875d675b18740267749cc0e6f19ca77ed033e3dd26e73fc950a2108083af30dd84e11bebabb047f282efa
@@ -1 +0,0 @@
1
- 6cef5bfb6b12053ae3d1a1f1a9dc7026
@@ -1 +0,0 @@
1
- 304fd82284b6460d6148ea6f1c2531fedc0253f9
@@ -1 +0,0 @@
1
- ec66d5f945615c3c6e35e9cdeb1e13fa3821fec9ed42f145790bc69aaa6a7f16
@@ -1 +0,0 @@
1
- 4f2701227df73ddbf8b7e9ce47c9df81612d87c5382d6144ca6f3b707015038d68f095e658e4fbcd83ebb7237fbb0190b00807d693b433156e2ecaec7e52f659