react-native 0.84.0 → 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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +2 -2
- package/ReactCommon/hermes/inspector-modern/chrome/Registration.cpp +44 -3
- package/package.json +9 -9
- package/sdks/.hermesv1version +1 -1
- package/sdks/hermes-engine/version.properties +2 -2
- package/settings.gradle.kts +21 -1
package/React/Base/RCTVersion.m
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
#define REACT_NATIVE_VERSION_MAJOR 0
|
|
16
16
|
#define REACT_NATIVE_VERSION_MINOR 84
|
|
17
|
-
#define REACT_NATIVE_VERSION_PATCH
|
|
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 =
|
|
24
|
+
int32_t Patch = 1;
|
|
25
25
|
std::string_view Prerelease = "";
|
|
26
26
|
} ReactNativeVersion;
|
|
27
27
|
|
|
@@ -8,10 +8,13 @@
|
|
|
8
8
|
#include "Registration.h"
|
|
9
9
|
#include "ConnectionDemux.h"
|
|
10
10
|
|
|
11
|
-
#if defined(HERMES_ENABLE_DEBUGGER)
|
|
11
|
+
#if defined(HERMES_ENABLE_DEBUGGER)
|
|
12
12
|
|
|
13
|
-
|
|
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
|
-
#
|
|
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.
|
|
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.
|
|
164
|
-
"@react-native/codegen": "0.84.
|
|
165
|
-
"@react-native/community-cli-plugin": "0.84.
|
|
166
|
-
"@react-native/gradle-plugin": "0.84.
|
|
167
|
-
"@react-native/js-polyfills": "0.84.
|
|
168
|
-
"@react-native/normalize-colors": "0.84.
|
|
169
|
-
"@react-native/virtualized-lists": "0.84.
|
|
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.
|
|
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",
|
package/sdks/.hermesv1version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
hermes-v250829098.0.
|
|
1
|
+
hermes-v250829098.0.9
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
HERMES_VERSION_NAME=0.
|
|
2
|
-
HERMES_V1_VERSION_NAME=250829098.0.
|
|
1
|
+
HERMES_VERSION_NAME=0.15.1
|
|
2
|
+
HERMES_V1_VERSION_NAME=250829098.0.9
|
package/settings.gradle.kts
CHANGED
|
@@ -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
|
-
|
|
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 ->
|