Skip to content

Commit

Permalink
Change Hermes package version to 0.1.21 (#13207)
Browse files Browse the repository at this point in the history
* Change Hermes package version to 0.1.21

* Change files
  • Loading branch information
vmoroz committed May 9, 2024
1 parent 361626d commit 5a5053b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Change Hermes package version to 0.1.21",
"packageName": "react-native-windows",
"email": "vmorozov@microsoft.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion vnext/PropertySheets/JSEngine.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Enabling this will (1) Include hermes glues in the Microsoft.ReactNative binaries AND (2) Make hermes the default engine -->
<UseHermes Condition="'$(UseHermes)' == ''">true</UseHermes>
<!-- This will be true if (1) the client want to use hermes by setting UseHermes to true OR (2) We are building for UWP where dynamic switching is enabled -->
<HermesVersion Condition="'$(HermesVersion)' == ''">0.1.18</HermesVersion>
<HermesVersion Condition="'$(HermesVersion)' == ''">0.1.21</HermesVersion>
<HermesPackage Condition="'$(HermesPackage)' == '' And Exists('$(PkgMicrosoft_JavaScript_Hermes)')">$(PkgMicrosoft_JavaScript_Hermes)</HermesPackage>
<HermesPackage Condition="'$(HermesPackage)' == ''">$(NuGetPackageRoot)\Microsoft.JavaScript.Hermes\$(HermesVersion)</HermesPackage>
<EnableHermesInspectorInReleaseFlavor Condition="'$(EnableHermesInspectorInReleaseFlavor)' == ''">false</EnableHermesInspectorInReleaseFlavor>
Expand Down
8 changes: 8 additions & 0 deletions vnext/Shared/HermesRuntimeHolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ void NAPI_CDECL removeInspectorPage(int32_t pageId) noexcept {

} // namespace

//==============================================================================
// HermesRuntimeHolder implementation
//==============================================================================

HermesRuntimeHolder::HermesRuntimeHolder(
std::shared_ptr<facebook::react::DevSettings> devSettings,
std::shared_ptr<facebook::react::MessageQueueThread> jsQueue,
Expand Down Expand Up @@ -394,6 +398,10 @@ void HermesRuntimeHolder::removeFromProfiling() const noexcept {
CRASH_ON_ERROR(getHermesApi().hermes_sampling_profiler_dump_to_file(fileName.c_str()));
}

//==============================================================================
// HermesJSRuntime implementation
//==============================================================================

HermesJSRuntime::HermesJSRuntime(std::shared_ptr<Microsoft::JSI::RuntimeHolderLazyInit> hermesRuntimeHolder)
: m_holder(std::move(hermesRuntimeHolder)) {}

Expand Down

0 comments on commit 5a5053b

Please sign in to comment.