react-native-windows 0.71.34 → 0.71.36
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.
|
@@ -231,7 +231,7 @@ static void SetProperties(JsonObject const &json, RNCoreApp *app) {
|
|
|
231
231
|
std::wstring nsName;
|
|
232
232
|
std::wstring localName;
|
|
233
233
|
if (lastDot != name.rend()) {
|
|
234
|
-
nsName = std::wstring{name.begin(), static_cast<
|
|
234
|
+
nsName = std::wstring{name.begin(), static_cast<size_t>(name.rend() - lastDot - 1)};
|
|
235
235
|
localName = std::wstring{lastDot.base()};
|
|
236
236
|
} else {
|
|
237
237
|
localName = name;
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
#include <tuple>
|
|
77
77
|
#include "ChakraRuntimeHolder.h"
|
|
78
78
|
|
|
79
|
+
#include <CppRuntimeOptions.h>
|
|
79
80
|
#include <CreateModules.h>
|
|
80
81
|
#include <Utils/Helpers.h>
|
|
81
82
|
#include "CrashManager.h"
|
|
@@ -373,15 +374,17 @@ void ReactInstanceWin::LoadModules(
|
|
|
373
374
|
L"Timing", winrt::Microsoft::ReactNative::MakeTurboModuleProvider<::Microsoft::ReactNative::Timing>());
|
|
374
375
|
#endif
|
|
375
376
|
|
|
376
|
-
registerTurboModule(
|
|
377
|
+
registerTurboModule(
|
|
378
|
+
::Microsoft::React::GetWebSocketTurboModuleName(), ::Microsoft::React::GetWebSocketModuleProvider());
|
|
377
379
|
|
|
378
|
-
|
|
380
|
+
if (!Microsoft::React::GetRuntimeOptionBool("Blob.DisableModule")) {
|
|
381
|
+
registerTurboModule(::Microsoft::React::GetHttpTurboModuleName(), ::Microsoft::React::GetHttpModuleProvider());
|
|
379
382
|
|
|
380
|
-
|
|
381
|
-
::Microsoft::React::GetFileReaderTurboModuleName(), ::Microsoft::React::GetFileReaderModuleProvider());
|
|
383
|
+
registerTurboModule(::Microsoft::React::GetBlobTurboModuleName(), ::Microsoft::React::GetBlobModuleProvider());
|
|
382
384
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
+
registerTurboModule(
|
|
386
|
+
::Microsoft::React::GetFileReaderTurboModuleName(), ::Microsoft::React::GetFileReaderModuleProvider());
|
|
387
|
+
}
|
|
385
388
|
}
|
|
386
389
|
|
|
387
390
|
//! Initialize() is called from the native queue.
|
|
@@ -530,6 +533,9 @@ void ReactInstanceWin::Initialize() noexcept {
|
|
|
530
533
|
// We need to keep the instance wrapper alive as its destruction shuts down the native queue.
|
|
531
534
|
m_options.TurboModuleProvider->SetReactContext(
|
|
532
535
|
winrt::make<implementation::ReactContext>(Mso::Copy(m_reactContext)));
|
|
536
|
+
auto omitNetCxxPropName = ReactPropertyBagHelper::GetName(nullptr, L"OmitNetworkingCxxModules");
|
|
537
|
+
auto omitNetCxxPropValue = m_options.Properties.Get(omitNetCxxPropName);
|
|
538
|
+
devSettings->omitNetworkingCxxModules = winrt::unbox_value_or(omitNetCxxPropValue, false);
|
|
533
539
|
auto bundleRootPath = devSettings->bundleRootPath;
|
|
534
540
|
auto instanceWrapper = facebook::react::CreateReactInstance(
|
|
535
541
|
std::shared_ptr<facebook::react::Instance>(strongThis->m_instance.Load()),
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.71.
|
|
13
|
+
<ReactNativeWindowsVersion>0.71.36</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>71</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>36</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>95cd4c91aab6d83e0bfcfbb2bee0310374d35911</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
package/Shared/DevSettings.h
CHANGED
|
@@ -99,6 +99,9 @@ struct DevSettings {
|
|
|
99
99
|
bool devBundle{true};
|
|
100
100
|
|
|
101
101
|
bool enableDefaultCrashHandler{false};
|
|
102
|
+
|
|
103
|
+
// Transitory. Used to indicate whether or not to load networking types in the default Cxx module registry.
|
|
104
|
+
bool omitNetworkingCxxModules{false};
|
|
102
105
|
};
|
|
103
106
|
|
|
104
107
|
} // namespace react
|
package/Shared/OInstance.cpp
CHANGED
|
@@ -538,35 +538,34 @@ std::vector<std::unique_ptr<NativeModule>> InstanceImpl::GetDefaultNativeModules
|
|
|
538
538
|
// If this code is enabled, we will have unused module instances.
|
|
539
539
|
// Also, MSRN has a different property bag mechanism incompatible with this method's transitionalProps variable.
|
|
540
540
|
#if (defined(_MSC_VER) && !defined(WINRT))
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
Microsoft::React::GetHttpModuleName(),
|
|
544
|
-
[nativeQueue, transitionalProps]() -> std::unique_ptr<xplat::module::CxxModule> {
|
|
545
|
-
return Microsoft::React::CreateHttpModule(transitionalProps);
|
|
546
|
-
},
|
|
547
|
-
nativeQueue));
|
|
548
|
-
|
|
549
|
-
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
550
|
-
m_innerInstance,
|
|
551
|
-
Microsoft::React::GetWebSocketModuleName(),
|
|
552
|
-
[nativeQueue, transitionalProps]() -> std::unique_ptr<xplat::module::CxxModule> {
|
|
553
|
-
return Microsoft::React::CreateWebSocketModule(transitionalProps);
|
|
554
|
-
},
|
|
555
|
-
nativeQueue));
|
|
556
|
-
|
|
557
|
-
// Use in case the host app provides its a non-Blob-compatilbe HTTP module.
|
|
558
|
-
if (!Microsoft::React::GetRuntimeOptionBool("Blob.DisableModule")) {
|
|
541
|
+
// Applications using the Windows ABI feature should loade the networking TurboModule variants instead.
|
|
542
|
+
if (!m_devSettings->omitNetworkingCxxModules) {
|
|
559
543
|
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
560
544
|
m_innerInstance,
|
|
561
|
-
Microsoft::React::
|
|
562
|
-
[transitionalProps]() { return Microsoft::React::
|
|
545
|
+
Microsoft::React::GetWebSocketModuleName(),
|
|
546
|
+
[transitionalProps]() { return Microsoft::React::CreateWebSocketModule(transitionalProps); },
|
|
563
547
|
nativeQueue));
|
|
564
548
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
549
|
+
// Use in case the host app provides its a non-Blob-compatilbe HTTP module.
|
|
550
|
+
if (!Microsoft::React::GetRuntimeOptionBool("Blob.DisableModule")) {
|
|
551
|
+
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
552
|
+
m_innerInstance,
|
|
553
|
+
Microsoft::React::GetHttpModuleName(),
|
|
554
|
+
[transitionalProps]() { return Microsoft::React::CreateHttpModule(transitionalProps); },
|
|
555
|
+
nativeQueue));
|
|
556
|
+
|
|
557
|
+
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
558
|
+
m_innerInstance,
|
|
559
|
+
Microsoft::React::GetBlobModuleName(),
|
|
560
|
+
[transitionalProps]() { return Microsoft::React::CreateBlobModule(transitionalProps); },
|
|
561
|
+
nativeQueue));
|
|
562
|
+
|
|
563
|
+
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
564
|
+
m_innerInstance,
|
|
565
|
+
Microsoft::React::GetFileReaderModuleName(),
|
|
566
|
+
[transitionalProps]() { return Microsoft::React::CreateFileReaderModule(transitionalProps); },
|
|
567
|
+
nativeQueue));
|
|
568
|
+
}
|
|
570
569
|
}
|
|
571
570
|
|
|
572
571
|
modules.push_back(std::make_unique<CxxNativeModule>(
|