react-native 0.75.0-rc.3 → 0.75.0-rc.4
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/hermes/unicode/AndroidUnicodeUtils.kt +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/common/build/ReactBuildConfig.java +23 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/renderer/core/ShadowNode.cpp +6 -0
- package/ReactCommon/react/renderer/core/ShadowNode.h +5 -0
- package/package.json +9 -9
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
package/React/Base/RCTVersion.m
CHANGED
|
@@ -20,12 +20,14 @@ import java.util.Locale
|
|
|
20
20
|
public object AndroidUnicodeUtils {
|
|
21
21
|
|
|
22
22
|
@DoNotStrip
|
|
23
|
+
@JvmStatic
|
|
23
24
|
public fun localeCompare(left: String?, right: String?): Int {
|
|
24
25
|
val collator = Collator.getInstance()
|
|
25
26
|
return collator.compare(left, right)
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
@DoNotStrip
|
|
30
|
+
@JvmStatic
|
|
29
31
|
public fun dateFormat(unixtimeMs: Double, formatDate: Boolean, formatTime: Boolean): String {
|
|
30
32
|
val format =
|
|
31
33
|
when {
|
|
@@ -53,6 +55,7 @@ public object AndroidUnicodeUtils {
|
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
@DoNotStrip
|
|
58
|
+
@JvmStatic
|
|
56
59
|
public fun normalize(input: String?, form: Int): String =
|
|
57
60
|
when (form) {
|
|
58
61
|
FORM_C -> Normalizer.normalize(input, Normalizer.Form.NFC)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
package com.facebook.react.common.build;
|
|
9
|
+
|
|
10
|
+
import com.facebook.react.BuildConfig;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Convenience class for accessing auto-generated BuildConfig so that a) other modules can just
|
|
14
|
+
* depend on this module instead of having to manually depend on generating their own build config
|
|
15
|
+
* and b) we don't have to deal with IntelliJ getting confused about the autogenerated BuildConfig
|
|
16
|
+
* class all over the place.
|
|
17
|
+
*/
|
|
18
|
+
public class ReactBuildConfig {
|
|
19
|
+
|
|
20
|
+
public static final boolean DEBUG = BuildConfig.DEBUG;
|
|
21
|
+
public static final boolean IS_INTERNAL_BUILD = BuildConfig.IS_INTERNAL_BUILD;
|
|
22
|
+
public static final int EXOPACKAGE_FLAGS = BuildConfig.EXOPACKAGE_FLAGS;
|
|
23
|
+
}
|
|
@@ -410,4 +410,10 @@ SharedDebugStringConvertibleList ShadowNode::getDebugProps() const {
|
|
|
410
410
|
}
|
|
411
411
|
#endif
|
|
412
412
|
|
|
413
|
+
// Explicitly define destructors here, as they need to exist in order to act as
|
|
414
|
+
// a "key function" for the ShadowNodeWrapper class -- this allows for RTTI to
|
|
415
|
+
// work properly across dynamic library boundaries (i.e. dynamic_cast that is
|
|
416
|
+
// used by getNativeState method)
|
|
417
|
+
ShadowNodeWrapper::~ShadowNodeWrapper() = default;
|
|
418
|
+
|
|
413
419
|
} // namespace facebook::react
|
|
@@ -282,6 +282,11 @@ struct ShadowNodeWrapper : public jsi::NativeState {
|
|
|
282
282
|
explicit ShadowNodeWrapper(ShadowNode::Shared shadowNode)
|
|
283
283
|
: shadowNode(std::move(shadowNode)) {}
|
|
284
284
|
|
|
285
|
+
// The below method needs to be implemented out-of-line in order for the class
|
|
286
|
+
// to have at least one "key function" (see
|
|
287
|
+
// https://itanium-cxx-abi.github.io/cxx-abi/abi.html#vague-vtable)
|
|
288
|
+
~ShadowNodeWrapper() override;
|
|
289
|
+
|
|
285
290
|
ShadowNode::Shared shadowNode;
|
|
286
291
|
};
|
|
287
292
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.75.0-rc.
|
|
3
|
+
"version": "0.75.0-rc.4",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -112,13 +112,13 @@
|
|
|
112
112
|
"@react-native-community/cli": "14.0.0-alpha.11",
|
|
113
113
|
"@react-native-community/cli-platform-android": "14.0.0-alpha.11",
|
|
114
114
|
"@react-native-community/cli-platform-ios": "14.0.0-alpha.11",
|
|
115
|
-
"@react-native/assets-registry": "0.75.0-rc.
|
|
116
|
-
"@react-native/codegen": "0.75.0-rc.
|
|
117
|
-
"@react-native/community-cli-plugin": "0.75.0-rc.
|
|
118
|
-
"@react-native/gradle-plugin": "0.75.0-rc.
|
|
119
|
-
"@react-native/js-polyfills": "0.75.0-rc.
|
|
120
|
-
"@react-native/normalize-colors": "0.75.0-rc.
|
|
121
|
-
"@react-native/virtualized-lists": "0.75.0-rc.
|
|
115
|
+
"@react-native/assets-registry": "0.75.0-rc.4",
|
|
116
|
+
"@react-native/codegen": "0.75.0-rc.4",
|
|
117
|
+
"@react-native/community-cli-plugin": "0.75.0-rc.4",
|
|
118
|
+
"@react-native/gradle-plugin": "0.75.0-rc.4",
|
|
119
|
+
"@react-native/js-polyfills": "0.75.0-rc.4",
|
|
120
|
+
"@react-native/normalize-colors": "0.75.0-rc.4",
|
|
121
|
+
"@react-native/virtualized-lists": "0.75.0-rc.4",
|
|
122
122
|
"abort-controller": "^3.0.0",
|
|
123
123
|
"anser": "^1.4.9",
|
|
124
124
|
"ansi-regex": "^5.0.0",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"nullthrows": "^1.1.1",
|
|
138
138
|
"pretty-format": "^26.5.2",
|
|
139
139
|
"promise": "^8.3.0",
|
|
140
|
-
"react-devtools-core": "5.1
|
|
140
|
+
"react-devtools-core": "^5.3.1",
|
|
141
141
|
"react-refresh": "^0.14.0",
|
|
142
142
|
"regenerator-runtime": "^0.13.2",
|
|
143
143
|
"scheduler": "0.25.0-rc-fb9a90fa48-20240614",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|