react-native-windows 0.82.1 → 0.83.0-preview.0
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/.flowconfig +2 -7
- package/Libraries/Animated/components/AnimatedFlatList.js +5 -3
- package/Libraries/Animated/components/AnimatedImage.js +4 -3
- package/Libraries/Animated/components/AnimatedSectionList.js +2 -2
- package/Libraries/Animated/components/AnimatedText.js +7 -3
- package/Libraries/Animated/components/AnimatedView.js +3 -2
- package/Libraries/Animated/createAnimatedComponent.js +24 -12
- package/Libraries/Animated/nodes/AnimatedColor.js +26 -10
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +43 -15
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.windows.js +43 -15
- package/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +2 -2
- package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.d.ts +2 -2
- package/Libraries/Components/Glyph/Glyph.js +4 -1
- package/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.d.ts +2 -2
- package/Libraries/Components/RefreshControl/RefreshControl.d.ts +3 -3
- package/Libraries/Components/SafeAreaView/SafeAreaView.d.ts +2 -2
- package/Libraries/Components/ScrollView/ScrollView.js +1 -0
- package/Libraries/Components/ScrollView/ScrollView.windows.js +1 -0
- package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +6 -6
- package/Libraries/Components/Switch/Switch.d.ts +2 -2
- package/Libraries/Components/Switch/Switch.windows.js +1 -1
- package/Libraries/Components/TextInput/TextInput.d.ts +2 -5
- package/Libraries/Components/TextInput/TextInput.js +6 -0
- package/Libraries/Components/TextInput/TextInput.windows.js +6 -0
- package/Libraries/Components/Touchable/TouchableBounce.js +7 -7
- package/Libraries/Components/Touchable/TouchableBounce.windows.js +7 -7
- package/Libraries/Components/Touchable/TouchableWithoutFeedback.windows.js +1 -1
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +19 -1
- package/Libraries/Components/View/View.d.ts +2 -2
- package/Libraries/Components/View/View.windows.js +0 -1
- package/Libraries/Components/View/ViewNativeComponent.js +13 -1
- package/Libraries/Core/ReactNativeVersion.js +3 -3
- package/Libraries/Core/setUpPerformance.js +2 -0
- package/Libraries/Debugging/DebuggingOverlay.js +14 -14
- package/Libraries/Debugging/DebuggingOverlayRegistry.js +8 -2
- package/Libraries/EventEmitter/RCTDeviceEventEmitter.js +5 -2
- package/Libraries/Image/Image.d.ts +3 -3
- package/Libraries/Image/ImageInjection.js +3 -6
- package/Libraries/Image/ImageTypes.flow.js +3 -7
- package/Libraries/Lists/FlatList.js +8 -8
- package/Libraries/Lists/SectionList.d.ts +5 -1
- package/Libraries/Lists/ViewabilityHelper.js +1 -1
- package/Libraries/Lists/VirtualizedList.js +1 -0
- package/Libraries/LogBox/UI/AnsiHighlight.js +4 -1
- package/Libraries/NativeComponent/BaseViewConfig.android.js +11 -2
- package/Libraries/NativeComponent/NativeComponentRegistry.d.ts +98 -0
- package/Libraries/NativeComponent/NativeComponentRegistry.js +2 -0
- package/Libraries/NativeComponent/NativeComponentRegistryUnstable.js +3 -1
- package/Libraries/NativeComponent/ViewConfigIgnore.windows.js +45 -0
- package/Libraries/Network/RCTNetworking.android.js +3 -1
- package/Libraries/Network/RCTNetworking.ios.js +3 -0
- package/Libraries/Network/RCTNetworking.windows.js +3 -0
- package/Libraries/Network/XMLHttpRequest.js +1 -41
- package/Libraries/Pressability/usePressability.js +14 -3
- package/Libraries/ReactNative/PaperUIManager.windows.js +3 -3
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +20 -82
- package/Libraries/ReactNative/getNativeComponentAttributes.js +12 -0
- package/Libraries/Renderer/implementations/ReactFabric-dev.js +6759 -4478
- package/Libraries/Renderer/implementations/ReactFabric-prod.js +3169 -3119
- package/Libraries/Renderer/implementations/ReactFabric-profiling.js +4732 -3535
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +6646 -4070
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +3136 -2825
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +4761 -3312
- package/Libraries/Renderer/shims/ReactNative.js +3 -1
- package/Libraries/Renderer/shims/ReactNativeTypes.js +2 -1
- package/Libraries/Renderer/shims/ReactNativeTypes.windows.js +2 -1
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -1
- package/Libraries/StyleSheet/StyleSheetTypes.js +44 -0
- package/Libraries/StyleSheet/processBackgroundPosition.js +284 -0
- package/Libraries/StyleSheet/processBackgroundRepeat.js +105 -0
- package/Libraries/StyleSheet/processBackgroundSize.js +104 -0
- package/Libraries/Text/Text.d.ts +2 -2
- package/Libraries/Text/TextNativeComponent.js +10 -0
- package/Libraries/TurboModule/TurboModuleRegistry.js +3 -9
- package/Libraries/Utilities/DevLoadingView.js +14 -6
- package/Libraries/Utilities/HMRClient.js +13 -5
- package/Microsoft.ReactNative/Base/CxxReactIncludes.h +11 -0
- package/Microsoft.ReactNative/CompositionComponentView.idl +2 -0
- package/Microsoft.ReactNative/CompositionHwndHost.idl +1 -0
- package/Microsoft.ReactNative/Fabric/ComponentView.cpp +1 -1
- package/Microsoft.ReactNative/Fabric/ComponentView.h +1 -1
- package/Microsoft.ReactNative/Fabric/Composition/CompositionHwndHost.cpp +10 -40
- package/Microsoft.ReactNative/Fabric/Composition/CompositionViewComponentView.cpp +3 -80
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.cpp +45 -12
- package/Microsoft.ReactNative/Fabric/Composition/ContentIslandComponentView.h +8 -0
- package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +61 -74
- package/Microsoft.ReactNative/Fabric/Composition/ParagraphComponentView.h +4 -0
- package/Microsoft.ReactNative/Fabric/Composition/ReactCompositionViewComponentBuilder.h +1 -0
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +4 -3
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +2 -1
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeWindow.cpp +245 -0
- package/Microsoft.ReactNative/Fabric/Composition/ReactNativeWindow.h +80 -0
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentDescriptor.h +20 -36
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.cpp +70 -49
- package/Microsoft.ReactNative/Fabric/Composition/TextInput/WindowsTextInputComponentView.h +4 -1
- package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.cpp +5 -0
- package/Microsoft.ReactNative/Fabric/platform/react/renderer/textlayoutmanager/WindowsTextLayoutManager.cpp +7 -2
- package/Microsoft.ReactNative/IReactCompositionViewComponentBuilder.idl +1 -0
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +1 -1
- package/Microsoft.ReactNative/Modules/ImageViewManagerModule.cpp +1 -1
- package/Microsoft.ReactNative/Modules/LogBoxModule.cpp +20 -94
- package/Microsoft.ReactNative/Modules/LogBoxModule.h +1 -3
- package/Microsoft.ReactNative/Pch/pch.h +2 -0
- package/Microsoft.ReactNative/ReactHost/CrashManager.cpp +5 -0
- package/Microsoft.ReactNative/ReactHost/ReactNativeHeaders.h +1 -0
- package/Microsoft.ReactNative/ReactNativeAppBuilder.cpp +0 -41
- package/Microsoft.ReactNative/ReactNativeAppBuilder.idl +0 -11
- package/Microsoft.ReactNative/ReactNativeIsland.idl +2 -3
- package/Microsoft.ReactNative/ReactNativeWin32App.cpp +31 -101
- package/Microsoft.ReactNative/ReactNativeWin32App.h +2 -13
- package/Microsoft.ReactNative/ReactNativeWindow.idl +44 -0
- package/Microsoft.ReactNative.Cxx/AutoDraw.h +9 -1
- package/Microsoft.ReactNative.Cxx/ReactCommon/CallInvoker.h +13 -16
- package/Microsoft.ReactNative.Cxx/ReactCommon/TurboModule.h +24 -36
- package/Microsoft.ReactNative.Cxx/ReactCommon/TurboModuleUtils.h +5 -8
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/AString.h +8 -6
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Array.h +32 -49
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Base.h +27 -76
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Bool.h +4 -2
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/CallbackWrapper.h +19 -18
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Class.h +25 -48
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Convert.h +38 -31
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Error.h +11 -6
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/EventEmitter.h +47 -45
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Function.h +69 -89
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/HighResTimeStamp.h +8 -8
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/LongLivedObject.h +6 -6
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Number.h +16 -8
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Object.h +17 -24
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Promise.h +17 -17
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/bridging/Value.h +20 -29
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/debug/react_native_assert.h +2 -7
- package/Microsoft.ReactNative.Cxx/ReactCommon/react/timing/primitives.h +127 -115
- package/PropertySheets/External/Microsoft.ReactNative.Composition.CppLib.props +10 -0
- package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppLib.props +10 -0
- package/PropertySheets/Generated/PackageVersion.g.props +5 -5
- package/PropertySheets/Warnings.props +2 -1
- package/ReactCommon/ReactCommon.vcxproj +21 -12
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/CxxNativeModule.cpp +2 -2
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/Instance.cpp +381 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.cpp +49 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSIndexedRAMBundle.cpp +145 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/MethodCall.cpp +100 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/ModuleRegistry.cpp +256 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/NativeToJsBridge.cpp +13 -4
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/RAMBundleRegistry.cpp +93 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/ReactMarker.cpp +149 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/TraceSection.h +25 -35
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/test/testlib.cpp +86 -67
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsiexecutor/jsireact/JSIExecutor.cpp +629 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsiexecutor/jsireact/JSINativeModules.cpp +123 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.cpp +84 -68
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.h +31 -35
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/Utf8.h +4 -5
- package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/network/HttpUtils.cpp +2 -1
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/core/ReactCommon/TurboModule.h +24 -36
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/dom/NativeDOM.h +28 -66
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/nativemodule/webperformance/NativePerformance.cpp +414 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp +3 -3
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/image/conversions.h +8 -4
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/text/ParagraphShadowNode.cpp +19 -16
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/text/platform/android/react/renderer/components/text/ParagraphState.h +8 -9
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/AccessibilityPrimitives.h +25 -95
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/accessibilityPropsConversions.h +85 -42
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/EventDispatcher.cpp +81 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/EventQueueProcessor.cpp +140 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/imagemanager/primitives.h +25 -31
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/uimanager/UIManager.cpp +746 -0
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +702 -0
- package/Scripts/Tfs/Layout-Desktop-Headers.ps1 +1 -15
- package/Scripts/creaternwapp.cmd +1 -1
- package/Scripts/perf/compare-results.js +357 -0
- package/Scripts/perf/create-perf-test.js +343 -0
- package/Scripts/perf/post-pr-comment.js +210 -0
- package/Shared/Hermes/HermesRuntimeTargetDelegate.cpp +8 -0
- package/Shared/Hermes/HermesRuntimeTargetDelegate.h +3 -0
- package/Shared/Shared.vcxitems +24 -12
- package/Shared/Shared.vcxitems.filters +11 -3
- package/codegen/NativeIntersectionObserverSpec.g.h +2 -0
- package/codegen/NativeNetworkingIOSSpec.g.h +2 -0
- package/codegen/NativePerformanceSpec.g.h +6 -0
- package/codegen/NativeReactNativeFeatureFlagsSpec.g.h +229 -139
- package/codegen/react/components/rnwcore/ActivityIndicatorView.g.h +2 -1
- package/codegen/react/components/rnwcore/AndroidDrawerLayout.g.h +42 -25
- package/codegen/react/components/rnwcore/AndroidHorizontalScrollContentView.g.h +2 -1
- package/codegen/react/components/rnwcore/AndroidProgressBar.g.h +2 -1
- package/codegen/react/components/rnwcore/AndroidSwipeRefreshLayout.g.h +11 -6
- package/codegen/react/components/rnwcore/AndroidSwitch.g.h +11 -6
- package/codegen/react/components/rnwcore/DebuggingOverlay.g.h +1 -0
- package/codegen/react/components/rnwcore/InputAccessory.g.h +2 -1
- package/codegen/react/components/rnwcore/ModalHostView.g.h +40 -23
- package/codegen/react/components/rnwcore/Props.cpp +6 -1
- package/codegen/react/components/rnwcore/Props.h +1 -0
- package/codegen/react/components/rnwcore/PullToRefreshView.g.h +11 -6
- package/codegen/react/components/rnwcore/SafeAreaView.g.h +1 -0
- package/codegen/react/components/rnwcore/Switch.g.h +11 -6
- package/codegen/react/components/rnwcore/UnimplementedNativeView.g.h +2 -1
- package/codegen/react/components/rnwcore/VirtualView.g.h +41 -8
- package/codegen/react/components/rnwcore/VirtualViewExperimental.g.h +45 -8
- package/codegen/rnwcoreJSI.h +3973 -6059
- package/index.js +6 -0
- package/index.windows.js +6 -0
- package/jest/mockComponent.js +6 -6
- package/jest/setup.js +15 -10
- package/package.json +27 -27
- package/src/private/components/virtualview/VirtualView.js +22 -27
- package/src/private/components/virtualview/VirtualViewExperimentalNativeComponent.js +6 -0
- package/src/private/featureflags/ReactNativeFeatureFlags.js +100 -19
- package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +18 -3
- package/src/private/setup/setUpDefaultReactNativeEnvironment.js +6 -0
- package/src/private/specs_DEPRECATED/components/SwitchNativeComponent.js +1 -1
- package/src/private/specs_DEPRECATED/modules/NativeNetworkingIOS.js +1 -0
- package/src/private/webapis/dom/nodes/ReactNativeElement.js +12 -2
- package/src/private/webapis/intersectionobserver/IntersectionObserver.js +76 -15
- package/src/private/webapis/intersectionobserver/internals/IntersectionObserverManager.js +1 -0
- package/src/private/webapis/intersectionobserver/specs/NativeIntersectionObserver.js +1 -0
- package/src/private/webapis/performance/ResourceTiming.js +31 -4
- package/src/private/webapis/performance/internals/RawPerformanceEntry.js +4 -1
- package/src/private/webapis/performance/specs/NativePerformance.js +3 -0
- package/stubs/double-conversion/double-conversion.h +5 -0
- package/templates/cpp-app/template.config.js +1 -1
- package/templates/cpp-app/windows/MyApp/MyApp.vcxproj +3 -1
- package/templates/cpp-lib/template.config.js +1 -1
- package/templates/cpp-lib/windows/MyLib/MyLib.vcxproj +1 -1
- package/types/index.d.ts +1 -0
- package/types/public/ReactNativeTypes.d.ts +115 -2
- package/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +0 -152
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/components/view/conversions.h +0 -1574
- package/ReactCommon/TEMP_UntilReactCommonUpdate/react/renderer/core/ShadowNode.cpp +0 -528
- package/Scripts/OpenSSL.nuspec +0 -39
- package/Scripts/OpenSSL.targets +0 -36
- package/codegen/rnwcoreJSI-generated.cpp +0 -3470
|
@@ -23,157 +23,165 @@ class HighResTimeStamp;
|
|
|
23
23
|
*/
|
|
24
24
|
class HighResDuration {
|
|
25
25
|
friend class HighResTimeStamp;
|
|
26
|
-
friend constexpr HighResDuration operator-(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
friend constexpr HighResTimeStamp operator+(
|
|
30
|
-
const HighResTimeStamp& lhs,
|
|
31
|
-
const HighResDuration& rhs);
|
|
32
|
-
friend constexpr HighResTimeStamp operator-(
|
|
33
|
-
const HighResTimeStamp& lhs,
|
|
34
|
-
const HighResDuration& rhs);
|
|
26
|
+
friend constexpr HighResDuration operator-(const HighResTimeStamp &lhs, const HighResTimeStamp &rhs);
|
|
27
|
+
friend constexpr HighResTimeStamp operator+(const HighResTimeStamp &lhs, const HighResDuration &rhs);
|
|
28
|
+
friend constexpr HighResTimeStamp operator-(const HighResTimeStamp &lhs, const HighResDuration &rhs);
|
|
35
29
|
|
|
36
30
|
public:
|
|
37
|
-
constexpr HighResDuration()
|
|
38
|
-
: chronoDuration_(std::chrono::steady_clock::duration()) {}
|
|
31
|
+
constexpr HighResDuration() : chronoDuration_(std::chrono::steady_clock::duration()) {}
|
|
39
32
|
|
|
40
|
-
static constexpr HighResDuration zero()
|
|
33
|
+
static constexpr HighResDuration zero()
|
|
34
|
+
{
|
|
41
35
|
return HighResDuration(std::chrono::steady_clock::duration::zero());
|
|
42
36
|
}
|
|
43
37
|
|
|
44
|
-
static constexpr HighResDuration fromChrono(
|
|
45
|
-
|
|
38
|
+
static constexpr HighResDuration fromChrono(std::chrono::steady_clock::duration chronoDuration)
|
|
39
|
+
{
|
|
46
40
|
return HighResDuration(chronoDuration);
|
|
47
41
|
}
|
|
48
42
|
|
|
49
|
-
static constexpr HighResDuration fromNanoseconds(int64_t units)
|
|
43
|
+
static constexpr HighResDuration fromNanoseconds(int64_t units)
|
|
44
|
+
{
|
|
50
45
|
return HighResDuration(std::chrono::nanoseconds(units));
|
|
51
46
|
}
|
|
52
47
|
|
|
53
|
-
static constexpr HighResDuration fromMilliseconds(int64_t units)
|
|
48
|
+
static constexpr HighResDuration fromMilliseconds(int64_t units)
|
|
49
|
+
{
|
|
54
50
|
return HighResDuration(std::chrono::milliseconds(units));
|
|
55
51
|
}
|
|
56
52
|
|
|
57
|
-
constexpr int64_t toNanoseconds() const
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
constexpr int64_t toNanoseconds() const
|
|
54
|
+
{
|
|
55
|
+
return std::chrono::duration_cast<std::chrono::nanoseconds>(chronoDuration_).count();
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
// @see https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp
|
|
63
|
-
static constexpr HighResDuration fromDOMHighResTimeStamp(double units)
|
|
59
|
+
static constexpr HighResDuration fromDOMHighResTimeStamp(double units)
|
|
60
|
+
{
|
|
64
61
|
auto nanoseconds = static_cast<int64_t>(units * 1e6);
|
|
65
62
|
return fromNanoseconds(nanoseconds);
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
// @see https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp
|
|
69
|
-
constexpr double toDOMHighResTimeStamp() const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
.count();
|
|
66
|
+
constexpr double toDOMHighResTimeStamp() const
|
|
67
|
+
{
|
|
68
|
+
return static_cast<std::chrono::duration<double, std::milli>>(chronoDuration_).count();
|
|
73
69
|
}
|
|
74
70
|
|
|
75
|
-
constexpr HighResDuration operator+(const HighResDuration&
|
|
71
|
+
constexpr HighResDuration operator+(const HighResDuration &rhs) const
|
|
72
|
+
{
|
|
76
73
|
return HighResDuration(chronoDuration_ + rhs.chronoDuration_);
|
|
77
74
|
}
|
|
78
75
|
|
|
79
|
-
constexpr HighResDuration operator+(
|
|
80
|
-
|
|
76
|
+
constexpr HighResDuration operator+(const std::chrono::steady_clock::duration &rhs) const
|
|
77
|
+
{
|
|
81
78
|
return HighResDuration(chronoDuration_ + rhs);
|
|
82
79
|
}
|
|
83
80
|
|
|
84
|
-
constexpr HighResDuration operator-(const HighResDuration&
|
|
81
|
+
constexpr HighResDuration operator-(const HighResDuration &rhs) const
|
|
82
|
+
{
|
|
85
83
|
return HighResDuration(chronoDuration_ - rhs.chronoDuration_);
|
|
86
84
|
}
|
|
87
85
|
|
|
88
|
-
constexpr HighResDuration operator-(
|
|
89
|
-
|
|
86
|
+
constexpr HighResDuration operator-(const std::chrono::steady_clock::duration &rhs) const
|
|
87
|
+
{
|
|
90
88
|
return HighResDuration(chronoDuration_ - rhs);
|
|
91
89
|
}
|
|
92
90
|
|
|
93
|
-
constexpr HighResDuration&
|
|
91
|
+
constexpr HighResDuration &operator+=(const HighResDuration &rhs)
|
|
92
|
+
{
|
|
94
93
|
chronoDuration_ += rhs.chronoDuration_;
|
|
95
94
|
return *this;
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
constexpr HighResDuration&
|
|
99
|
-
|
|
97
|
+
constexpr HighResDuration &operator+=(const std::chrono::steady_clock::duration &rhs)
|
|
98
|
+
{
|
|
100
99
|
chronoDuration_ += rhs;
|
|
101
100
|
return *this;
|
|
102
101
|
}
|
|
103
102
|
|
|
104
|
-
constexpr HighResDuration&
|
|
103
|
+
constexpr HighResDuration &operator-=(const HighResDuration &rhs)
|
|
104
|
+
{
|
|
105
105
|
chronoDuration_ -= rhs.chronoDuration_;
|
|
106
106
|
return *this;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
constexpr HighResDuration&
|
|
110
|
-
|
|
109
|
+
constexpr HighResDuration &operator-=(const std::chrono::steady_clock::duration &rhs)
|
|
110
|
+
{
|
|
111
111
|
chronoDuration_ -= rhs;
|
|
112
112
|
return *this;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
constexpr bool operator==(const HighResDuration&
|
|
115
|
+
constexpr bool operator==(const HighResDuration &rhs) const
|
|
116
|
+
{
|
|
116
117
|
return chronoDuration_ == rhs.chronoDuration_;
|
|
117
118
|
}
|
|
118
119
|
|
|
119
|
-
constexpr bool operator==(
|
|
120
|
-
|
|
120
|
+
constexpr bool operator==(const std::chrono::steady_clock::duration &rhs) const
|
|
121
|
+
{
|
|
121
122
|
return chronoDuration_ == rhs;
|
|
122
123
|
}
|
|
123
124
|
|
|
124
|
-
constexpr bool operator!=(const HighResDuration&
|
|
125
|
+
constexpr bool operator!=(const HighResDuration &rhs) const
|
|
126
|
+
{
|
|
125
127
|
return chronoDuration_ != rhs.chronoDuration_;
|
|
126
128
|
}
|
|
127
129
|
|
|
128
|
-
constexpr bool operator!=(
|
|
129
|
-
|
|
130
|
+
constexpr bool operator!=(const std::chrono::steady_clock::duration &rhs) const
|
|
131
|
+
{
|
|
130
132
|
return chronoDuration_ != rhs;
|
|
131
133
|
}
|
|
132
134
|
|
|
133
|
-
constexpr bool operator<(const HighResDuration&
|
|
135
|
+
constexpr bool operator<(const HighResDuration &rhs) const
|
|
136
|
+
{
|
|
134
137
|
return chronoDuration_ < rhs.chronoDuration_;
|
|
135
138
|
}
|
|
136
139
|
|
|
137
|
-
constexpr bool operator<(
|
|
138
|
-
|
|
140
|
+
constexpr bool operator<(const std::chrono::steady_clock::duration &rhs) const
|
|
141
|
+
{
|
|
139
142
|
return chronoDuration_ < rhs;
|
|
140
143
|
}
|
|
141
144
|
|
|
142
|
-
constexpr bool operator<=(const HighResDuration&
|
|
145
|
+
constexpr bool operator<=(const HighResDuration &rhs) const
|
|
146
|
+
{
|
|
143
147
|
return chronoDuration_ <= rhs.chronoDuration_;
|
|
144
148
|
}
|
|
145
149
|
|
|
146
|
-
constexpr bool operator<=(
|
|
147
|
-
|
|
150
|
+
constexpr bool operator<=(const std::chrono::steady_clock::duration &rhs) const
|
|
151
|
+
{
|
|
148
152
|
return chronoDuration_ <= rhs;
|
|
149
153
|
}
|
|
150
154
|
|
|
151
|
-
constexpr bool operator>(const HighResDuration&
|
|
155
|
+
constexpr bool operator>(const HighResDuration &rhs) const
|
|
156
|
+
{
|
|
152
157
|
return chronoDuration_ > rhs.chronoDuration_;
|
|
153
158
|
}
|
|
154
159
|
|
|
155
|
-
constexpr bool operator>(
|
|
156
|
-
|
|
160
|
+
constexpr bool operator>(const std::chrono::steady_clock::duration &rhs) const
|
|
161
|
+
{
|
|
157
162
|
return chronoDuration_ > rhs;
|
|
158
163
|
}
|
|
159
164
|
|
|
160
|
-
constexpr bool operator>=(const HighResDuration&
|
|
165
|
+
constexpr bool operator>=(const HighResDuration &rhs) const
|
|
166
|
+
{
|
|
161
167
|
return chronoDuration_ >= rhs.chronoDuration_;
|
|
162
168
|
}
|
|
163
169
|
|
|
164
|
-
constexpr bool operator>=(
|
|
165
|
-
|
|
170
|
+
constexpr bool operator>=(const std::chrono::steady_clock::duration &rhs) const
|
|
171
|
+
{
|
|
166
172
|
return chronoDuration_ >= rhs;
|
|
167
173
|
}
|
|
168
174
|
|
|
169
|
-
constexpr operator std::chrono::steady_clock::duration() const
|
|
175
|
+
constexpr operator std::chrono::steady_clock::duration() const
|
|
176
|
+
{
|
|
170
177
|
return chronoDuration_;
|
|
171
178
|
}
|
|
172
179
|
|
|
173
180
|
private:
|
|
174
|
-
explicit constexpr HighResDuration(
|
|
175
|
-
|
|
176
|
-
|
|
181
|
+
explicit constexpr HighResDuration(std::chrono::steady_clock::duration chronoDuration)
|
|
182
|
+
: chronoDuration_(chronoDuration)
|
|
183
|
+
{
|
|
184
|
+
}
|
|
177
185
|
|
|
178
186
|
std::chrono::steady_clock::duration chronoDuration_;
|
|
179
187
|
};
|
|
@@ -184,154 +192,158 @@ class HighResDuration {
|
|
|
184
192
|
* @see __docs__/README.md for more information.
|
|
185
193
|
*/
|
|
186
194
|
class HighResTimeStamp {
|
|
187
|
-
friend constexpr HighResDuration operator-(
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
friend constexpr HighResTimeStamp operator+(
|
|
191
|
-
const HighResTimeStamp& lhs,
|
|
192
|
-
const HighResDuration& rhs);
|
|
193
|
-
friend constexpr HighResTimeStamp operator-(
|
|
194
|
-
const HighResTimeStamp& lhs,
|
|
195
|
-
const HighResDuration& rhs);
|
|
195
|
+
friend constexpr HighResDuration operator-(const HighResTimeStamp &lhs, const HighResTimeStamp &rhs);
|
|
196
|
+
friend constexpr HighResTimeStamp operator+(const HighResTimeStamp &lhs, const HighResDuration &rhs);
|
|
197
|
+
friend constexpr HighResTimeStamp operator-(const HighResTimeStamp &lhs, const HighResDuration &rhs);
|
|
196
198
|
|
|
197
199
|
public:
|
|
198
200
|
HighResTimeStamp() noexcept : chronoTimePoint_(chronoNow()) {}
|
|
199
201
|
|
|
200
|
-
static HighResTimeStamp now() noexcept
|
|
202
|
+
static HighResTimeStamp now() noexcept
|
|
203
|
+
{
|
|
201
204
|
return HighResTimeStamp(chronoNow());
|
|
202
205
|
}
|
|
203
206
|
|
|
204
|
-
static HighResDuration unsafeOriginFromUnixTimeStamp() noexcept
|
|
207
|
+
static HighResDuration unsafeOriginFromUnixTimeStamp() noexcept
|
|
208
|
+
{
|
|
205
209
|
static auto origin = computeUnsafeOriginFromUnixTimeStamp();
|
|
206
210
|
return origin;
|
|
207
211
|
}
|
|
208
212
|
|
|
209
|
-
static constexpr HighResTimeStamp min() noexcept
|
|
213
|
+
static constexpr HighResTimeStamp min() noexcept
|
|
214
|
+
{
|
|
210
215
|
return HighResTimeStamp(std::chrono::steady_clock::time_point::min());
|
|
211
216
|
}
|
|
212
217
|
|
|
213
|
-
static constexpr HighResTimeStamp max() noexcept
|
|
218
|
+
static constexpr HighResTimeStamp max() noexcept
|
|
219
|
+
{
|
|
214
220
|
return HighResTimeStamp(std::chrono::steady_clock::time_point::max());
|
|
215
221
|
}
|
|
216
222
|
|
|
217
223
|
// @see https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp
|
|
218
|
-
static constexpr HighResTimeStamp fromDOMHighResTimeStamp(double units)
|
|
224
|
+
static constexpr HighResTimeStamp fromDOMHighResTimeStamp(double units)
|
|
225
|
+
{
|
|
219
226
|
auto nanoseconds = static_cast<int64_t>(units * 1e6);
|
|
220
|
-
return HighResTimeStamp(std::chrono::steady_clock::time_point(
|
|
221
|
-
std::chrono::nanoseconds(nanoseconds)));
|
|
227
|
+
return HighResTimeStamp(std::chrono::steady_clock::time_point(std::chrono::nanoseconds(nanoseconds)));
|
|
222
228
|
}
|
|
223
229
|
|
|
224
230
|
// @see https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp
|
|
225
|
-
constexpr double toDOMHighResTimeStamp() const
|
|
226
|
-
|
|
227
|
-
|
|
231
|
+
constexpr double toDOMHighResTimeStamp() const
|
|
232
|
+
{
|
|
233
|
+
return HighResDuration(chronoTimePoint_.time_since_epoch()).toDOMHighResTimeStamp();
|
|
228
234
|
}
|
|
229
235
|
|
|
230
236
|
// This method is expected to be used only when converting time stamps from
|
|
231
237
|
// external systems.
|
|
232
238
|
static constexpr HighResTimeStamp fromChronoSteadyClockTimePoint(
|
|
233
|
-
std::chrono::steady_clock::time_point chronoTimePoint)
|
|
239
|
+
std::chrono::steady_clock::time_point chronoTimePoint)
|
|
240
|
+
{
|
|
234
241
|
return HighResTimeStamp(chronoTimePoint);
|
|
235
242
|
}
|
|
236
243
|
|
|
237
244
|
#ifdef REACT_NATIVE_DEBUG
|
|
238
|
-
static void setTimeStampProviderForTesting(
|
|
239
|
-
|
|
240
|
-
timeStampProvider) {
|
|
245
|
+
static void setTimeStampProviderForTesting(std::function<std::chrono::steady_clock::time_point()> &&timeStampProvider)
|
|
246
|
+
{
|
|
241
247
|
getTimeStampProvider() = std::move(timeStampProvider);
|
|
242
248
|
}
|
|
243
249
|
#endif
|
|
244
250
|
|
|
245
251
|
// This method is provided for convenience, if you need to convert
|
|
246
252
|
// HighResTimeStamp to some common epoch with time stamps from other sources.
|
|
247
|
-
constexpr std::chrono::steady_clock::time_point toChronoSteadyClockTimePoint()
|
|
248
|
-
|
|
253
|
+
constexpr std::chrono::steady_clock::time_point toChronoSteadyClockTimePoint() const
|
|
254
|
+
{
|
|
249
255
|
return chronoTimePoint_;
|
|
250
256
|
}
|
|
251
257
|
|
|
252
|
-
constexpr bool operator==(const HighResTimeStamp&
|
|
258
|
+
constexpr bool operator==(const HighResTimeStamp &rhs) const
|
|
259
|
+
{
|
|
253
260
|
return chronoTimePoint_ == rhs.chronoTimePoint_;
|
|
254
261
|
}
|
|
255
262
|
|
|
256
|
-
constexpr bool operator!=(const HighResTimeStamp&
|
|
263
|
+
constexpr bool operator!=(const HighResTimeStamp &rhs) const
|
|
264
|
+
{
|
|
257
265
|
return chronoTimePoint_ != rhs.chronoTimePoint_;
|
|
258
266
|
}
|
|
259
267
|
|
|
260
|
-
constexpr bool operator<(const HighResTimeStamp&
|
|
268
|
+
constexpr bool operator<(const HighResTimeStamp &rhs) const
|
|
269
|
+
{
|
|
261
270
|
return chronoTimePoint_ < rhs.chronoTimePoint_;
|
|
262
271
|
}
|
|
263
272
|
|
|
264
|
-
constexpr bool operator<=(const HighResTimeStamp&
|
|
273
|
+
constexpr bool operator<=(const HighResTimeStamp &rhs) const
|
|
274
|
+
{
|
|
265
275
|
return chronoTimePoint_ <= rhs.chronoTimePoint_;
|
|
266
276
|
}
|
|
267
277
|
|
|
268
|
-
constexpr bool operator>(const HighResTimeStamp&
|
|
278
|
+
constexpr bool operator>(const HighResTimeStamp &rhs) const
|
|
279
|
+
{
|
|
269
280
|
return chronoTimePoint_ > rhs.chronoTimePoint_;
|
|
270
281
|
}
|
|
271
282
|
|
|
272
|
-
constexpr bool operator>=(const HighResTimeStamp&
|
|
283
|
+
constexpr bool operator>=(const HighResTimeStamp &rhs) const
|
|
284
|
+
{
|
|
273
285
|
return chronoTimePoint_ >= rhs.chronoTimePoint_;
|
|
274
286
|
}
|
|
275
287
|
|
|
276
|
-
constexpr HighResTimeStamp&
|
|
288
|
+
constexpr HighResTimeStamp &operator+=(const HighResDuration &rhs)
|
|
289
|
+
{
|
|
277
290
|
chronoTimePoint_ += rhs.chronoDuration_;
|
|
278
291
|
return *this;
|
|
279
292
|
}
|
|
280
293
|
|
|
281
|
-
constexpr HighResTimeStamp&
|
|
294
|
+
constexpr HighResTimeStamp &operator-=(const HighResDuration &rhs)
|
|
295
|
+
{
|
|
282
296
|
chronoTimePoint_ -= rhs.chronoDuration_;
|
|
283
297
|
return *this;
|
|
284
298
|
}
|
|
285
299
|
|
|
286
300
|
private:
|
|
287
|
-
explicit constexpr HighResTimeStamp(
|
|
288
|
-
|
|
289
|
-
|
|
301
|
+
explicit constexpr HighResTimeStamp(std::chrono::steady_clock::time_point chronoTimePoint)
|
|
302
|
+
: chronoTimePoint_(chronoTimePoint)
|
|
303
|
+
{
|
|
304
|
+
}
|
|
290
305
|
|
|
291
306
|
std::chrono::steady_clock::time_point chronoTimePoint_;
|
|
292
307
|
|
|
293
|
-
static HighResDuration computeUnsafeOriginFromUnixTimeStamp() noexcept
|
|
308
|
+
static HighResDuration computeUnsafeOriginFromUnixTimeStamp() noexcept
|
|
309
|
+
{
|
|
294
310
|
auto systemNow = std::chrono::system_clock::now();
|
|
295
311
|
auto steadyNow = std::chrono::steady_clock::now();
|
|
296
|
-
return HighResDuration(
|
|
297
|
-
systemNow.time_since_epoch() - steadyNow.time_since_epoch());
|
|
312
|
+
return HighResDuration(systemNow.time_since_epoch() - steadyNow.time_since_epoch());
|
|
298
313
|
}
|
|
299
314
|
|
|
300
315
|
#ifdef REACT_NATIVE_DEBUG
|
|
301
|
-
static std::function<std::chrono::steady_clock::time_point()
|
|
302
|
-
|
|
303
|
-
static std::function<std::chrono::steady_clock::time_point()>
|
|
304
|
-
timeStampProvider = nullptr;
|
|
316
|
+
static std::function<std::chrono::steady_clock::time_point()> &getTimeStampProvider()
|
|
317
|
+
{
|
|
318
|
+
static std::function<std::chrono::steady_clock::time_point()> timeStampProvider = nullptr;
|
|
305
319
|
return timeStampProvider;
|
|
306
320
|
}
|
|
307
321
|
|
|
308
|
-
static std::chrono::steady_clock::time_point chronoNow()
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
322
|
+
static std::chrono::steady_clock::time_point chronoNow()
|
|
323
|
+
{
|
|
324
|
+
auto &timeStampProvider = getTimeStampProvider();
|
|
325
|
+
return timeStampProvider != nullptr ? timeStampProvider() : std::chrono::steady_clock::now();
|
|
312
326
|
}
|
|
313
327
|
#else
|
|
314
|
-
inline static std::chrono::steady_clock::time_point chronoNow()
|
|
328
|
+
inline static std::chrono::steady_clock::time_point chronoNow()
|
|
329
|
+
{
|
|
315
330
|
return std::chrono::steady_clock::now();
|
|
316
331
|
}
|
|
317
332
|
#endif
|
|
318
333
|
};
|
|
319
334
|
|
|
320
|
-
inline constexpr HighResDuration operator-(
|
|
321
|
-
|
|
322
|
-
const HighResTimeStamp& rhs) {
|
|
335
|
+
inline constexpr HighResDuration operator-(const HighResTimeStamp &lhs, const HighResTimeStamp &rhs)
|
|
336
|
+
{
|
|
323
337
|
return HighResDuration(lhs.chronoTimePoint_ - rhs.chronoTimePoint_);
|
|
324
338
|
}
|
|
325
339
|
|
|
326
|
-
inline constexpr HighResTimeStamp operator+(
|
|
327
|
-
|
|
328
|
-
const HighResDuration& rhs) {
|
|
340
|
+
inline constexpr HighResTimeStamp operator+(const HighResTimeStamp &lhs, const HighResDuration &rhs)
|
|
341
|
+
{
|
|
329
342
|
return HighResTimeStamp(lhs.chronoTimePoint_ + rhs.chronoDuration_);
|
|
330
343
|
}
|
|
331
344
|
|
|
332
|
-
inline constexpr HighResTimeStamp operator-(
|
|
333
|
-
|
|
334
|
-
const HighResDuration& rhs) {
|
|
345
|
+
inline constexpr HighResTimeStamp operator-(const HighResTimeStamp &lhs, const HighResDuration &rhs)
|
|
346
|
+
{
|
|
335
347
|
return HighResTimeStamp(lhs.chronoTimePoint_ - rhs.chronoDuration_);
|
|
336
348
|
}
|
|
337
349
|
|
|
@@ -13,6 +13,16 @@
|
|
|
13
13
|
<Warning Text="Property `RnwSdkDefaultsSet` was not set. Please ensure your project imports 'Microsoft.ReactNative.WindowsSdk.Default.props' before importing this prop sheet." />
|
|
14
14
|
</Target>
|
|
15
15
|
|
|
16
|
+
<!--
|
|
17
|
+
Lib/module projects generate Windows Metadata. Explicitly set this to
|
|
18
|
+
prevent the CppWinRT NuGet target CppWinRTComputeGetResolvedWinMD from
|
|
19
|
+
trying to compute it, which can cause MSB4006 circular dependency errors
|
|
20
|
+
during parallel builds (see https://github.com/microsoft/cppwinrt/issues/950).
|
|
21
|
+
-->
|
|
22
|
+
<PropertyGroup Label="CppWinRT">
|
|
23
|
+
<CppWinRTGenerateWindowsMetadata Condition="'$(CppWinRTGenerateWindowsMetadata)' == ''">true</CppWinRTGenerateWindowsMetadata>
|
|
24
|
+
</PropertyGroup>
|
|
25
|
+
|
|
16
26
|
<!-- Import common props sheets common to all Composition projects. -->
|
|
17
27
|
<Import Project="$(MSBuildThisFileDirectory)Microsoft.ReactNative.Composition.Common.props" />
|
|
18
28
|
|
|
@@ -14,6 +14,16 @@
|
|
|
14
14
|
<Warning Text="Property `RnwSdkDefaultsSet` was not set. Please ensure your project imports 'Microsoft.ReactNative.WindowsSdk.Default.props' before importing this prop sheet." />
|
|
15
15
|
</Target>
|
|
16
16
|
|
|
17
|
+
<!--
|
|
18
|
+
Lib/module projects generate Windows Metadata. Explicitly set this to
|
|
19
|
+
prevent the CppWinRT NuGet target CppWinRTComputeGetResolvedWinMD from
|
|
20
|
+
trying to compute it, which can cause MSB4006 circular dependency errors
|
|
21
|
+
during parallel builds (see https://github.com/microsoft/cppwinrt/issues/950).
|
|
22
|
+
-->
|
|
23
|
+
<PropertyGroup Label="CppWinRT">
|
|
24
|
+
<CppWinRTGenerateWindowsMetadata Condition="'$(CppWinRTGenerateWindowsMetadata)' == ''">true</CppWinRTGenerateWindowsMetadata>
|
|
25
|
+
</PropertyGroup>
|
|
26
|
+
|
|
17
27
|
<!-- Import common props sheets common to all UWP projects. -->
|
|
18
28
|
<Import Project="$(MSBuildThisFileDirectory)Microsoft.ReactNative.Uwp.Common.props" />
|
|
19
29
|
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
-->
|
|
11
11
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
12
12
|
<PropertyGroup>
|
|
13
|
-
<ReactNativeWindowsVersion>0.
|
|
13
|
+
<ReactNativeWindowsVersion>0.0.0-canary.1037</ReactNativeWindowsVersion>
|
|
14
14
|
<ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
|
|
15
|
-
<ReactNativeWindowsMinor>
|
|
16
|
-
<ReactNativeWindowsPatch>
|
|
17
|
-
<ReactNativeWindowsCanary>
|
|
18
|
-
<ReactNativeWindowsCommitId>
|
|
15
|
+
<ReactNativeWindowsMinor>0</ReactNativeWindowsMinor>
|
|
16
|
+
<ReactNativeWindowsPatch>0</ReactNativeWindowsPatch>
|
|
17
|
+
<ReactNativeWindowsCanary>true</ReactNativeWindowsCanary>
|
|
18
|
+
<ReactNativeWindowsCommitId>d02a7c64b3d3528e4a0f622702921ba63bbeeb01</ReactNativeWindowsCommitId>
|
|
19
19
|
</PropertyGroup>
|
|
20
20
|
</Project>
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
4701; <!-- potentially uninitialized local variable used -->
|
|
25
25
|
4703; <!-- potentially uninitialized local pointer variable used -->
|
|
26
26
|
4789; <!-- destination of memory copy too small -->
|
|
27
|
-
4995 <!-- function marked as pragma deprecated -->
|
|
27
|
+
4995; <!-- function marked as pragma deprecated -->
|
|
28
|
+
4996 <!-- deprecated function (including std::) -->
|
|
28
29
|
</SDLMandatoryWarnings>
|
|
29
30
|
|
|
30
31
|
<!-- SDL RECOMMENDED WARNINGS (Strongly recommended to fix) -->
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
<ClInclude Include="$(ReactNativeDir)\ReactCommon\jsi\jsi\jsi.h" />
|
|
92
92
|
<CIInclude Include="$(ReactNativeDir)\ReactCommon\jsitooling\react\runtime\JSRuntimeFactory.h" />
|
|
93
93
|
<ClInclude Include="..\stubs\sys\mman.h" />
|
|
94
|
+
<ClInclude Include="..\stubs\sys\double-conversion.h" />
|
|
94
95
|
<ClInclude Include="..\stubs\sys\time.h" />
|
|
95
96
|
<ClInclude Include="$(ReactNativeDir)\ReactCommon\cxxreact\JSBigString.h" />
|
|
96
97
|
<ClInclude Include="$(ReactNativeDir)\ReactCommon\cxxreact\MessageQueueThread.h" />
|
|
@@ -109,7 +110,7 @@
|
|
|
109
110
|
<ClInclude Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\tracing\PerformanceTracer.h" />
|
|
110
111
|
<ClInclude Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\tracing\ProfileTreeNode.h" />
|
|
111
112
|
<ClInclude Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\tracing\TraceEventProfile.h" />
|
|
112
|
-
<ClInclude Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\tracing\
|
|
113
|
+
<ClInclude Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\tracing\NetworkHandler.h" />
|
|
113
114
|
<ClInclude Include="$(ReactNativeDir)\ReactCommon\logger\react_native_log.h" />
|
|
114
115
|
<ClInclude Include="$(YogaDir)\yoga\YGEnums.h" />
|
|
115
116
|
<ClInclude Include="$(YogaDir)\yoga\YGMacros.h" />
|
|
@@ -118,16 +119,16 @@
|
|
|
118
119
|
</ItemGroup>
|
|
119
120
|
<ItemGroup>
|
|
120
121
|
<!-- NEW ARCH: These files contain utility functions still used by New Architecture (with deprecated classes also present) -->
|
|
121
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\ReactMarker.cpp"
|
|
122
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\JSExecutor.cpp"
|
|
123
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\Instance.cpp"
|
|
124
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\NativeToJsBridge.cpp"
|
|
125
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\JSIndexedRAMBundle.cpp"
|
|
126
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\MethodCall.cpp"
|
|
127
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\RAMBundleRegistry.cpp"
|
|
128
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\ModuleRegistry.cpp"
|
|
129
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsiexecutor\jsireact\JSIExecutor.cpp"
|
|
130
|
-
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsiexecutor\jsireact\JSINativeModules.cpp"
|
|
122
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\ReactMarker.cpp" />
|
|
123
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\JSExecutor.cpp" />
|
|
124
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\Instance.cpp" />
|
|
125
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\NativeToJsBridge.cpp" />
|
|
126
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\JSIndexedRAMBundle.cpp" />
|
|
127
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\MethodCall.cpp" />
|
|
128
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\RAMBundleRegistry.cpp" />
|
|
129
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\cxxreact\ModuleRegistry.cpp" />
|
|
130
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsiexecutor\jsireact\JSIExecutor.cpp" />
|
|
131
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsiexecutor\jsireact\JSINativeModules.cpp" />
|
|
131
132
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsi\jsi\jsi.cpp" />
|
|
132
133
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsi\jsi\JSIDynamic.cpp" />
|
|
133
134
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\InspectorInterfaces.cpp" />
|
|
@@ -136,6 +137,7 @@
|
|
|
136
137
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\cdp\CdpJson.cpp" />
|
|
137
138
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\HostTarget.cpp" />
|
|
138
139
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\NetworkIOAgent.cpp" />
|
|
140
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\PerfMonitorV2.cpp" />
|
|
139
141
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\RuntimeAgent.cpp" />
|
|
140
142
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\TracingAgent.cpp" />
|
|
141
143
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\FallbackRuntimeAgentDelegate.cpp" />
|
|
@@ -144,6 +146,7 @@
|
|
|
144
146
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\tracing\RuntimeSamplingProfileTraceEventSerializer.cpp" />
|
|
145
147
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\tracing\PerformanceTracer.cpp" />
|
|
146
148
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\tracing\TraceEventSerializer.cpp" />
|
|
149
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\tracing\ConsoleTimeStamp.cpp" />
|
|
147
150
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsitooling\react\runtime\JSRuntimeFactory.cpp" />
|
|
148
151
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\logger\react_native_log.cpp" />
|
|
149
152
|
<CLCompile Include="$(ReactNativeDir)\ReactCommon\reactperflogger\fusebox\FuseboxTracer.cpp" />
|
|
@@ -166,6 +169,7 @@
|
|
|
166
169
|
<ClCompile Include="$(YogaDir)\yoga\debug\Log.cpp" />
|
|
167
170
|
<ClCompile Include="$(YogaDir)\yoga\node\LayoutResults.cpp" />
|
|
168
171
|
<ClCompile Include="$(YogaDir)\yoga\node\Node.cpp" />
|
|
172
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\utils\Uuid.cpp" />
|
|
169
173
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\core\Sealable.cpp" />
|
|
170
174
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\debug\DebugStringConvertible.cpp" />
|
|
171
175
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\debug\DebugStringConvertibleItem.cpp" />
|
|
@@ -173,13 +177,18 @@
|
|
|
173
177
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mounting\internal\sliceChildShadowNodeViewPairs.cpp" />
|
|
174
178
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mapbuffer\MapBuffer.cpp" />
|
|
175
179
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\mapbuffer\MapBufferBuilder.cpp" />
|
|
180
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\LinearGradient.cpp" />
|
|
181
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\RadialGradient.cpp" />
|
|
182
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\ValueUnit.cpp" />
|
|
183
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\graphics\DoubleConversions.cpp" />
|
|
176
184
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\telemetry\TransactionTelemetry.cpp" />
|
|
177
185
|
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\performance\timeline\PerformanceEntryReporter.cpp" />
|
|
178
186
|
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\performance\timeline\PerformanceObserverRegistry.cpp" />
|
|
179
187
|
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\performance\timeline\PerformanceEntryCircularBuffer.cpp" />
|
|
180
188
|
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\performance\timeline\PerformanceObserver.cpp" />
|
|
181
189
|
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\performance\timeline\PerformanceEntryKeyedBuffer.cpp" />
|
|
182
|
-
<
|
|
190
|
+
<CLCompile Include="$(ReactNativeDir)\ReactCommon\react\performance\cdpmetrics\CdpPerfIssuesReporter.cpp" />
|
|
191
|
+
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\network\NetworkHandler.cpp" />
|
|
183
192
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\network\BoundedRequestBuffer.cpp" />
|
|
184
193
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\network\CdpNetwork.cpp" />
|
|
185
194
|
<ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\network\HttpUtils.cpp" />
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
#include "CxxNativeModule.h"
|
|
9
9
|
|
|
10
|
-
#ifndef
|
|
10
|
+
#ifndef RCT_REMOVE_LEGACY_ARCH
|
|
11
11
|
|
|
12
12
|
#include "Instance.h"
|
|
13
13
|
|
|
@@ -256,4 +256,4 @@ void CxxNativeModule::lazyInit() {
|
|
|
256
256
|
|
|
257
257
|
} // namespace facebook::react
|
|
258
258
|
|
|
259
|
-
#endif //
|
|
259
|
+
#endif // RCT_REMOVE_LEGACY_ARCH
|