Skip to content

Commit 0afdc69

Browse files
committed
Merge branch 'main' into tts-span
2 parents 43e7c29 + dbb9252 commit 0afdc69

33 files changed

+403
-401
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ package-lock.json
122122
/sdks/download
123123
/sdks/hermes
124124
/sdks/hermesc
125+
/sdks/hermes-engine/build_host_hermesc
125126

126127
# Visual studio
127128
.vscode

Libraries/LogBox/Data/__tests__/LogBoxLog-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function getLogBoxSymbolication(): {|
5050
}
5151

5252
const createStack = (methodNames: Array<string>) =>
53-
methodNames.map(methodName => ({
53+
methodNames.map((methodName): StackFrame => ({
5454
column: null,
5555
file: 'file://path/to/file.js',
5656
lineNumber: 1,

Libraries/LogBox/Data/__tests__/LogBoxSymbolication-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const symbolicateStackTrace: JestMockFn<
2424
> = (require('../../../Core/Devtools/symbolicateStackTrace'): any);
2525

2626
const createStack = (methodNames: Array<string>) =>
27-
methodNames.map(methodName => ({
27+
methodNames.map((methodName): StackFrame => ({
2828
column: null,
2929
file: 'file://path/to/file.js',
3030
lineNumber: 1,

Libraries/LogBox/UI/__tests__/LogBoxInspectorStackFrames-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* @oncall react_native
1010
*/
1111

12+
import type {StackFrame} from '../../../Core/NativeExceptionsManager';
13+
1214
import LogBoxInspectorStackFrames, {
1315
getCollapseMessage,
1416
} from '../LogBoxInspectorStackFrames';
@@ -33,7 +35,7 @@ const createLogWithFrames = (collapsedOptions: Array<?boolean>) => {
3335
};
3436

3537
const createCollapsedFrames = (collapsedOptions: Array<?boolean>) => {
36-
return collapsedOptions.map(option => ({
38+
return collapsedOptions.map((option): StackFrame => ({
3739
column: 1,
3840
file: 'dependency.js',
3941
lineNumber: 1,

Libraries/Performance/QuickPerformanceLogger.js

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
const AUTO_SET_TIMESTAMP = -1;
1414
const DUMMY_INSTANCE_KEY = 0;
1515

16-
// Defines map of annotations for markEvent
16+
// Defines map of annotations
1717
// Use as following:
1818
// {string: {key1: value1, key2: value2}}
1919
export type AnnotationsMap = $Shape<{
@@ -54,17 +54,25 @@ const QuickPerformanceLogger = {
5454

5555
markerAnnotate(
5656
markerId: number,
57-
annotationKey: string,
58-
annotationValue: string,
57+
annotations: AnnotationsMap,
5958
instanceKey: number = DUMMY_INSTANCE_KEY,
6059
): void {
61-
if (global.nativeQPLMarkerAnnotate) {
62-
global.nativeQPLMarkerAnnotate(
63-
markerId,
64-
instanceKey,
65-
annotationKey,
66-
annotationValue,
67-
);
60+
if (global.nativeQPLMarkerAnnotateWithMap) {
61+
global.nativeQPLMarkerAnnotateWithMap(markerId, annotations, instanceKey);
62+
} else if (global.nativeQPLMarkerAnnotate) {
63+
for (const type of ['string']) {
64+
const keyValsOfType = annotations[type];
65+
if (keyValsOfType != null) {
66+
for (const annotationKey of Object.keys(keyValsOfType)) {
67+
global.nativeQPLMarkerAnnotate(
68+
markerId,
69+
instanceKey,
70+
annotationKey,
71+
keyValsOfType[annotationKey].toString(),
72+
);
73+
}
74+
}
75+
}
6876
}
6977
},
7078

Libraries/Renderer/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
54f297a60ce13d6f9ea385614498650c1935c572
1+
ab075a232409ea1f566526c6a5dca30f658280de

Libraries/Renderer/implementations/ReactNativeRenderer.d.ts

Lines changed: 0 additions & 149 deletions
This file was deleted.

Libraries/Renderer/shims/ReactFabric.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
77
* @noformat
88
* @flow
9-
* @generated SignedSource<<ca65d187831e77f0f589dfd9fa8775bc>>
9+
* @generated SignedSource<<ef2742380b2b2c69cea8618289eea086>>
1010
*
1111
* This file was sync'd from the facebook/react repository.
1212
*/

Libraries/Renderer/shims/ReactFeatureFlags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
77
* @noformat
88
* @flow strict-local
9-
* @generated SignedSource<<b17df4f82c9d4fe20645f360eadf82bc>>
9+
* @generated SignedSource<<47062f1b1abd7428381f0362986d9c0e>>
1010
*
1111
* This file was sync'd from the facebook/react repository.
1212
*/

Libraries/Renderer/shims/ReactNative.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
77
* @noformat
88
* @flow
9-
* @generated SignedSource<<45ec3626ad048b08dac9b031b02bc0a8>>
9+
* @generated SignedSource<<744176db456e2656dac661d36e55f42a>>
1010
*
1111
* This file was sync'd from the facebook/react repository.
1212
*/

0 commit comments

Comments
 (0)