react-native-windows 0.72.7 → 0.72.8
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.
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
#include <tuple>
|
|
85
85
|
#include "ChakraRuntimeHolder.h"
|
|
86
86
|
|
|
87
|
+
#include <CppRuntimeOptions.h>
|
|
87
88
|
#include <CreateModules.h>
|
|
88
89
|
#include <Utils/Helpers.h>
|
|
89
90
|
#include "CrashManager.h"
|
|
@@ -392,15 +393,17 @@ void ReactInstanceWin::LoadModules(
|
|
|
392
393
|
L"Timing", winrt::Microsoft::ReactNative::MakeTurboModuleProvider<::Microsoft::ReactNative::Timing>());
|
|
393
394
|
#endif
|
|
394
395
|
|
|
395
|
-
registerTurboModule(
|
|
396
|
+
registerTurboModule(
|
|
397
|
+
::Microsoft::React::GetWebSocketTurboModuleName(), ::Microsoft::React::GetWebSocketModuleProvider());
|
|
396
398
|
|
|
397
|
-
|
|
399
|
+
if (!Microsoft::React::GetRuntimeOptionBool("Blob.DisableModule")) {
|
|
400
|
+
registerTurboModule(::Microsoft::React::GetHttpTurboModuleName(), ::Microsoft::React::GetHttpModuleProvider());
|
|
398
401
|
|
|
399
|
-
|
|
400
|
-
::Microsoft::React::GetFileReaderTurboModuleName(), ::Microsoft::React::GetFileReaderModuleProvider());
|
|
402
|
+
registerTurboModule(::Microsoft::React::GetBlobTurboModuleName(), ::Microsoft::React::GetBlobModuleProvider());
|
|
401
403
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
+
registerTurboModule(
|
|
405
|
+
::Microsoft::React::GetFileReaderTurboModuleName(), ::Microsoft::React::GetFileReaderModuleProvider());
|
|
406
|
+
}
|
|
404
407
|
}
|
|
405
408
|
|
|
406
409
|
//! Initialize() is called from the native queue.
|
|
@@ -550,6 +553,9 @@ void ReactInstanceWin::Initialize() noexcept {
|
|
|
550
553
|
// We need to keep the instance wrapper alive as its destruction shuts down the native queue.
|
|
551
554
|
m_options.TurboModuleProvider->SetReactContext(
|
|
552
555
|
winrt::make<implementation::ReactContext>(Mso::Copy(m_reactContext)));
|
|
556
|
+
auto omitNetCxxPropName = ReactPropertyBagHelper::GetName(nullptr, L"OmitNetworkingCxxModules");
|
|
557
|
+
auto omitNetCxxPropValue = m_options.Properties.Get(omitNetCxxPropName);
|
|
558
|
+
devSettings->omitNetworkingCxxModules = winrt::unbox_value_or(omitNetCxxPropValue, false);
|
|
553
559
|
auto bundleRootPath = devSettings->bundleRootPath;
|
|
554
560
|
auto instanceWrapper = facebook::react::CreateReactInstance(
|
|
555
561
|
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.72.
|
|
13
|
+
<ReactNativeWindowsVersion>0.72.8</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
15
|
<ReactNativeWindowsMinor>72</ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
16
|
+
<ReactNativeWindowsPatch>8</ReactNativeWindowsPatch>
|
|
17
17
|
<ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
18
|
+
<ReactNativeWindowsCommitId>cf39c805b2e779356853f2a65b7de12df3ec035c</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>(
|