react-native 0.84.0-rc.5 → 0.84.1

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.
@@ -28,8 +28,8 @@
28
28
  export default class ReactNativeVersion {
29
29
  static major: number = 0;
30
30
  static minor: number = 84;
31
- static patch: number = 0;
32
- static prerelease: string | null = 'rc.5';
31
+ static patch: number = 1;
32
+ static prerelease: string | null = null;
33
33
 
34
34
  static getVersionString(): string {
35
35
  return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
@@ -23,8 +23,8 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(84),
26
- RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.5",
26
+ RCTVersionPatch: @(1),
27
+ RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.84.0-rc.5
1
+ VERSION_NAME=0.84.1
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
  react.internal.hermesPublishingGroup=com.facebook.hermes
4
4
 
@@ -14,7 +14,7 @@ public object ReactNativeVersion {
14
14
  public val VERSION: Map<String, Any?> = mapOf(
15
15
  "major" to 0,
16
16
  "minor" to 84,
17
- "patch" to 0,
18
- "prerelease" to "rc.5"
17
+ "patch" to 1,
18
+ "prerelease" to null
19
19
  )
20
20
  }
@@ -14,15 +14,15 @@
14
14
 
15
15
  #define REACT_NATIVE_VERSION_MAJOR 0
16
16
  #define REACT_NATIVE_VERSION_MINOR 84
17
- #define REACT_NATIVE_VERSION_PATCH 0
17
+ #define REACT_NATIVE_VERSION_PATCH 1
18
18
 
19
19
  namespace facebook::react {
20
20
 
21
21
  constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 84;
24
- int32_t Patch = 0;
25
- std::string_view Prerelease = "rc.5";
24
+ int32_t Patch = 1;
25
+ std::string_view Prerelease = "";
26
26
  } ReactNativeVersion;
27
27
 
28
28
  } // namespace facebook::react
@@ -8,10 +8,13 @@
8
8
  #include "Registration.h"
9
9
  #include "ConnectionDemux.h"
10
10
 
11
- #if defined(HERMES_ENABLE_DEBUGGER) && !defined(HERMES_V1_ENABLED)
11
+ #if defined(HERMES_ENABLE_DEBUGGER)
12
12
 
13
- namespace facebook::hermes::inspector_modern::chrome {
13
+ #include <hermes/hermes.h>
14
+
15
+ #if !defined(HERMES_V1_ENABLED)
14
16
 
17
+ namespace facebook::hermes::inspector_modern::chrome {
15
18
  namespace {
16
19
 
17
20
  ConnectionDemux& demux() {
@@ -34,4 +37,42 @@ void disableDebugging(DebugSessionToken session) {
34
37
 
35
38
  } // namespace facebook::hermes::inspector_modern::chrome
36
39
 
37
- #endif // defined(HERMES_ENABLE_DEBUGGER) && !defined(HERMES_V1_ENABLED)
40
+ #else
41
+
42
+ namespace facebook::hermes::inspector_modern {
43
+ class RuntimeAdapter {
44
+ // Backwards compatibility definition fallback for libraries that are compiled
45
+ // without `HERMES_V1_ENABLED` but are linked against React Native with
46
+ // `HERMES_V1_ENABLED` which doesn't provide this symbol.
47
+ public:
48
+ virtual ~RuntimeAdapter() = 0;
49
+ virtual HermesRuntime& getRuntime() = 0;
50
+ virtual void tickleJs();
51
+ };
52
+
53
+ namespace chrome {
54
+
55
+ using DebugSessionToken = int;
56
+
57
+ DebugSessionToken enableDebugging(
58
+ std::unique_ptr<RuntimeAdapter>,
59
+ const std::string&) {
60
+ // Backwards compatibility fallback for libraries that are compiled without
61
+ // `HERMES_V1_ENABLED` but are linked against React Native with
62
+ // `HERMES_V1_ENABLED` which doesn't provide this symbol.
63
+ return -1;
64
+ };
65
+
66
+ void disableDebugging(DebugSessionToken) {
67
+ // Backwards compatibility fallback for libraries that are compiled without
68
+ // `HERMES_V1_ENABLED` but are linked against React Native with
69
+ // `HERMES_V1_ENABLED` which doesn't provide this symbol.
70
+ }
71
+
72
+ } // namespace chrome
73
+
74
+ } // namespace facebook::hermes::inspector_modern
75
+
76
+ #endif // !defined(HERMES_V1_ENABLED)
77
+
78
+ #endif // defined(HERMES_ENABLE_DEBUGGER)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.84.0-rc.5",
3
+ "version": "0.84.1",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -160,13 +160,13 @@
160
160
  },
161
161
  "dependencies": {
162
162
  "@jest/create-cache-key-function": "^29.7.0",
163
- "@react-native/assets-registry": "0.84.0-rc.5",
164
- "@react-native/codegen": "0.84.0-rc.5",
165
- "@react-native/community-cli-plugin": "0.84.0-rc.5",
166
- "@react-native/gradle-plugin": "0.84.0-rc.5",
167
- "@react-native/js-polyfills": "0.84.0-rc.5",
168
- "@react-native/normalize-colors": "0.84.0-rc.5",
169
- "@react-native/virtualized-lists": "0.84.0-rc.5",
163
+ "@react-native/assets-registry": "0.84.1",
164
+ "@react-native/codegen": "0.84.1",
165
+ "@react-native/community-cli-plugin": "0.84.1",
166
+ "@react-native/gradle-plugin": "0.84.1",
167
+ "@react-native/js-polyfills": "0.84.1",
168
+ "@react-native/normalize-colors": "0.84.1",
169
+ "@react-native/virtualized-lists": "0.84.1",
170
170
  "abort-controller": "^3.0.0",
171
171
  "anser": "^1.4.9",
172
172
  "ansi-regex": "^5.0.0",
@@ -175,7 +175,7 @@
175
175
  "base64-js": "^1.5.1",
176
176
  "commander": "^12.0.0",
177
177
  "flow-enums-runtime": "^0.0.6",
178
- "hermes-compiler": "250829098.0.7",
178
+ "hermes-compiler": "250829098.0.9",
179
179
  "invariant": "^2.2.4",
180
180
  "jest-environment-node": "^29.7.0",
181
181
  "memoize-one": "^5.0.0",
@@ -1 +1 @@
1
- hermes-v250829098.0.8
1
+ hermes-v250829098.0.9
@@ -1,2 +1,2 @@
1
- HERMES_VERSION_NAME=0.14.1
2
- HERMES_V1_VERSION_NAME=250829098.0.7
1
+ HERMES_VERSION_NAME=0.15.1
2
+ HERMES_V1_VERSION_NAME=250829098.0.9
@@ -47,8 +47,28 @@ buildscript {
47
47
  val properties = java.util.Properties()
48
48
  val propertiesToInherit = listOf("hermesV1Enabled", "react.hermesV1Enabled")
49
49
 
50
+ // We cannot assume that the node_modules are next to the android project, for example
51
+ // in monorepos, they might get hoisted.
52
+ // In a composite build, this included build can access the invoking (consumer) build
53
+ // via `gradle.parent`. We use its StartParameter to locate the app's `gradle.properties`:
54
+ // - `projectDir/gradle.properties` when Gradle is run with `-p <androidDir>`
55
+ // - `currentDir/gradle.properties` when run from the app android folder
56
+ // If neither exists, we keep the legacy RN fallback path below.
57
+
58
+ val parentGradle = gradle.parent
59
+ val parentProjectDir = parentGradle?.startParameter?.projectDir
60
+ val parentCurrentDir = parentGradle?.startParameter?.currentDir
61
+ val gradlePropertiesCandidates =
62
+ listOfNotNull(
63
+ parentProjectDir?.resolve("gradle.properties"),
64
+ parentCurrentDir?.resolve("gradle.properties"),
65
+ // Backward-compatible fallback for classic RN app layouts.
66
+ file("../../android/gradle.properties"),
67
+ )
68
+
50
69
  try {
51
- file("../../android/gradle.properties").inputStream().use { properties.load(it) }
70
+ val propertiesFile = gradlePropertiesCandidates.firstOrNull { it.exists() }
71
+ propertiesFile?.inputStream()?.use { properties.load(it) }
52
72
 
53
73
  gradle.rootProject {
54
74
  propertiesToInherit.forEach { property ->