react-native-windows 0.80.1 → 0.80.6
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/Directory.Build.props +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/DebuggerUIIsland.cpp +169 -0
- package/Microsoft.ReactNative/Fabric/Composition/DebuggerUIIsland.h +42 -0
- package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +60 -33
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +68 -1
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +9 -0
- package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.cpp +5 -3
- package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +6 -1
- package/Microsoft.ReactNative/Fabric/WindowsImageManager.cpp +14 -1
- package/Microsoft.ReactNative/Fabric/platform/react/threading/TaskDispatchThread.cpp +75 -24
- package/Microsoft.ReactNative/Fabric/platform/react/threading/TaskDispatchThread.h +4 -25
- package/Microsoft.ReactNative/JsiApi.cpp +1 -1
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +1 -0
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +3 -0
- package/Microsoft.ReactNative/ReactHost/DebuggerNotifications.h +54 -0
- package/Microsoft.ReactNative/ReactHost/React.h +11 -4
- package/Microsoft.ReactNative/ReactHost/ReactHost.cpp +195 -29
- package/Microsoft.ReactNative/ReactHost/ReactHost.h +22 -4
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +24 -5
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +1 -1
- package/Microsoft.ReactNative/ReactRootView.cpp +108 -0
- package/Microsoft.ReactNative/ReactRootView.h +6 -0
- package/Microsoft.ReactNative/Views/DevMenu.cpp +1 -1
- package/Microsoft.ReactNative.Cxx/JSI/decorator.h +41 -0
- package/Microsoft.ReactNative.Cxx/JSI/jsi-inl.h +16 -0
- package/Microsoft.ReactNative.Cxx/JSI/jsi.cpp +125 -0
- package/Microsoft.ReactNative.Cxx/JSI/jsi.h +167 -1
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +1 -1
- package/Microsoft.ReactNative.Cxx/NodeApiJsiRuntime.cpp +110 -38
- package/Microsoft.ReactNative.Cxx/node-api/js_native_api.h +44 -31
- package/Microsoft.ReactNative.Cxx/node-api/js_native_api_types.h +13 -14
- package/Microsoft.ReactNative.Cxx/node-api/js_runtime_api.h +19 -4
- package/Microsoft.ReactNative.Cxx/node-api/node_api.h +270 -0
- package/Microsoft.ReactNative.Cxx/node-api/node_api_types.h +52 -0
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/PropertySheets/JSEngine.props +1 -1
- package/PropertySheets/React.Cpp.props +2 -2
- package/ReactCommon/ReactCommon.vcxproj +18 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/NativeToJsBridge.cpp +1 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/test/testlib.cpp +4 -4
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.cpp +23 -9
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.h +16 -0
- package/ReactCommon/cgmanifest.json +1 -1
- package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +2 -0
- package/Shared/DevServerHelper.h +13 -3
- package/Shared/DevSettings.h +7 -0
- package/Shared/DevSupportManager.cpp +79 -20
- package/Shared/DevSupportManager.h +7 -19
- package/Shared/Hermes/HermesRuntimeAgentDelegate.cpp +99 -0
- package/Shared/Hermes/HermesRuntimeAgentDelegate.h +81 -0
- package/Shared/Hermes/HermesRuntimeTargetDelegate.cpp +263 -0
- package/Shared/Hermes/HermesRuntimeTargetDelegate.h +77 -0
- package/Shared/HermesRuntimeHolder.cpp +29 -111
- package/Shared/HermesRuntimeHolder.h +214 -32
- package/Shared/IDevSupportManager.h +5 -2
- package/Shared/Inspector/ReactInspectorPackagerConnectionDelegate.cpp +108 -0
- package/Shared/Inspector/ReactInspectorPackagerConnectionDelegate.h +19 -0
- package/Shared/Inspector/ReactInspectorThread.h +18 -0
- package/Shared/JSI/RuntimeHolder.h +5 -2
- package/Shared/OInstance.cpp +44 -27
- package/Shared/Shared.vcxitems +27 -17
- package/Shared/Shared.vcxitems.filters +33 -15
- package/package.json +5 -5
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.cpp +0 -78
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.h +0 -196
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jserrorhandler/JsErrorHandler.cpp +0 -429
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsitooling/react/runtime/JSRuntimeFactory.cpp +0 -45
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsitooling/react/runtime/JSRuntimeFactory.h +0 -91
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +0 -670
- package/Shared/InspectorPackagerConnection.cpp +0 -232
- package/Shared/InspectorPackagerConnection.h +0 -61
- /package/Shared/{HermesSamplingProfiler.cpp → Hermes/HermesSamplingProfiler.cpp} +0 -0
- /package/Shared/{HermesSamplingProfiler.h → Hermes/HermesSamplingProfiler.h} +0 -0
package/Shared/Shared.vcxitems
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\Composition.Input.idl</DependentUpon>
|
|
37
37
|
</ClCompile>
|
|
38
38
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionAnnotationProvider.cpp">
|
|
39
|
-
|
|
39
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
40
40
|
</ClCompile>
|
|
41
41
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionContextHelper.cpp">
|
|
42
42
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
@@ -76,6 +76,10 @@
|
|
|
76
76
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionTextRangeProvider.cpp">
|
|
77
77
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
78
78
|
</ClCompile>
|
|
79
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\DebuggerUIIsland.cpp">
|
|
80
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
81
|
+
<SubType>Code</SubType>
|
|
82
|
+
</ClCompile>
|
|
79
83
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\ReactNativeIsland.cpp">
|
|
80
84
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
81
85
|
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeIsland.idl</DependentUpon>
|
|
@@ -228,16 +232,16 @@
|
|
|
228
232
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\ImageRequestParams.cpp">
|
|
229
233
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
230
234
|
</ClCompile>
|
|
231
|
-
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SchedulerSettings.cpp"/>
|
|
235
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SchedulerSettings.cpp" />
|
|
232
236
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\AsynchronousEventBeat.cpp">
|
|
233
237
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
234
238
|
</ClCompile>
|
|
235
|
-
|
|
239
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.cpp">
|
|
236
240
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
237
241
|
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
238
242
|
<SubType>Code</SubType>
|
|
239
243
|
</ClCompile>
|
|
240
|
-
|
|
244
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.cpp">
|
|
241
245
|
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
242
246
|
<DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
243
247
|
<SubType>Code</SubType>
|
|
@@ -251,8 +255,10 @@
|
|
|
251
255
|
<ClCompile Include="$(MSBuildThisFileDirectory)Executors\WebSocketJSExecutorFactory.cpp" />
|
|
252
256
|
<ClCompile Include="$(MSBuildThisFileDirectory)Hasher.cpp" />
|
|
253
257
|
<ClCompile Include="$(MSBuildThisFileDirectory)HermesRuntimeHolder.cpp" />
|
|
254
|
-
<ClCompile Include="$(MSBuildThisFileDirectory)
|
|
255
|
-
<ClCompile Include="$(MSBuildThisFileDirectory)
|
|
258
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeAgentDelegate.cpp" />
|
|
259
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeTargetDelegate.cpp" />
|
|
260
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesSamplingProfiler.cpp" />
|
|
261
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorPackagerConnectionDelegate.cpp" />
|
|
256
262
|
<ClCompile Include="$(MSBuildThisFileDirectory)InstanceManager.cpp" />
|
|
257
263
|
<ClCompile Include="$(MSBuildThisFileDirectory)JSBigAbiString.cpp" />
|
|
258
264
|
<ClCompile Include="$(MSBuildThisFileDirectory)JSI\ChakraApi.cpp" />
|
|
@@ -261,7 +267,7 @@
|
|
|
261
267
|
<ClCompile Include="$(MSBuildThisFileDirectory)JSI\V8RuntimeHolder.cpp">
|
|
262
268
|
<ExcludedFromBuild Condition="'$(UseV8)' != 'true'">true</ExcludedFromBuild>
|
|
263
269
|
</ClCompile>
|
|
264
|
-
<ClCompile Include="$(MSBuildThisFileDirectory)JSI\JSExecutorFactorySettings.cpp"/>
|
|
270
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)JSI\JSExecutorFactorySettings.cpp" />
|
|
265
271
|
<ClCompile Include="$(MSBuildThisFileDirectory)LayoutAnimation.cpp" />
|
|
266
272
|
<ClCompile Include="$(MSBuildThisFileDirectory)Logging.cpp" />
|
|
267
273
|
<ClCompile Include="$(MSBuildThisFileDirectory)MemoryMappedBuffer.cpp" />
|
|
@@ -342,10 +348,10 @@
|
|
|
342
348
|
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\JsiApi.h">
|
|
343
349
|
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\JsiApi.idl</DependentUpon>
|
|
344
350
|
</ClInclude>
|
|
345
|
-
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\CallInvoker.cpp"/>
|
|
351
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\CallInvoker.cpp" />
|
|
346
352
|
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SchedulerSettings.h" />
|
|
347
|
-
|
|
348
|
-
|
|
353
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.h">
|
|
354
|
+
<ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
|
|
349
355
|
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
|
|
350
356
|
<SubType>Code</SubType>
|
|
351
357
|
</ClInclude>
|
|
@@ -408,13 +414,18 @@
|
|
|
408
414
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.cpp">
|
|
409
415
|
<DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.idl</DependentUpon>
|
|
410
416
|
</ClCompile>
|
|
411
|
-
|
|
417
|
+
</ItemGroup>
|
|
418
|
+
<ItemGroup>
|
|
412
419
|
<ClInclude Include="$(MSBuildThisFileDirectory)AbiSafe.h" />
|
|
413
420
|
<ClInclude Include="$(MSBuildThisFileDirectory)BaseFileReaderResource.h" />
|
|
414
421
|
<ClInclude Include="$(MSBuildThisFileDirectory)CppRuntimeOptions.h" />
|
|
415
|
-
<ClInclude Include="$(MSBuildThisFileDirectory)
|
|
422
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeAgentDelegate.h" />
|
|
423
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeTargetDelegate.h" />
|
|
424
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesSamplingProfiler.h" />
|
|
416
425
|
<ClInclude Include="$(MSBuildThisFileDirectory)IBlobPersistor.h" />
|
|
417
426
|
<ClInclude Include="$(MSBuildThisFileDirectory)IFileReaderResource.h" />
|
|
427
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorPackagerConnectionDelegate.h" />
|
|
428
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorThread.h" />
|
|
418
429
|
<ClInclude Include="$(MSBuildThisFileDirectory)JSI\ByteArrayBuffer.h" />
|
|
419
430
|
<ClInclude Include="$(MSBuildThisFileDirectory)JSI\ChakraApi.h" />
|
|
420
431
|
<ClInclude Include="$(MSBuildThisFileDirectory)JSI\ChakraRuntime.h" />
|
|
@@ -460,7 +471,6 @@
|
|
|
460
471
|
<ClInclude Include="$(MSBuildThisFileDirectory)DevSettings.h" />
|
|
461
472
|
<ClInclude Include="$(MSBuildThisFileDirectory)Executors\WebSocketJSExecutor.h" />
|
|
462
473
|
<ClInclude Include="$(MSBuildThisFileDirectory)HermesRuntimeHolder.h" />
|
|
463
|
-
<ClInclude Include="$(MSBuildThisFileDirectory)InspectorPackagerConnection.h" />
|
|
464
474
|
<ClInclude Include="$(MSBuildThisFileDirectory)IDevSupportManager.h" />
|
|
465
475
|
<ClInclude Include="$(MSBuildThisFileDirectory)InstanceManager.h" />
|
|
466
476
|
<ClInclude Include="$(MSBuildThisFileDirectory)IReactRootView.h" />
|
|
@@ -598,8 +608,8 @@
|
|
|
598
608
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextProps.cpp" />
|
|
599
609
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\TextShadowNode.cpp" />
|
|
600
610
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextShadowNode.cpp" />
|
|
601
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphComponentDescriptor.cpp" DisableSpecificWarnings="5028;%(DisableSpecificWarnings)"/>
|
|
602
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\textinput\TextInputState.cpp" DisableSpecificWarnings="5028;%(DisableSpecificWarnings)"/>
|
|
611
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphComponentDescriptor.cpp" DisableSpecificWarnings="5028;%(DisableSpecificWarnings)" />
|
|
612
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\textinput\TextInputState.cpp" DisableSpecificWarnings="5028;%(DisableSpecificWarnings)" />
|
|
603
613
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\AccessibilityProps.cpp" />
|
|
604
614
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\PointerEvent.cpp" />
|
|
605
615
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\BaseTouch.cpp" />
|
|
@@ -716,7 +726,7 @@
|
|
|
716
726
|
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Theme.idl" />
|
|
717
727
|
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\UriImageManager.idl" />
|
|
718
728
|
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ViewProps.idl" />
|
|
719
|
-
|
|
729
|
+
<Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl" />
|
|
720
730
|
</ItemGroup>
|
|
721
731
|
<ItemGroup>
|
|
722
732
|
<ClInclude Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.h" />
|
|
@@ -732,4 +742,4 @@
|
|
|
732
742
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
|
733
743
|
</ClCompile>
|
|
734
744
|
</ItemGroup>
|
|
735
|
-
</Project>
|
|
745
|
+
</Project>
|
|
@@ -94,9 +94,6 @@
|
|
|
94
94
|
<ClCompile Include="$(MSBuildThisFileDirectory)JSI\JSExecutorFactorySettings.cpp">
|
|
95
95
|
<Filter>Source Files\JSI</Filter>
|
|
96
96
|
</ClCompile>
|
|
97
|
-
<ClCompile Include="$(MSBuildThisFileDirectory)InspectorPackagerConnection.cpp">
|
|
98
|
-
<Filter>Source Files</Filter>
|
|
99
|
-
</ClCompile>
|
|
100
97
|
<ClCompile Include="$(MSBuildThisFileDirectory)Modules\HttpModule.cpp">
|
|
101
98
|
<Filter>Source Files\Modules</Filter>
|
|
102
99
|
</ClCompile>
|
|
@@ -218,6 +215,9 @@
|
|
|
218
215
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionAnnotationProvider.cpp">
|
|
219
216
|
<Filter>Source Files\Fabric\Composition</Filter>
|
|
220
217
|
</ClCompile>
|
|
218
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\DebuggerUIIsland.cpp">
|
|
219
|
+
<Filter>Source Files\Fabric\Composition</Filter>
|
|
220
|
+
</ClCompile>
|
|
221
221
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\ReactNativeIsland.cpp">
|
|
222
222
|
<Filter>Source Files\Fabric\Composition</Filter>
|
|
223
223
|
</ClCompile>
|
|
@@ -230,9 +230,6 @@
|
|
|
230
230
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionHwndHost.cpp">
|
|
231
231
|
<Filter>Source Files\Fabric</Filter>
|
|
232
232
|
</ClCompile>
|
|
233
|
-
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\ReactNativeIsland.cpp">
|
|
234
|
-
<Filter>Source Files\Fabric</Filter>
|
|
235
|
-
</ClCompile>
|
|
236
233
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionUIService.cpp">
|
|
237
234
|
<Filter>Source Files\Fabric</Filter>
|
|
238
235
|
</ClCompile>
|
|
@@ -265,9 +262,6 @@
|
|
|
265
262
|
<ClCompile Include="$(MSBuildThisFileDirectory)HermesRuntimeHolder.cpp">
|
|
266
263
|
<Filter>Hermes</Filter>
|
|
267
264
|
</ClCompile>
|
|
268
|
-
<ClCompile Include="$(MSBuildThisFileDirectory)HermesSamplingProfiler.cpp">
|
|
269
|
-
<Filter>Hermes</Filter>
|
|
270
|
-
</ClCompile>
|
|
271
265
|
<ClCompile Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.cpp" />
|
|
272
266
|
<ClCompile Include="$(MSBuildThisFileDirectory)JSI\V8RuntimeHolder.cpp" />
|
|
273
267
|
<ClCompile Include="$(MSBuildThisFileDirectory)SafeLoadLibrary.cpp" />
|
|
@@ -344,6 +338,18 @@
|
|
|
344
338
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\oscompat\OSCompatWindows.cpp" />
|
|
345
339
|
<ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\platform\react\renderer\textlayoutmanager\WindowsTextLayoutManager.cpp" />
|
|
346
340
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\network\NetworkReporter.cpp" />
|
|
341
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeAgentDelegate.cpp">
|
|
342
|
+
<Filter>Hermes</Filter>
|
|
343
|
+
</ClCompile>
|
|
344
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeTargetDelegate.cpp">
|
|
345
|
+
<Filter>Hermes</Filter>
|
|
346
|
+
</ClCompile>
|
|
347
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesSamplingProfiler.cpp">
|
|
348
|
+
<Filter>Hermes</Filter>
|
|
349
|
+
</ClCompile>
|
|
350
|
+
<ClCompile Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorPackagerConnectionDelegate.cpp">
|
|
351
|
+
<Filter>Inspector</Filter>
|
|
352
|
+
</ClCompile>
|
|
347
353
|
</ItemGroup>
|
|
348
354
|
<ItemGroup>
|
|
349
355
|
<Filter Include="Source Files">
|
|
@@ -478,6 +484,9 @@
|
|
|
478
484
|
<Filter Include="Hermes">
|
|
479
485
|
<UniqueIdentifier>{b32590e6-ae3d-4388-ab98-767345ce38c9}</UniqueIdentifier>
|
|
480
486
|
</Filter>
|
|
487
|
+
<Filter Include="Inspector">
|
|
488
|
+
<UniqueIdentifier>{680511e1-15e0-48c9-a2a3-64addaeacce5}</UniqueIdentifier>
|
|
489
|
+
</Filter>
|
|
481
490
|
</ItemGroup>
|
|
482
491
|
<ItemGroup>
|
|
483
492
|
<ClInclude Include="$(MSBuildThisFileDirectory)Modules\ExceptionsManagerModule.h">
|
|
@@ -631,9 +640,6 @@
|
|
|
631
640
|
<Filter>Header Files\JSI</Filter>
|
|
632
641
|
</ClInclude>
|
|
633
642
|
<ClInclude Include="$(MSBuildThisFileDirectory)..\include\Shared\cdebug.h" />
|
|
634
|
-
<ClInclude Include="$(MSBuildThisFileDirectory)InspectorPackagerConnection.h">
|
|
635
|
-
<Filter>Header Files</Filter>
|
|
636
|
-
</ClInclude>
|
|
637
643
|
<ClInclude Include="$(MSBuildThisFileDirectory)tracing\tracing.h">
|
|
638
644
|
<Filter>Header Files\tracing</Filter>
|
|
639
645
|
</ClInclude>
|
|
@@ -821,9 +827,6 @@
|
|
|
821
827
|
<ClInclude Include="$(MSBuildThisFileDirectory)HermesRuntimeHolder.h">
|
|
822
828
|
<Filter>Hermes</Filter>
|
|
823
829
|
</ClInclude>
|
|
824
|
-
<ClInclude Include="$(MSBuildThisFileDirectory)HermesSamplingProfiler.h">
|
|
825
|
-
<Filter>Hermes</Filter>
|
|
826
|
-
</ClInclude>
|
|
827
830
|
<ClInclude Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.h" />
|
|
828
831
|
<ClInclude Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.inc" />
|
|
829
832
|
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\JsiApi.h" />
|
|
@@ -832,6 +835,21 @@
|
|
|
832
835
|
<ClInclude Include="$(MSBuildThisFileDirectory)V8JSIRuntimeHolder.h" />
|
|
833
836
|
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\Modal\WindowsModalHostViewSate.h" />
|
|
834
837
|
<ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionViewComponentView.h" />
|
|
838
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeAgentDelegate.h">
|
|
839
|
+
<Filter>Hermes</Filter>
|
|
840
|
+
</ClInclude>
|
|
841
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeTargetDelegate.h">
|
|
842
|
+
<Filter>Hermes</Filter>
|
|
843
|
+
</ClInclude>
|
|
844
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesSamplingProfiler.h">
|
|
845
|
+
<Filter>Hermes</Filter>
|
|
846
|
+
</ClInclude>
|
|
847
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorThread.h">
|
|
848
|
+
<Filter>Inspector</Filter>
|
|
849
|
+
</ClInclude>
|
|
850
|
+
<ClInclude Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorPackagerConnectionDelegate.h">
|
|
851
|
+
<Filter>Inspector</Filter>
|
|
852
|
+
</ClInclude>
|
|
835
853
|
</ItemGroup>
|
|
836
854
|
<ItemGroup>
|
|
837
855
|
<None Include="$(MSBuildThisFileDirectory)tracing\rnw.wprp">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-windows",
|
|
3
|
-
"version": "0.80.
|
|
3
|
+
"version": "0.80.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@react-native-community/cli": "17.0.0",
|
|
27
27
|
"@react-native-community/cli-platform-android": "17.0.0",
|
|
28
28
|
"@react-native-community/cli-platform-ios": "17.0.0",
|
|
29
|
-
"@react-native-windows/cli": "0.80.
|
|
29
|
+
"@react-native-windows/cli": "0.80.2",
|
|
30
30
|
"@react-native/assets": "1.0.0",
|
|
31
31
|
"@react-native/assets-registry": "0.80.0",
|
|
32
32
|
"@react-native/codegen": "0.80.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"yargs": "^17.6.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@react-native-windows/codegen": "0.80.
|
|
71
|
+
"@react-native-windows/codegen": "0.80.2",
|
|
72
72
|
"@react-native/metro-config": "0.80.0",
|
|
73
73
|
"@rnw-scripts/babel-react-native-config": "0.0.0",
|
|
74
74
|
"@rnw-scripts/eslint-config": "1.2.36",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"prettier": "2.8.8",
|
|
86
86
|
"react": "19.1.0",
|
|
87
87
|
"react-native": "0.80.0",
|
|
88
|
-
"react-native-platform-override": "
|
|
88
|
+
"react-native-platform-override": "0.80.6",
|
|
89
89
|
"react-refresh": "^0.14.0",
|
|
90
90
|
"typescript": "5.0.4"
|
|
91
91
|
},
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"react-native": "^0.80.0"
|
|
96
96
|
},
|
|
97
97
|
"beachball": {
|
|
98
|
-
"defaultNpmTag": "
|
|
98
|
+
"defaultNpmTag": "v0.80-stable",
|
|
99
99
|
"disallowedChangeTypes": [
|
|
100
100
|
"major",
|
|
101
101
|
"minor",
|
|
@@ -1,78 +0,0 @@
|
|
|
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
|
-
#include "JSExecutor.h"
|
|
9
|
-
|
|
10
|
-
#include "RAMBundleRegistry.h"
|
|
11
|
-
|
|
12
|
-
#include <jsinspector-modern/ReactCdp.h>
|
|
13
|
-
#include <jsinspector-modern/tracing/InstanceTracingProfile.h>
|
|
14
|
-
#include <react/timing/primitives.h>
|
|
15
|
-
|
|
16
|
-
#include <array>
|
|
17
|
-
#include <chrono>
|
|
18
|
-
|
|
19
|
-
namespace facebook::react {
|
|
20
|
-
|
|
21
|
-
std::string JSExecutor::getSyntheticBundlePath(
|
|
22
|
-
uint32_t bundleId,
|
|
23
|
-
const std::string& bundlePath) {
|
|
24
|
-
if (bundleId == RAMBundleRegistry::MAIN_BUNDLE_ID) {
|
|
25
|
-
return bundlePath;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
std::array<char, 32> buffer{};
|
|
29
|
-
std::snprintf(buffer.data(), buffer.size(), "seg-%u.js", bundleId);
|
|
30
|
-
return buffer.data();
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
double JSExecutor::performanceNow() {
|
|
34
|
-
return chronoToDOMHighResTimeStamp(std::chrono::steady_clock::now());
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
void JSExecutor::addConsoleMessage(jsi::Runtime& runtime, jsinspector_modern::ConsoleMessage message){
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
bool JSExecutor::supportsConsole() const {
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
std::unique_ptr<facebook::react::jsinspector_modern::StackTrace> JSExecutor::captureStackTrace(
|
|
46
|
-
facebook::jsi::Runtime &runtime,
|
|
47
|
-
size_t framesToSkip) {
|
|
48
|
-
return std::make_unique<facebook::react::jsinspector_modern::StackTrace>();
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
void JSExecutor::enableSamplingProfiler() {
|
|
52
|
-
return; // [Windows TODO: stubbed implementation #14700]
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
void JSExecutor::disableSamplingProfiler() {
|
|
56
|
-
return; // [Windows TODO: stubbed implementation #14700]
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
facebook::react::jsinspector_modern::tracing::RuntimeSamplingProfile JSExecutor::collectSamplingProfile() {
|
|
60
|
-
return facebook::react::jsinspector_modern::tracing::RuntimeSamplingProfile(
|
|
61
|
-
"stubbed_impl", {}); // [Windows TODO: stubbed implementation #14700]
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
std::unique_ptr<jsinspector_modern::RuntimeAgentDelegate>
|
|
65
|
-
JSExecutor::createAgentDelegate(
|
|
66
|
-
jsinspector_modern::FrontendChannel frontendChannel,
|
|
67
|
-
jsinspector_modern::SessionState& sessionState,
|
|
68
|
-
std::unique_ptr<jsinspector_modern::RuntimeAgentDelegate::ExportedState>,
|
|
69
|
-
const jsinspector_modern::ExecutionContextDescription&
|
|
70
|
-
executionContextDescription,
|
|
71
|
-
RuntimeExecutor runtimeExecutor) {
|
|
72
|
-
(void)executionContextDescription;
|
|
73
|
-
(void)runtimeExecutor;
|
|
74
|
-
return std::make_unique<jsinspector_modern::FallbackRuntimeAgentDelegate>(
|
|
75
|
-
std::move(frontendChannel), sessionState, getDescription());
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
} // namespace facebook::react
|
|
@@ -1,196 +0,0 @@
|
|
|
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
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <memory>
|
|
11
|
-
#include <string>
|
|
12
|
-
|
|
13
|
-
#include <cxxreact/NativeModule.h>
|
|
14
|
-
#include <folly/dynamic.h>
|
|
15
|
-
#include <jsinspector-modern/InspectorInterfaces.h>
|
|
16
|
-
#include <jsinspector-modern/FallbackRuntimeAgentDelegate.h>
|
|
17
|
-
#include <jsinspector-modern/ReactCdp.h>
|
|
18
|
-
#include <jsinspector-modern/ConsoleMessage.h>
|
|
19
|
-
#include <jsinspector-modern/StackTrace.h>
|
|
20
|
-
|
|
21
|
-
#ifndef RN_EXPORT
|
|
22
|
-
#define RN_EXPORT __attribute__((visibility("default")))
|
|
23
|
-
#endif
|
|
24
|
-
|
|
25
|
-
namespace facebook::react {
|
|
26
|
-
|
|
27
|
-
class JSBigString;
|
|
28
|
-
class JSExecutor;
|
|
29
|
-
class JSModulesUnbundle;
|
|
30
|
-
class MessageQueueThread;
|
|
31
|
-
class ModuleRegistry;
|
|
32
|
-
class RAMBundleRegistry;
|
|
33
|
-
|
|
34
|
-
// This interface describes the delegate interface required by
|
|
35
|
-
// Executor implementations to call from JS into native code.
|
|
36
|
-
class ExecutorDelegate {
|
|
37
|
-
public:
|
|
38
|
-
virtual ~ExecutorDelegate() {}
|
|
39
|
-
|
|
40
|
-
virtual std::shared_ptr<ModuleRegistry> getModuleRegistry() = 0;
|
|
41
|
-
|
|
42
|
-
virtual void callNativeModules(
|
|
43
|
-
JSExecutor& executor,
|
|
44
|
-
folly::dynamic&& calls,
|
|
45
|
-
bool isEndOfBatch) = 0;
|
|
46
|
-
virtual MethodCallResult callSerializableNativeHook(
|
|
47
|
-
JSExecutor& executor,
|
|
48
|
-
unsigned int moduleId,
|
|
49
|
-
unsigned int methodId,
|
|
50
|
-
folly::dynamic&& args) = 0;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
class JSExecutorFactory {
|
|
54
|
-
public:
|
|
55
|
-
virtual std::unique_ptr<JSExecutor> createJSExecutor(
|
|
56
|
-
std::shared_ptr<ExecutorDelegate> delegate,
|
|
57
|
-
std::shared_ptr<MessageQueueThread> jsQueue) = 0;
|
|
58
|
-
virtual ~JSExecutorFactory() {}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
class RN_EXPORT JSExecutor : public jsinspector_modern::RuntimeTargetDelegate {
|
|
62
|
-
public:
|
|
63
|
-
/**
|
|
64
|
-
* Prepares the JS runtime for React Native by installing global variables.
|
|
65
|
-
* Called once before any JS is evaluated.
|
|
66
|
-
*/
|
|
67
|
-
virtual void initializeRuntime() = 0;
|
|
68
|
-
/**
|
|
69
|
-
* Execute an application script bundle in the JS context.
|
|
70
|
-
*/
|
|
71
|
-
virtual void loadBundle(
|
|
72
|
-
std::unique_ptr<const JSBigString> script,
|
|
73
|
-
std::string sourceURL) = 0;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Add an application "RAM" bundle registry
|
|
77
|
-
*/
|
|
78
|
-
virtual void setBundleRegistry(
|
|
79
|
-
std::unique_ptr<RAMBundleRegistry> bundleRegistry) = 0;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Register a file path for an additional "RAM" bundle
|
|
83
|
-
*/
|
|
84
|
-
virtual void registerBundle(
|
|
85
|
-
uint32_t bundleId,
|
|
86
|
-
const std::string& bundlePath) = 0;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Executes BatchedBridge.callFunctionReturnFlushedQueue with the module ID,
|
|
90
|
-
* method ID and optional additional arguments in JS. The executor is
|
|
91
|
-
* responsible for using Bridge->callNativeModules to invoke any necessary
|
|
92
|
-
* native modules methods.
|
|
93
|
-
*/
|
|
94
|
-
virtual void callFunction(
|
|
95
|
-
const std::string& moduleId,
|
|
96
|
-
const std::string& methodId,
|
|
97
|
-
const folly::dynamic& arguments) = 0;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Executes BatchedBridge.invokeCallbackAndReturnFlushedQueue with the cbID,
|
|
101
|
-
* and optional additional arguments in JS and returns the next queue. The
|
|
102
|
-
* executor is responsible for using Bridge->callNativeModules to invoke any
|
|
103
|
-
* necessary native modules methods.
|
|
104
|
-
*/
|
|
105
|
-
virtual void invokeCallback(
|
|
106
|
-
const double callbackId,
|
|
107
|
-
const folly::dynamic& arguments) = 0;
|
|
108
|
-
|
|
109
|
-
virtual void setGlobalVariable(
|
|
110
|
-
std::string propName,
|
|
111
|
-
std::unique_ptr<const JSBigString> jsonValue) = 0;
|
|
112
|
-
|
|
113
|
-
virtual void* getJavaScriptContext() {
|
|
114
|
-
return nullptr;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Returns whether or not the underlying executor supports debugging via the
|
|
119
|
-
* Chrome remote debugging protocol. If true, the executor should also
|
|
120
|
-
* override the \c createAgentDelegate method.
|
|
121
|
-
*/
|
|
122
|
-
virtual bool isInspectable() {
|
|
123
|
-
return false;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* The description is displayed in the dev menu, if there is one in
|
|
128
|
-
* this build. There is a default, but if this method returns a
|
|
129
|
-
* non-empty string, it will be used instead.
|
|
130
|
-
*/
|
|
131
|
-
virtual std::string getDescription() = 0;
|
|
132
|
-
|
|
133
|
-
virtual void handleMemoryPressure([[maybe_unused]] int pressureLevel) {}
|
|
134
|
-
|
|
135
|
-
virtual void destroy() {}
|
|
136
|
-
virtual ~JSExecutor() override {}
|
|
137
|
-
|
|
138
|
-
virtual void flush() {}
|
|
139
|
-
|
|
140
|
-
static std::string getSyntheticBundlePath(
|
|
141
|
-
uint32_t bundleId,
|
|
142
|
-
const std::string& bundlePath);
|
|
143
|
-
|
|
144
|
-
static double performanceNow();
|
|
145
|
-
|
|
146
|
-
virtual void addConsoleMessage(jsi::Runtime& runtime, jsinspector_modern::ConsoleMessage message);
|
|
147
|
-
|
|
148
|
-
virtual bool supportsConsole() const;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* \returns an opaque representation of a stack trace. This may be passed back
|
|
152
|
-
* to the `RuntimeTargetDelegate` as part of `addConsoleMessage` or other APIs
|
|
153
|
-
* that report stack traces.
|
|
154
|
-
* \param framesToSkip The number of call frames to skip. The first call frame
|
|
155
|
-
* is the topmost (current) frame on the Runtime's call stack, which will
|
|
156
|
-
* typically be the (native) JSI HostFunction that called this method.
|
|
157
|
-
* \note The method is called on the JS thread, and receives a valid reference
|
|
158
|
-
* to the current \c jsi::Runtime. The callee MAY use its own intrinsic
|
|
159
|
-
* Runtime reference, if it has one, without checking it for equivalence with
|
|
160
|
-
* the one provided here.
|
|
161
|
-
*/
|
|
162
|
-
std::unique_ptr<jsinspector_modern::StackTrace> captureStackTrace(
|
|
163
|
-
jsi::Runtime& runtime,
|
|
164
|
-
size_t framesToSkip = 0) override;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Start sampling profiler.
|
|
169
|
-
*/
|
|
170
|
-
virtual void enableSamplingProfiler() override;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Stop sampling profiler.
|
|
174
|
-
*/
|
|
175
|
-
virtual void disableSamplingProfiler() override;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Return recorded sampling profile for the previous sampling session.
|
|
179
|
-
*/
|
|
180
|
-
virtual facebook::react::jsinspector_modern::tracing::RuntimeSamplingProfile collectSamplingProfile() override;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Create a RuntimeAgentDelegate that can be used to debug the JS VM instance.
|
|
184
|
-
*/
|
|
185
|
-
virtual std::unique_ptr<jsinspector_modern::RuntimeAgentDelegate>
|
|
186
|
-
createAgentDelegate(
|
|
187
|
-
jsinspector_modern::FrontendChannel frontendChannel,
|
|
188
|
-
jsinspector_modern::SessionState& sessionState,
|
|
189
|
-
std::unique_ptr<jsinspector_modern::RuntimeAgentDelegate::ExportedState>
|
|
190
|
-
previouslyExportedState,
|
|
191
|
-
const jsinspector_modern::ExecutionContextDescription&
|
|
192
|
-
executionContextDescription,
|
|
193
|
-
RuntimeExecutor runtimeExecutor) override;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
} // namespace facebook::react
|