react-native 0.71.14 → 0.71.15
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/build.gradle +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +18 -8
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java +19 -2
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +4 -4
- package/scripts/cocoapods/utils.rb +22 -9
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/template/package.json +1 -1
- package/third-party-podspecs/boost.podspec +1 -1
package/React/Base/RCTVersion.m
CHANGED
|
@@ -241,7 +241,7 @@ task createNativeDepsDirectories {
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
task downloadBoost(dependsOn: createNativeDepsDirectories, type: Download) {
|
|
244
|
-
src("https://
|
|
244
|
+
src("https://archives.boost.io/release/${BOOST_VERSION.replace("_", ".")}/source/boost_${BOOST_VERSION}.tar.gz")
|
|
245
245
|
onlyIfNewer(true)
|
|
246
246
|
overwrite(false)
|
|
247
247
|
dest(new File(downloadsDir, "boost_${BOOST_VERSION}.tar.gz"))
|
|
@@ -12,9 +12,7 @@ import static com.facebook.react.uimanager.common.UIManagerType.DEFAULT;
|
|
|
12
12
|
import static com.facebook.react.uimanager.common.UIManagerType.FABRIC;
|
|
13
13
|
import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE;
|
|
14
14
|
|
|
15
|
-
import android.app.Activity;
|
|
16
15
|
import android.content.Context;
|
|
17
|
-
import android.content.ContextWrapper;
|
|
18
16
|
import android.graphics.Canvas;
|
|
19
17
|
import android.graphics.Insets;
|
|
20
18
|
import android.graphics.Point;
|
|
@@ -917,12 +915,18 @@ public class ReactRootView extends FrameLayout implements RootView, ReactRoot {
|
|
|
917
915
|
checkForDeviceDimensionsChanges();
|
|
918
916
|
}
|
|
919
917
|
|
|
920
|
-
private
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
918
|
+
private @Nullable WindowManager.LayoutParams getWindowLayoutParams() {
|
|
919
|
+
View view = ReactRootView.this;
|
|
920
|
+
if (view.getLayoutParams() instanceof WindowManager.LayoutParams) {
|
|
921
|
+
return (WindowManager.LayoutParams) view.getLayoutParams();
|
|
924
922
|
}
|
|
925
|
-
|
|
923
|
+
while (view.getParent() instanceof View) {
|
|
924
|
+
view = (View) view.getParent();
|
|
925
|
+
if (view.getLayoutParams() instanceof WindowManager.LayoutParams) {
|
|
926
|
+
return (WindowManager.LayoutParams) view.getLayoutParams();
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
return null;
|
|
926
930
|
}
|
|
927
931
|
|
|
928
932
|
@RequiresApi(api = Build.VERSION_CODES.R)
|
|
@@ -942,7 +946,13 @@ public class ReactRootView extends FrameLayout implements RootView, ReactRoot {
|
|
|
942
946
|
Insets barInsets = rootInsets.getInsets(WindowInsets.Type.systemBars());
|
|
943
947
|
int height = imeInsets.bottom - barInsets.bottom;
|
|
944
948
|
|
|
945
|
-
int softInputMode
|
|
949
|
+
int softInputMode;
|
|
950
|
+
WindowManager.LayoutParams windowLayoutParams = getWindowLayoutParams();
|
|
951
|
+
if (windowLayoutParams != null) {
|
|
952
|
+
softInputMode = windowLayoutParams.softInputMode;
|
|
953
|
+
} else {
|
|
954
|
+
return;
|
|
955
|
+
}
|
|
946
956
|
int screenY =
|
|
947
957
|
softInputMode == WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING
|
|
948
958
|
? mVisibleViewArea.bottom - height
|
package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagersPropertyCache.java
CHANGED
|
@@ -204,6 +204,11 @@ import java.util.Map;
|
|
|
204
204
|
mDefaultValue = defaultValue;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
+
public ColorPropSetter(ReactPropGroup prop, Method setter, int index, int defaultValue) {
|
|
208
|
+
super(prop, "mixed", setter, index);
|
|
209
|
+
mDefaultValue = defaultValue;
|
|
210
|
+
}
|
|
211
|
+
|
|
207
212
|
@Override
|
|
208
213
|
protected Object getValueOrDefault(Object value, Context context) {
|
|
209
214
|
if (value == null) {
|
|
@@ -331,6 +336,10 @@ import java.util.Map;
|
|
|
331
336
|
super(prop, "mixed", setter);
|
|
332
337
|
}
|
|
333
338
|
|
|
339
|
+
public BoxedColorPropSetter(ReactPropGroup prop, Method setter, int index) {
|
|
340
|
+
super(prop, "mixed", setter, index);
|
|
341
|
+
}
|
|
342
|
+
|
|
334
343
|
@Override
|
|
335
344
|
protected @Nullable Object getValueOrDefault(Object value, Context context) {
|
|
336
345
|
if (value != null) {
|
|
@@ -463,7 +472,11 @@ import java.util.Map;
|
|
|
463
472
|
}
|
|
464
473
|
} else if (propTypeClass == int.class) {
|
|
465
474
|
for (int i = 0; i < names.length; i++) {
|
|
466
|
-
|
|
475
|
+
if ("Color".equals(annotation.customType())) {
|
|
476
|
+
props.put(names[i], new ColorPropSetter(annotation, method, i, annotation.defaultInt()));
|
|
477
|
+
} else {
|
|
478
|
+
props.put(names[i], new IntPropSetter(annotation, method, i, annotation.defaultInt()));
|
|
479
|
+
}
|
|
467
480
|
}
|
|
468
481
|
} else if (propTypeClass == float.class) {
|
|
469
482
|
for (int i = 0; i < names.length; i++) {
|
|
@@ -476,7 +489,11 @@ import java.util.Map;
|
|
|
476
489
|
}
|
|
477
490
|
} else if (propTypeClass == Integer.class) {
|
|
478
491
|
for (int i = 0; i < names.length; i++) {
|
|
479
|
-
|
|
492
|
+
if ("Color".equals(annotation.customType())) {
|
|
493
|
+
props.put(names[i], new BoxedColorPropSetter(annotation, method, i));
|
|
494
|
+
} else {
|
|
495
|
+
props.put(names[i], new BoxedIntPropSetter(annotation, method, i));
|
|
496
|
+
}
|
|
480
497
|
}
|
|
481
498
|
} else {
|
|
482
499
|
throw new RuntimeException(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.15",
|
|
4
4
|
"bin": "./cli.js",
|
|
5
5
|
"description": "A framework for building native apps using React",
|
|
6
6
|
"license": "MIT",
|
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
},
|
|
112
112
|
"dependencies": {
|
|
113
113
|
"@jest/create-cache-key-function": "^29.2.1",
|
|
114
|
-
"@react-native-community/cli": "10.2.
|
|
114
|
+
"@react-native-community/cli": "10.2.6",
|
|
115
115
|
"@react-native-community/cli-platform-android": "10.2.0",
|
|
116
|
-
"@react-native-community/cli-platform-ios": "10.2.
|
|
116
|
+
"@react-native-community/cli-platform-ios": "10.2.5",
|
|
117
117
|
"@react-native/assets": "1.0.0",
|
|
118
118
|
"@react-native/normalize-color": "2.1.0",
|
|
119
119
|
"@react-native/polyfills": "2.0.0",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"@definitelytyped/dtslint": "^0.0.127",
|
|
160
160
|
"@react-native-community/eslint-config": "*",
|
|
161
161
|
"@react-native-community/eslint-plugin": "*",
|
|
162
|
-
"@react-native/eslint-plugin-specs": "^0.71.
|
|
162
|
+
"@react-native/eslint-plugin-specs": "^0.71.2",
|
|
163
163
|
"@reactions/component": "^2.0.2",
|
|
164
164
|
"@types/react": "^18.0.18",
|
|
165
165
|
"@typescript-eslint/parser": "^5.30.5",
|
|
@@ -53,22 +53,35 @@ class ReactNativePodsUtils
|
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
def self.
|
|
57
|
-
|
|
56
|
+
def self.extract_projects(installer)
|
|
57
|
+
return installer.aggregate_targets
|
|
58
58
|
.map{ |t| t.user_project }
|
|
59
59
|
.uniq{ |p| p.path }
|
|
60
60
|
.push(installer.pods_project)
|
|
61
|
+
end
|
|
61
62
|
|
|
63
|
+
def self.exclude_i386_architecture_while_using_hermes(installer)
|
|
64
|
+
is_using_hermes = self.has_pod(installer, 'hermes-engine')
|
|
62
65
|
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
if is_using_hermes
|
|
67
|
+
key = "EXCLUDED_ARCHS[sdk=iphonesimulator*]"
|
|
65
68
|
|
|
66
|
-
|
|
67
|
-
project.build_configurations.each do |config|
|
|
68
|
-
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = excluded_archs_default
|
|
69
|
-
end
|
|
69
|
+
projects = self.extract_projects(installer)
|
|
70
70
|
|
|
71
|
-
project
|
|
71
|
+
projects.each do |project|
|
|
72
|
+
project.build_configurations.each do |config|
|
|
73
|
+
current_setting = config.build_settings[key] || ""
|
|
74
|
+
|
|
75
|
+
excluded_archs_includes_I386 = current_setting.include?("i386")
|
|
76
|
+
|
|
77
|
+
if !excluded_archs_includes_I386
|
|
78
|
+
# Hermes does not support `i386` architecture
|
|
79
|
+
config.build_settings[key] = "#{current_setting} i386".strip
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
project.save()
|
|
84
|
+
end
|
|
72
85
|
end
|
|
73
86
|
end
|
|
74
87
|
|
|
Binary file
|
|
Binary file
|
package/template/package.json
CHANGED
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |spec|
|
|
|
10
10
|
spec.homepage = 'http://www.boost.org'
|
|
11
11
|
spec.summary = 'Boost provides free peer-reviewed portable C++ source libraries.'
|
|
12
12
|
spec.authors = 'Rene Rivera'
|
|
13
|
-
spec.source = { :http => 'https://
|
|
13
|
+
spec.source = { :http => 'https://archives.boost.io/release/1.76.0/source/boost_1_76_0.tar.bz2',
|
|
14
14
|
:sha256 => 'f0397ba6e982c4450f27bf32a2a83292aba035b827a5623a14636ea583318c41' }
|
|
15
15
|
|
|
16
16
|
# Pinning to the same version as React.podspec.
|