react-native 0.71.0-rc.3 → 0.71.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/Libraries/Image/ImageSource.js +0 -2
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -2
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/build.gradle +14 -5
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/ReactCommon.podspec +4 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +11 -11
- package/scripts/cocoapods/jsengine.rb +2 -2
- package/scripts/hermes/prepare-hermes-for-build.js +1 -1
- package/sdks/hermes-engine/hermes-engine.podspec +1 -1
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/template/_eslintrc.js +1 -3
- package/template/ios/Podfile +1 -1
- package/template/package.json +2 -4
- package/types/public/ReactNativeTypes.d.ts +4 -2
|
@@ -75,7 +75,8 @@ const PERMISSIONS = Object.freeze({
|
|
|
75
75
|
ANSWER_PHONE_CALLS: 'android.permission.ANSWER_PHONE_CALLS',
|
|
76
76
|
READ_PHONE_NUMBERS: 'android.permission.READ_PHONE_NUMBERS',
|
|
77
77
|
UWB_RANGING: 'android.permission.UWB_RANGING',
|
|
78
|
-
POST_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS',
|
|
78
|
+
POST_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS', // Remove in 0.72
|
|
79
|
+
POST_NOTIFICATIONS: 'android.permission.POST_NOTIFICATIONS',
|
|
79
80
|
NEARBY_WIFI_DEVICES: 'android.permission.NEARBY_WIFI_DEVICES',
|
|
80
81
|
});
|
|
81
82
|
|
|
@@ -106,7 +107,8 @@ class PermissionsAndroid {
|
|
|
106
107
|
CAMERA: string,
|
|
107
108
|
GET_ACCOUNTS: string,
|
|
108
109
|
NEARBY_WIFI_DEVICES: string,
|
|
109
|
-
POST_NOTIFICATION: string,
|
|
110
|
+
POST_NOTIFICATION: string, // Remove in 0.72
|
|
111
|
+
POST_NOTIFICATIONS: string,
|
|
110
112
|
PROCESS_OUTGOING_CALLS: string,
|
|
111
113
|
READ_CALENDAR: string,
|
|
112
114
|
READ_CALL_LOG: string,
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -117,7 +117,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
|
|
|
117
117
|
),
|
|
118
118
|
new PrefabPreprocessingEntry(
|
|
119
119
|
"fabricjni",
|
|
120
|
-
|
|
120
|
+
[
|
|
121
|
+
new Pair("src/main/jni/react/fabric", ""),
|
|
122
|
+
new Pair("src/main/jni/react/cxxcomponents", "react/cxxcomponents/")
|
|
123
|
+
]
|
|
121
124
|
),
|
|
122
125
|
new PrefabPreprocessingEntry(
|
|
123
126
|
"react_render_mapbuffer",
|
|
@@ -205,7 +208,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
|
|
|
205
208
|
),
|
|
206
209
|
new PrefabPreprocessingEntry(
|
|
207
210
|
"reactnativejni",
|
|
208
|
-
|
|
211
|
+
[
|
|
212
|
+
new Pair("src/main/jni/react/jni", "react/jni/"),
|
|
213
|
+
new Pair("../ReactCommon/cxxreact/", "cxxreact/"),
|
|
214
|
+
]
|
|
209
215
|
),
|
|
210
216
|
]
|
|
211
217
|
)
|
|
@@ -435,8 +441,7 @@ android {
|
|
|
435
441
|
"-DANDROID_TOOLCHAIN=clang",
|
|
436
442
|
"-DANDROID_PLATFORM=android-21"
|
|
437
443
|
|
|
438
|
-
targets "
|
|
439
|
-
"jsijniprofiler",
|
|
444
|
+
targets "jsijniprofiler",
|
|
440
445
|
"reactnativeblob",
|
|
441
446
|
"reactperfloggerjni",
|
|
442
447
|
// prefab targets
|
|
@@ -463,7 +468,8 @@ android {
|
|
|
463
468
|
"react_render_uimanager",
|
|
464
469
|
"react_render_scheduler",
|
|
465
470
|
"react_render_mounting",
|
|
466
|
-
"hermes_executor"
|
|
471
|
+
"hermes_executor",
|
|
472
|
+
"jscexecutor"
|
|
467
473
|
}
|
|
468
474
|
}
|
|
469
475
|
ndk {
|
|
@@ -583,6 +589,9 @@ android {
|
|
|
583
589
|
hermes_executor {
|
|
584
590
|
headers(new File(prefabHeadersDir, "hermes_executor").absolutePath)
|
|
585
591
|
}
|
|
592
|
+
jscexecutor {
|
|
593
|
+
headers(new File(prefabHeadersDir, "jscexecutor").absolutePath)
|
|
594
|
+
}
|
|
586
595
|
}
|
|
587
596
|
|
|
588
597
|
publishing {
|
|
@@ -61,7 +61,10 @@ Pod::Spec.new do |s|
|
|
|
61
61
|
ss.subspec "core" do |sss|
|
|
62
62
|
sss.source_files = "react/nativemodule/core/ReactCommon/**/*.{cpp,h}",
|
|
63
63
|
"react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}"
|
|
64
|
-
|
|
64
|
+
excluded_files = ENV['USE_FRAMEWORKS'] == nil ?
|
|
65
|
+
"react/nativemodule/core/ReactCommon/LongLivedObject.h" :
|
|
66
|
+
"react/nativemodule/core/ReactCommon/{LongLivedObject,CallbackWrapper}.h"
|
|
67
|
+
sss.exclude_files = excluded_files
|
|
65
68
|
end
|
|
66
69
|
|
|
67
70
|
s.subspec "react_debug_core" do |sss|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.71.0-rc.
|
|
3
|
+
"version": "0.71.0-rc.4",
|
|
4
4
|
"bin": "./cli.js",
|
|
5
5
|
"description": "A framework for building native apps using React",
|
|
6
6
|
"license": "MIT",
|
|
@@ -104,30 +104,30 @@
|
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
106
|
"@jest/create-cache-key-function": "^29.2.1",
|
|
107
|
-
"@react-native-community/cli": "10.0.0
|
|
108
|
-
"@react-native-community/cli-platform-android": "10.0.0
|
|
109
|
-
"@react-native-community/cli-platform-ios": "10.0.0
|
|
107
|
+
"@react-native-community/cli": "10.0.0",
|
|
108
|
+
"@react-native-community/cli-platform-android": "10.0.0",
|
|
109
|
+
"@react-native-community/cli-platform-ios": "10.0.0",
|
|
110
110
|
"@react-native/assets": "1.0.0",
|
|
111
111
|
"@react-native/normalize-color": "2.1.0",
|
|
112
112
|
"@react-native/polyfills": "2.0.0",
|
|
113
113
|
"abort-controller": "^3.0.0",
|
|
114
114
|
"anser": "^1.4.9",
|
|
115
115
|
"base64-js": "^1.1.2",
|
|
116
|
-
"deprecated-react-native-prop-types": "^
|
|
116
|
+
"deprecated-react-native-prop-types": "^3.0.1",
|
|
117
117
|
"event-target-shim": "^5.0.1",
|
|
118
118
|
"invariant": "^2.2.4",
|
|
119
119
|
"jest-environment-node": "^29.2.1",
|
|
120
120
|
"jsc-android": "^250230.2.1",
|
|
121
121
|
"memoize-one": "^5.0.0",
|
|
122
|
-
"metro-react-native-babel-transformer": "0.73.
|
|
123
|
-
"metro-runtime": "0.73.
|
|
124
|
-
"metro-source-map": "0.73.
|
|
122
|
+
"metro-react-native-babel-transformer": "0.73.5",
|
|
123
|
+
"metro-runtime": "0.73.5",
|
|
124
|
+
"metro-source-map": "0.73.5",
|
|
125
125
|
"mkdirp": "^0.5.1",
|
|
126
126
|
"nullthrows": "^1.1.1",
|
|
127
127
|
"pretty-format": "^26.5.2",
|
|
128
128
|
"promise": "^8.3.0",
|
|
129
129
|
"react-devtools-core": "^4.26.1",
|
|
130
|
-
"react-native-gradle-plugin": "^0.71.
|
|
130
|
+
"react-native-gradle-plugin": "^0.71.11",
|
|
131
131
|
"react-refresh": "^0.4.0",
|
|
132
132
|
"react-shallow-renderer": "^16.15.0",
|
|
133
133
|
"regenerator-runtime": "^0.13.2",
|
|
@@ -175,8 +175,8 @@
|
|
|
175
175
|
"jest": "^29.2.1",
|
|
176
176
|
"jest-junit": "^10.0.0",
|
|
177
177
|
"jscodeshift": "^0.13.1",
|
|
178
|
-
"metro-babel-register": "0.73.
|
|
179
|
-
"metro-memory-fs": "0.73.
|
|
178
|
+
"metro-babel-register": "0.73.5",
|
|
179
|
+
"metro-memory-fs": "0.73.5",
|
|
180
180
|
"mkdirp": "^0.5.1",
|
|
181
181
|
"mock-fs": "^5.1.4",
|
|
182
182
|
"prettier": "^2.4.1",
|
|
@@ -30,7 +30,7 @@ def setup_hermes!(react_native_path: "../node_modules/react-native", fabric_enab
|
|
|
30
30
|
abort unless prep_status == 0
|
|
31
31
|
|
|
32
32
|
pod 'React-jsi', :path => "#{react_native_path}/ReactCommon/jsi"
|
|
33
|
-
pod 'hermes-engine', :podspec => "#{react_native_path}/sdks/hermes/hermes-engine.podspec"
|
|
33
|
+
pod 'hermes-engine', :podspec => "#{react_native_path}/sdks/hermes-engine/hermes-engine.podspec"
|
|
34
34
|
pod 'React-hermes', :path => "#{react_native_path}/ReactCommon/hermes"
|
|
35
35
|
pod 'libevent', '~> 2.1.12'
|
|
36
36
|
end
|
|
@@ -72,7 +72,7 @@ def is_building_hermes_from_source(react_native_version, react_native_path)
|
|
|
72
72
|
isInMain = react_native_version.include?('1000.0.0')
|
|
73
73
|
|
|
74
74
|
hermestag_file = File.join(react_native_path, "sdks", ".hermesversion")
|
|
75
|
-
isInCI = ENV['
|
|
75
|
+
isInCI = ENV['REACT_NATIVE_CI'] === 'true'
|
|
76
76
|
|
|
77
77
|
isReleaseBranch = File.exist?(hermestag_file) && isInCI
|
|
78
78
|
|
|
@@ -17,7 +17,7 @@ version = package['version']
|
|
|
17
17
|
|
|
18
18
|
# sdks/.hermesversion
|
|
19
19
|
hermestag_file = File.join(react_native_path, "sdks", ".hermesversion")
|
|
20
|
-
isInCI = ENV['
|
|
20
|
+
isInCI = ENV['REACT_NATIVE_CI'] === 'true'
|
|
21
21
|
|
|
22
22
|
source = {}
|
|
23
23
|
git = "https://github.com/facebook/hermes.git"
|
|
Binary file
|
package/template/_eslintrc.js
CHANGED
package/template/ios/Podfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
2
|
-
require_relative '../node_modules
|
|
2
|
+
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
3
3
|
|
|
4
4
|
platform :ios, min_ios_version_supported
|
|
5
5
|
prepare_react_native_project!
|
package/template/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"react": "18.2.0",
|
|
14
|
-
"react-native": "0.71.0-rc.
|
|
14
|
+
"react-native": "0.71.0-rc.4"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/core": "^7.12.9",
|
|
@@ -22,12 +22,10 @@
|
|
|
22
22
|
"@types/jest": "^29.2.1",
|
|
23
23
|
"@types/react": "^18.0.24",
|
|
24
24
|
"@types/react-test-renderer": "^18.0.0",
|
|
25
|
-
"@typescript-eslint/eslint-plugin": "^5.37.0",
|
|
26
|
-
"@typescript-eslint/parser": "^5.37.0",
|
|
27
25
|
"babel-jest": "^29.2.1",
|
|
28
26
|
"eslint": "^8.19.0",
|
|
29
27
|
"jest": "^29.2.1",
|
|
30
|
-
"metro-react-native-babel-preset": "0.73.
|
|
28
|
+
"metro-react-native-babel-preset": "0.73.5",
|
|
31
29
|
"prettier": "^2.4.1",
|
|
32
30
|
"react-test-renderer": "18.2.0",
|
|
33
31
|
"typescript": "4.8.4"
|
|
@@ -86,9 +86,11 @@ export interface NativeMethods {
|
|
|
86
86
|
* _Can also be called with a relativeNativeNodeHandle but is deprecated._
|
|
87
87
|
*/
|
|
88
88
|
measureLayout(
|
|
89
|
-
relativeToNativeComponentRef:
|
|
89
|
+
relativeToNativeComponentRef:
|
|
90
|
+
| React.ElementRef<HostComponent<unknown>>
|
|
91
|
+
| number,
|
|
90
92
|
onSuccess: MeasureLayoutOnSuccessCallback,
|
|
91
|
-
onFail
|
|
93
|
+
onFail?: () => void,
|
|
92
94
|
): void;
|
|
93
95
|
|
|
94
96
|
/**
|