Skip to content

Commit e66d818

Browse files
vmorozacoates-ms
andauthored
[0.69] Fix Hermes sampling profiler (#11033) (#11203)
* Fix Hermes sampling profiler (#11033) * Change files * Fix Desktop compilation issues * Fix Hermes version * Restore telemetry tests * Fix AccessibilityInfoExample --------- Co-authored-by: Vladimir Morozov <[email protected]> Co-authored-by: Andrew Coates <[email protected]>
1 parent 48f4e43 commit e66d818

File tree

25 files changed

+315
-235
lines changed

25 files changed

+315
-235
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Fix Hermes sampling profiler (#11033)",
4+
"packageName": "@react-native-windows/telemetry",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Fix Hermes sampling profiler (#11033)",
4+
"packageName": "react-native-windows",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/@react-native-windows/telemetry/src/test/projects/UsesPackagesConfig/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<packages>
33
<package id="Microsoft.Windows.CppWinRT" version="2.0.210312.4" targetFramework="native"/>
44
<package id="Microsoft.UI.Xaml" version="2.6.0" targetFramework="native"/>
5-
<package id="ReactNative.Hermes.Windows" version="0.8.1-ms.5" targetFramework="native"/>
5+
<package id="ReactNative.Hermes.Windows" version="0.69.1" targetFramework="native"/>
66
</packages>

packages/@react-native-windows/tester/src/js/examples-win/Accessibility/AccessibilityInfoExample.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ function AccessibilityInfoExample(props): React.Node {
4040
let myElement = React.createRef();
4141

4242
React.useEffect(() => {
43-
AccessibilityInfo.isReduceMotionEnabled().done(isEnabled => {
43+
AccessibilityInfo.isReduceMotionEnabled().then(isEnabled => {
4444
setIsReduceMotionEnabled(isEnabled);
4545
});
46-
AccessibilityInfo.isScreenReaderEnabled().done(isEnabled => {
46+
AccessibilityInfo.isScreenReaderEnabled().then(isEnabled => {
4747
setIsScreenReaderEnabled(isEnabled);
4848
});
4949
}, [setIsReduceMotionEnabled, setIsScreenReaderEnabled]);

packages/e2e-test-app/windows/RNTesterApp/RNTesterApp.csproj

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,9 @@
142142
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CSharpApp.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CSharpApp.props')" />
143143
</ImportGroup>
144144
<ItemGroup>
145-
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
146-
<Version>6.2.9</Version>
147-
</PackageReference>
148-
<PackageReference Include="XamlTreeDump">
149-
<Version>1.0.9</Version>
150-
</PackageReference>
151-
<PackageReference Include="ReactNative.Hermes.Windows">
152-
<Version>0.12.1</Version>
153-
</PackageReference>
145+
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.9" />
146+
<PackageReference Include="XamlTreeDump" Version="1.0.9" />
147+
<PackageReference Include="ReactNative.Hermes.Windows" Version="$(HermesVersion)" />
154148
</ItemGroup>
155149
<ImportGroup Label="ReactNativeWindowsTargets">
156150
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CSharpApp.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CSharpApp.targets')" />

packages/e2e-test-app/windows/RNTesterApp/packages.lock.json

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
},
2323
"ReactNative.Hermes.Windows": {
2424
"type": "Direct",
25-
"requested": "[0.11.0-ms.6, )",
26-
"resolved": "0.11.0-ms.6",
27-
"contentHash": "U+0FecIUFhmuLDNGT+kIhQdzoIgOvaGHU5gQOl66G5JdbO8xpful+E5OH/NL9Ue6N1l+ecqTH9shGrVDsdG5ow=="
25+
"requested": "[0.69.1, )",
26+
"resolved": "0.69.1",
27+
"contentHash": "/Xd5l7wBKOO7IvS2IYDPPzXvlU4sYmoRIbX3wt35La9aAzIDEzlE5qWwRu0usRFyEeZoLWjQpnLqItMMy4mvQg=="
2828
},
2929
"XamlTreeDump": {
3030
"type": "Direct",
@@ -56,7 +56,7 @@
5656
"Microsoft.NETCore.Platforms": {
5757
"type": "Transitive",
5858
"resolved": "2.1.0",
59-
"contentHash": "GmkKfoyerqmsHMn7OZj0AKpcBabD+GaafqphvX2Mw406IwiJRy1pKcKqdCfKJfYmkRyJ6+e+RaUylgdJoDa1jQ=="
59+
"contentHash": "ok+RPAtESz/9MUXeIEz6Lv5XAGQsaNmEYXMsgVALj4D7kqC8gveKWXWXbufLySR2fWrwZf8smyN5RmHu0e4BHA=="
6060
},
6161
"NETStandard.Library": {
6262
"type": "Transitive",
@@ -147,16 +147,10 @@
147147
}
148148
},
149149
"reactnativepicker": {
150-
"type": "Project",
151-
"dependencies": {
152-
"Microsoft.ReactNative": "1.0.0"
153-
}
150+
"type": "Project"
154151
},
155152
"reactnativexaml": {
156-
"type": "Project",
157-
"dependencies": {
158-
"Microsoft.ReactNative": "1.0.0"
159-
}
153+
"type": "Project"
160154
}
161155
},
162156
"UAP,Version=v10.0.16299/win10-arm": {

packages/playground/windows/playground-win32/Playground-win32.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
<!-- <PackageReference Include="Microsoft.UI.Xaml" Version="2.6.1-prerelease.210709001" /> -->
181181
<PackageReference Include="Microsoft.Windows.CppWinRT" Version="$(CppWinRTVersion)" />
182182
<PackageReference Include="Microsoft.VCRTForwarders.140" Version="1.0.2-rc" />
183-
<PackageReference Include="ReactNative.Hermes.Windows" Version="0.12.1" />
183+
<PackageReference Include="ReactNative.Hermes.Windows" Version="$(HermesVersion)" />
184184
<PackageReference Include="$(V8PackageName)" Version="$(V8Version)" Condition="'$(UseV8)' == 'true'" />
185185
</ItemGroup>
186186
<Target Name="EnsureReactNativeWindowsTargets" BeforeTargets="PrepareForBuild">

packages/playground/windows/playground/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
<package id="Microsoft.Windows.CppWinRT" version="2.0.210312.4" targetFramework="native"/>
44
<package id="Microsoft.UI.Xaml" version="2.7.0" targetFramework="native"/>
55
<package id="Microsoft.WinUI" version="3.0.0-preview4.210210.4" targetFramework="native"/>
6+
<package id="ReactNative.Hermes.Windows" version="0.69.1" targetFramework="native"/>
67
</packages>

packages/sample-apps/windows/SampleAppCS/SampleAppCS.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,8 @@
154154
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CSharpApp.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CSharpApp.props')" />
155155
</ImportGroup>
156156
<ItemGroup>
157-
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
158-
<Version>6.2.9</Version>
159-
</PackageReference>
160-
<PackageReference Include="ReactNative.Hermes.Windows">
161-
<Version>0.12.1</Version>
162-
</PackageReference>
157+
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.9" />
158+
<PackageReference Include="ReactNative.Hermes.Windows" Version="$(HermesVersion)" />
163159
</ItemGroup>
164160
<ImportGroup Label="ReactNativeWindowsTargets">
165161
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CSharpApp.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CSharpApp.targets')" />

vnext/Desktop/React.Windows.Desktop.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
<CppWinRTUsePrefixes>true</CppWinRTUsePrefixes>
5252
<UseV8>true</UseV8>
5353
<V8AppPlatform>win32</V8AppPlatform>
54+
<HermesCompileRtti>false</HermesCompileRtti>
5455
</PropertyGroup>
5556
<PropertyGroup Label="Permissive">
5657
<ENABLEPermissive>true</ENABLEPermissive>

0 commit comments

Comments
 (0)