react-native-windows 0.72.6 → 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.
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +12 -6
- package/Microsoft.ReactNative.Managed/packages.lock.json +4 -73
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- package/Shared/DevSettings.h +3 -0
- package/Shared/OInstance.cpp +24 -25
- package/codegen/NativeAccessibilityInfoSpec.g.h +2 -1
- package/codegen/NativeAccessibilityManagerSpec.g.h +27 -16
- package/codegen/NativeActionSheetManagerSpec.g.h +42 -26
- package/codegen/NativeAlertManagerSpec.g.h +18 -12
- package/codegen/NativeAnimatedModuleSpec.g.h +17 -6
- package/codegen/NativeAnimatedTurboModuleSpec.g.h +17 -6
- package/codegen/NativeAnimationsDebugModuleSpec.g.h +2 -1
- package/codegen/NativeAppStateSpec.g.h +16 -5
- package/codegen/NativeAppThemeSpec.g.h +24 -13
- package/codegen/NativeAppearanceSpec.g.h +2 -1
- package/codegen/NativeBlobModuleSpec.g.h +10 -4
- package/codegen/NativeBugReportingSpec.g.h +2 -1
- package/codegen/NativeClipboardSpec.g.h +2 -1
- package/codegen/NativeDevLoadingViewSpec.g.h +2 -1
- package/codegen/NativeDevMenuSpec.g.h +2 -1
- package/codegen/NativeDevSettingsSpec.g.h +2 -1
- package/codegen/NativeDevSplitBundleLoaderSpec.g.h +2 -1
- package/codegen/NativeDevToolsSettingsManagerSpec.g.h +2 -1
- package/codegen/NativeDeviceEventManagerSpec.g.h +2 -1
- package/codegen/NativeDeviceInfoSpec.g.h +41 -20
- package/codegen/NativeDialogManagerAndroidSpec.g.h +26 -15
- package/codegen/NativeDialogManagerWindowsSpec.g.h +28 -17
- package/codegen/NativeExceptionsManagerSpec.g.h +27 -16
- package/codegen/NativeFileReaderModuleSpec.g.h +2 -1
- package/codegen/NativeFrameRateLoggerSpec.g.h +10 -4
- package/codegen/NativeHeadlessJsTaskSupportSpec.g.h +2 -1
- package/codegen/NativeI18nManagerSpec.g.h +11 -5
- package/codegen/NativeImageEditorSpec.g.h +37 -16
- package/codegen/NativeImageLoaderAndroidSpec.g.h +18 -7
- package/codegen/NativeImageLoaderIOSSpec.g.h +10 -4
- package/codegen/NativeImageStoreAndroidSpec.g.h +2 -1
- package/codegen/NativeImageStoreIOSSpec.g.h +16 -5
- package/codegen/NativeIntentAndroidSpec.g.h +2 -1
- package/codegen/NativeJSCHeapCaptureSpec.g.h +2 -1
- package/codegen/NativeJSCSamplingProfilerSpec.g.h +2 -1
- package/codegen/NativeKeyboardObserverSpec.g.h +2 -1
- package/codegen/NativeLinkingManagerSpec.g.h +2 -1
- package/codegen/NativeLogBoxSpec.g.h +2 -1
- package/codegen/NativeModalManagerSpec.g.h +2 -1
- package/codegen/NativeNetworkingAndroidSpec.g.h +2 -1
- package/codegen/NativeNetworkingIOSSpec.g.h +16 -10
- package/codegen/NativePerformanceObserverSpec.g.h +23 -12
- package/codegen/NativePerformanceSpec.g.h +12 -6
- package/codegen/NativePermissionsAndroidSpec.g.h +2 -1
- package/codegen/NativePlatformConstantsAndroidSpec.g.h +29 -18
- package/codegen/NativePlatformConstantsIOSSpec.g.h +24 -13
- package/codegen/NativePlatformConstantsWinSpec.g.h +21 -10
- package/codegen/NativePushNotificationManagerIOSSpec.g.h +36 -20
- package/codegen/NativeRedBoxSpec.g.h +2 -1
- package/codegen/NativeSampleTurboModuleSpec.g.h +11 -5
- package/codegen/NativeSegmentFetcherSpec.g.h +2 -1
- package/codegen/NativeSettingsManagerSpec.g.h +9 -3
- package/codegen/NativeShareModuleSpec.g.h +17 -6
- package/codegen/NativeSoundManagerSpec.g.h +2 -1
- package/codegen/NativeSourceCodeSpec.g.h +9 -3
- package/codegen/NativeStatusBarManagerAndroidSpec.g.h +10 -4
- package/codegen/NativeStatusBarManagerIOSSpec.g.h +17 -6
- package/codegen/NativeTimingSpec.g.h +2 -1
- package/codegen/NativeToastAndroidSpec.g.h +13 -7
- package/codegen/NativeUIManagerSpec.g.h +2 -1
- package/codegen/NativeVibrationSpec.g.h +2 -1
- package/codegen/NativeWebSocketModuleSpec.g.h +9 -3
- package/package.json +3 -3
|
@@ -8,21 +8,27 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(I18nManagerSpec_Constants)
|
|
17
16
|
struct I18nManagerSpec_Constants {
|
|
18
|
-
REACT_FIELD(isRTL)
|
|
19
17
|
bool isRTL;
|
|
20
|
-
REACT_FIELD(doLeftAndRightSwapInRTL)
|
|
21
18
|
bool doLeftAndRightSwapInRTL;
|
|
22
|
-
REACT_FIELD(localeIdentifier)
|
|
23
19
|
std::optional<std::string> localeIdentifier;
|
|
24
20
|
};
|
|
25
21
|
|
|
22
|
+
|
|
23
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(I18nManagerSpec_Constants*) noexcept {
|
|
24
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
25
|
+
{L"isRTL", &I18nManagerSpec_Constants::isRTL},
|
|
26
|
+
{L"doLeftAndRightSwapInRTL", &I18nManagerSpec_Constants::doLeftAndRightSwapInRTL},
|
|
27
|
+
{L"localeIdentifier", &I18nManagerSpec_Constants::localeIdentifier},
|
|
28
|
+
};
|
|
29
|
+
return fieldMap;
|
|
30
|
+
}
|
|
31
|
+
|
|
26
32
|
struct I18nManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
27
33
|
static constexpr auto constants = std::tuple{
|
|
28
34
|
TypedConstant<I18nManagerSpec_Constants>{0},
|
|
@@ -8,49 +8,70 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(ImageEditorSpec_Options_offset)
|
|
17
16
|
struct ImageEditorSpec_Options_offset {
|
|
18
|
-
REACT_FIELD(x)
|
|
19
17
|
double x;
|
|
20
|
-
REACT_FIELD(y)
|
|
21
18
|
double y;
|
|
22
19
|
};
|
|
23
20
|
|
|
24
|
-
REACT_STRUCT(ImageEditorSpec_Options_size)
|
|
25
21
|
struct ImageEditorSpec_Options_size {
|
|
26
|
-
REACT_FIELD(width)
|
|
27
22
|
double width;
|
|
28
|
-
REACT_FIELD(height)
|
|
29
23
|
double height;
|
|
30
24
|
};
|
|
31
25
|
|
|
32
|
-
REACT_STRUCT(ImageEditorSpec_Options_displaySize)
|
|
33
26
|
struct ImageEditorSpec_Options_displaySize {
|
|
34
|
-
REACT_FIELD(width)
|
|
35
27
|
double width;
|
|
36
|
-
REACT_FIELD(height)
|
|
37
28
|
double height;
|
|
38
29
|
};
|
|
39
30
|
|
|
40
|
-
REACT_STRUCT(ImageEditorSpec_Options)
|
|
41
31
|
struct ImageEditorSpec_Options {
|
|
42
|
-
REACT_FIELD(offset)
|
|
43
32
|
ImageEditorSpec_Options_offset offset;
|
|
44
|
-
REACT_FIELD(size)
|
|
45
33
|
ImageEditorSpec_Options_size size;
|
|
46
|
-
REACT_FIELD(displaySize)
|
|
47
34
|
std::optional<ImageEditorSpec_Options_displaySize> displaySize;
|
|
48
|
-
REACT_FIELD(resizeMode)
|
|
49
35
|
std::optional<std::string> resizeMode;
|
|
50
|
-
REACT_FIELD(allowExternalStorage)
|
|
51
36
|
std::optional<bool> allowExternalStorage;
|
|
52
37
|
};
|
|
53
38
|
|
|
39
|
+
|
|
40
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageEditorSpec_Options_offset*) noexcept {
|
|
41
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
42
|
+
{L"x", &ImageEditorSpec_Options_offset::x},
|
|
43
|
+
{L"y", &ImageEditorSpec_Options_offset::y},
|
|
44
|
+
};
|
|
45
|
+
return fieldMap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageEditorSpec_Options_size*) noexcept {
|
|
49
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
50
|
+
{L"width", &ImageEditorSpec_Options_size::width},
|
|
51
|
+
{L"height", &ImageEditorSpec_Options_size::height},
|
|
52
|
+
};
|
|
53
|
+
return fieldMap;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageEditorSpec_Options_displaySize*) noexcept {
|
|
57
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
58
|
+
{L"width", &ImageEditorSpec_Options_displaySize::width},
|
|
59
|
+
{L"height", &ImageEditorSpec_Options_displaySize::height},
|
|
60
|
+
};
|
|
61
|
+
return fieldMap;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageEditorSpec_Options*) noexcept {
|
|
65
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
66
|
+
{L"offset", &ImageEditorSpec_Options::offset},
|
|
67
|
+
{L"size", &ImageEditorSpec_Options::size},
|
|
68
|
+
{L"displaySize", &ImageEditorSpec_Options::displaySize},
|
|
69
|
+
{L"resizeMode", &ImageEditorSpec_Options::resizeMode},
|
|
70
|
+
{L"allowExternalStorage", &ImageEditorSpec_Options::allowExternalStorage},
|
|
71
|
+
};
|
|
72
|
+
return fieldMap;
|
|
73
|
+
}
|
|
74
|
+
|
|
54
75
|
struct ImageEditorSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
55
76
|
static constexpr auto methods = std::tuple{
|
|
56
77
|
Method<void(std::string, ImageEditorSpec_Options, Callback<std::string>, Callback<std::string>) noexcept>{0, L"cropImage"},
|
|
@@ -8,27 +8,38 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(ImageLoaderAndroidSpec_getSize_returnType)
|
|
17
16
|
struct ImageLoaderAndroidSpec_getSize_returnType {
|
|
18
|
-
REACT_FIELD(width)
|
|
19
17
|
double width;
|
|
20
|
-
REACT_FIELD(height)
|
|
21
18
|
double height;
|
|
22
19
|
};
|
|
23
20
|
|
|
24
|
-
REACT_STRUCT(ImageLoaderAndroidSpec_getSizeWithHeaders_returnType)
|
|
25
21
|
struct ImageLoaderAndroidSpec_getSizeWithHeaders_returnType {
|
|
26
|
-
REACT_FIELD(width)
|
|
27
22
|
double width;
|
|
28
|
-
REACT_FIELD(height)
|
|
29
23
|
double height;
|
|
30
24
|
};
|
|
31
25
|
|
|
26
|
+
|
|
27
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageLoaderAndroidSpec_getSize_returnType*) noexcept {
|
|
28
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
29
|
+
{L"width", &ImageLoaderAndroidSpec_getSize_returnType::width},
|
|
30
|
+
{L"height", &ImageLoaderAndroidSpec_getSize_returnType::height},
|
|
31
|
+
};
|
|
32
|
+
return fieldMap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageLoaderAndroidSpec_getSizeWithHeaders_returnType*) noexcept {
|
|
36
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
37
|
+
{L"width", &ImageLoaderAndroidSpec_getSizeWithHeaders_returnType::width},
|
|
38
|
+
{L"height", &ImageLoaderAndroidSpec_getSizeWithHeaders_returnType::height},
|
|
39
|
+
};
|
|
40
|
+
return fieldMap;
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
struct ImageLoaderAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
33
44
|
static constexpr auto methods = std::tuple{
|
|
34
45
|
Method<void(double) noexcept>{0, L"abortRequest"},
|
|
@@ -8,19 +8,25 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(ImageLoaderIOSSpec_getSizeWithHeaders_returnType)
|
|
17
16
|
struct ImageLoaderIOSSpec_getSizeWithHeaders_returnType {
|
|
18
|
-
REACT_FIELD(width)
|
|
19
17
|
double width;
|
|
20
|
-
REACT_FIELD(height)
|
|
21
18
|
double height;
|
|
22
19
|
};
|
|
23
20
|
|
|
21
|
+
|
|
22
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageLoaderIOSSpec_getSizeWithHeaders_returnType*) noexcept {
|
|
23
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
24
|
+
{L"width", &ImageLoaderIOSSpec_getSizeWithHeaders_returnType::width},
|
|
25
|
+
{L"height", &ImageLoaderIOSSpec_getSizeWithHeaders_returnType::height},
|
|
26
|
+
};
|
|
27
|
+
return fieldMap;
|
|
28
|
+
}
|
|
29
|
+
|
|
24
30
|
struct ImageLoaderIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
25
31
|
static constexpr auto methods = std::tuple{
|
|
26
32
|
Method<void(std::string, Promise<std::vector<double>>) noexcept>{0, L"getSize"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct ImageStoreAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(std::string, Callback<std::string>, Callback<std::string>) noexcept>{0, L"getBase64ForTag"},
|
|
@@ -8,23 +8,34 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(ImageStoreIOSSpec_getBase64ForTag_errorCallback_error)
|
|
17
16
|
struct ImageStoreIOSSpec_getBase64ForTag_errorCallback_error {
|
|
18
|
-
REACT_FIELD(message)
|
|
19
17
|
std::string message;
|
|
20
18
|
};
|
|
21
19
|
|
|
22
|
-
REACT_STRUCT(ImageStoreIOSSpec_addImageFromBase64_errorCallback_error)
|
|
23
20
|
struct ImageStoreIOSSpec_addImageFromBase64_errorCallback_error {
|
|
24
|
-
REACT_FIELD(message)
|
|
25
21
|
std::string message;
|
|
26
22
|
};
|
|
27
23
|
|
|
24
|
+
|
|
25
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageStoreIOSSpec_getBase64ForTag_errorCallback_error*) noexcept {
|
|
26
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
27
|
+
{L"message", &ImageStoreIOSSpec_getBase64ForTag_errorCallback_error::message},
|
|
28
|
+
};
|
|
29
|
+
return fieldMap;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(ImageStoreIOSSpec_addImageFromBase64_errorCallback_error*) noexcept {
|
|
33
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
34
|
+
{L"message", &ImageStoreIOSSpec_addImageFromBase64_errorCallback_error::message},
|
|
35
|
+
};
|
|
36
|
+
return fieldMap;
|
|
37
|
+
}
|
|
38
|
+
|
|
28
39
|
struct ImageStoreIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
29
40
|
static constexpr auto methods = std::tuple{
|
|
30
41
|
Method<void(std::string, Callback<std::string>, Callback<ImageStoreIOSSpec_getBase64ForTag_errorCallback_error>) noexcept>{0, L"getBase64ForTag"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct IntentAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(Promise<std::string>) noexcept>{0, L"getInitialURL"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct JSCHeapCaptureSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(std::string, std::optional<std::string>) noexcept>{0, L"captureComplete"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct JSCSamplingProfilerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(double, std::optional<std::string>, std::optional<std::string>) noexcept>{0, L"operationComplete"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct KeyboardObserverSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(std::string) noexcept>{0, L"addListener"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct LinkingManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(Promise<std::string>) noexcept>{0, L"getInitialURL"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct LogBoxSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void() noexcept>{0, L"show"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct ModalManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(std::string) noexcept>{0, L"addListener"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct NetworkingAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(std::string, std::string, double, ::React::JSValueArray, ::React::JSValue, std::string, bool, double, bool) noexcept>{0, L"sendRequest"},
|
|
@@ -8,31 +8,37 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(NetworkingIOSSpec_sendRequest_query)
|
|
17
16
|
struct NetworkingIOSSpec_sendRequest_query {
|
|
18
|
-
REACT_FIELD(method)
|
|
19
17
|
std::string method;
|
|
20
|
-
REACT_FIELD(url)
|
|
21
18
|
std::string url;
|
|
22
|
-
REACT_FIELD(data)
|
|
23
19
|
::React::JSValue data;
|
|
24
|
-
REACT_FIELD(headers)
|
|
25
20
|
::React::JSValue headers;
|
|
26
|
-
REACT_FIELD(responseType)
|
|
27
21
|
std::string responseType;
|
|
28
|
-
REACT_FIELD(incrementalUpdates)
|
|
29
22
|
bool incrementalUpdates;
|
|
30
|
-
REACT_FIELD(timeout)
|
|
31
23
|
double timeout;
|
|
32
|
-
REACT_FIELD(withCredentials)
|
|
33
24
|
bool withCredentials;
|
|
34
25
|
};
|
|
35
26
|
|
|
27
|
+
|
|
28
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(NetworkingIOSSpec_sendRequest_query*) noexcept {
|
|
29
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
30
|
+
{L"method", &NetworkingIOSSpec_sendRequest_query::method},
|
|
31
|
+
{L"url", &NetworkingIOSSpec_sendRequest_query::url},
|
|
32
|
+
{L"data", &NetworkingIOSSpec_sendRequest_query::data},
|
|
33
|
+
{L"headers", &NetworkingIOSSpec_sendRequest_query::headers},
|
|
34
|
+
{L"responseType", &NetworkingIOSSpec_sendRequest_query::responseType},
|
|
35
|
+
{L"incrementalUpdates", &NetworkingIOSSpec_sendRequest_query::incrementalUpdates},
|
|
36
|
+
{L"timeout", &NetworkingIOSSpec_sendRequest_query::timeout},
|
|
37
|
+
{L"withCredentials", &NetworkingIOSSpec_sendRequest_query::withCredentials},
|
|
38
|
+
};
|
|
39
|
+
return fieldMap;
|
|
40
|
+
}
|
|
41
|
+
|
|
36
42
|
struct NetworkingIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
37
43
|
static constexpr auto methods = std::tuple{
|
|
38
44
|
Method<void(NetworkingIOSSpec_sendRequest_query, Callback<double>) noexcept>{0, L"sendRequest"},
|
|
@@ -8,37 +8,48 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(PerformanceObserverSpec_RawPerformanceEntry)
|
|
17
16
|
struct PerformanceObserverSpec_RawPerformanceEntry {
|
|
18
|
-
REACT_FIELD(name)
|
|
19
17
|
std::string name;
|
|
20
|
-
REACT_FIELD(entryType)
|
|
21
18
|
double entryType;
|
|
22
|
-
REACT_FIELD(startTime)
|
|
23
19
|
double startTime;
|
|
24
|
-
REACT_FIELD(duration)
|
|
25
20
|
double duration;
|
|
26
|
-
REACT_FIELD(processingStart)
|
|
27
21
|
std::optional<double> processingStart;
|
|
28
|
-
REACT_FIELD(processingEnd)
|
|
29
22
|
std::optional<double> processingEnd;
|
|
30
|
-
REACT_FIELD(interactionId)
|
|
31
23
|
std::optional<double> interactionId;
|
|
32
24
|
};
|
|
33
25
|
|
|
34
|
-
REACT_STRUCT(PerformanceObserverSpec_GetPendingEntriesResult)
|
|
35
26
|
struct PerformanceObserverSpec_GetPendingEntriesResult {
|
|
36
|
-
REACT_FIELD(entries)
|
|
37
27
|
std::vector<PerformanceObserverSpec_RawPerformanceEntry> entries;
|
|
38
|
-
REACT_FIELD(droppedEntriesCount)
|
|
39
28
|
double droppedEntriesCount;
|
|
40
29
|
};
|
|
41
30
|
|
|
31
|
+
|
|
32
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PerformanceObserverSpec_RawPerformanceEntry*) noexcept {
|
|
33
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
34
|
+
{L"name", &PerformanceObserverSpec_RawPerformanceEntry::name},
|
|
35
|
+
{L"entryType", &PerformanceObserverSpec_RawPerformanceEntry::entryType},
|
|
36
|
+
{L"startTime", &PerformanceObserverSpec_RawPerformanceEntry::startTime},
|
|
37
|
+
{L"duration", &PerformanceObserverSpec_RawPerformanceEntry::duration},
|
|
38
|
+
{L"processingStart", &PerformanceObserverSpec_RawPerformanceEntry::processingStart},
|
|
39
|
+
{L"processingEnd", &PerformanceObserverSpec_RawPerformanceEntry::processingEnd},
|
|
40
|
+
{L"interactionId", &PerformanceObserverSpec_RawPerformanceEntry::interactionId},
|
|
41
|
+
};
|
|
42
|
+
return fieldMap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PerformanceObserverSpec_GetPendingEntriesResult*) noexcept {
|
|
46
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
47
|
+
{L"entries", &PerformanceObserverSpec_GetPendingEntriesResult::entries},
|
|
48
|
+
{L"droppedEntriesCount", &PerformanceObserverSpec_GetPendingEntriesResult::droppedEntriesCount},
|
|
49
|
+
};
|
|
50
|
+
return fieldMap;
|
|
51
|
+
}
|
|
52
|
+
|
|
42
53
|
struct PerformanceObserverSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
43
54
|
static constexpr auto methods = std::tuple{
|
|
44
55
|
Method<void(double) noexcept>{0, L"startReporting"},
|
|
@@ -8,23 +8,29 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(PerformanceSpec_ReactNativeStartupTiming)
|
|
17
16
|
struct PerformanceSpec_ReactNativeStartupTiming {
|
|
18
|
-
REACT_FIELD(startTime)
|
|
19
17
|
double startTime;
|
|
20
|
-
REACT_FIELD(endTime)
|
|
21
18
|
double endTime;
|
|
22
|
-
REACT_FIELD(executeJavaScriptBundleEntryPointStart)
|
|
23
19
|
double executeJavaScriptBundleEntryPointStart;
|
|
24
|
-
REACT_FIELD(executeJavaScriptBundleEntryPointEnd)
|
|
25
20
|
double executeJavaScriptBundleEntryPointEnd;
|
|
26
21
|
};
|
|
27
22
|
|
|
23
|
+
|
|
24
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PerformanceSpec_ReactNativeStartupTiming*) noexcept {
|
|
25
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
26
|
+
{L"startTime", &PerformanceSpec_ReactNativeStartupTiming::startTime},
|
|
27
|
+
{L"endTime", &PerformanceSpec_ReactNativeStartupTiming::endTime},
|
|
28
|
+
{L"executeJavaScriptBundleEntryPointStart", &PerformanceSpec_ReactNativeStartupTiming::executeJavaScriptBundleEntryPointStart},
|
|
29
|
+
{L"executeJavaScriptBundleEntryPointEnd", &PerformanceSpec_ReactNativeStartupTiming::executeJavaScriptBundleEntryPointEnd},
|
|
30
|
+
};
|
|
31
|
+
return fieldMap;
|
|
32
|
+
}
|
|
33
|
+
|
|
28
34
|
struct PerformanceSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
29
35
|
static constexpr auto methods = std::tuple{
|
|
30
36
|
Method<void(std::string, double, double) noexcept>{0, L"mark"},
|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
struct PermissionsAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(std::string, Promise<bool>) noexcept>{0, L"checkPermission"},
|
|
@@ -8,49 +8,60 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(PlatformConstantsAndroidSpec_Constants_reactNativeVersion)
|
|
17
16
|
struct PlatformConstantsAndroidSpec_Constants_reactNativeVersion {
|
|
18
|
-
REACT_FIELD(major)
|
|
19
17
|
double major;
|
|
20
|
-
REACT_FIELD(minor)
|
|
21
18
|
double minor;
|
|
22
|
-
REACT_FIELD(patch)
|
|
23
19
|
double patch;
|
|
24
|
-
REACT_FIELD(prerelease)
|
|
25
20
|
std::optional<double> prerelease;
|
|
26
21
|
};
|
|
27
22
|
|
|
28
|
-
REACT_STRUCT(PlatformConstantsAndroidSpec_Constants)
|
|
29
23
|
struct PlatformConstantsAndroidSpec_Constants {
|
|
30
|
-
REACT_FIELD(isTesting)
|
|
31
24
|
bool isTesting;
|
|
32
|
-
REACT_FIELD(reactNativeVersion)
|
|
33
25
|
PlatformConstantsAndroidSpec_Constants_reactNativeVersion reactNativeVersion;
|
|
34
|
-
REACT_FIELD(Version)
|
|
35
26
|
double Version;
|
|
36
|
-
REACT_FIELD(Release)
|
|
37
27
|
std::string Release;
|
|
38
|
-
REACT_FIELD(Serial)
|
|
39
28
|
std::string Serial;
|
|
40
|
-
REACT_FIELD(Fingerprint)
|
|
41
29
|
std::string Fingerprint;
|
|
42
|
-
REACT_FIELD(Model)
|
|
43
30
|
std::string Model;
|
|
44
|
-
REACT_FIELD(ServerHost)
|
|
45
31
|
std::optional<std::string> ServerHost;
|
|
46
|
-
REACT_FIELD(uiMode)
|
|
47
32
|
std::string uiMode;
|
|
48
|
-
REACT_FIELD(Brand)
|
|
49
33
|
std::string Brand;
|
|
50
|
-
REACT_FIELD(Manufacturer)
|
|
51
34
|
std::string Manufacturer;
|
|
52
35
|
};
|
|
53
36
|
|
|
37
|
+
|
|
38
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PlatformConstantsAndroidSpec_Constants_reactNativeVersion*) noexcept {
|
|
39
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
40
|
+
{L"major", &PlatformConstantsAndroidSpec_Constants_reactNativeVersion::major},
|
|
41
|
+
{L"minor", &PlatformConstantsAndroidSpec_Constants_reactNativeVersion::minor},
|
|
42
|
+
{L"patch", &PlatformConstantsAndroidSpec_Constants_reactNativeVersion::patch},
|
|
43
|
+
{L"prerelease", &PlatformConstantsAndroidSpec_Constants_reactNativeVersion::prerelease},
|
|
44
|
+
};
|
|
45
|
+
return fieldMap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PlatformConstantsAndroidSpec_Constants*) noexcept {
|
|
49
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
50
|
+
{L"isTesting", &PlatformConstantsAndroidSpec_Constants::isTesting},
|
|
51
|
+
{L"reactNativeVersion", &PlatformConstantsAndroidSpec_Constants::reactNativeVersion},
|
|
52
|
+
{L"Version", &PlatformConstantsAndroidSpec_Constants::Version},
|
|
53
|
+
{L"Release", &PlatformConstantsAndroidSpec_Constants::Release},
|
|
54
|
+
{L"Serial", &PlatformConstantsAndroidSpec_Constants::Serial},
|
|
55
|
+
{L"Fingerprint", &PlatformConstantsAndroidSpec_Constants::Fingerprint},
|
|
56
|
+
{L"Model", &PlatformConstantsAndroidSpec_Constants::Model},
|
|
57
|
+
{L"ServerHost", &PlatformConstantsAndroidSpec_Constants::ServerHost},
|
|
58
|
+
{L"uiMode", &PlatformConstantsAndroidSpec_Constants::uiMode},
|
|
59
|
+
{L"Brand", &PlatformConstantsAndroidSpec_Constants::Brand},
|
|
60
|
+
{L"Manufacturer", &PlatformConstantsAndroidSpec_Constants::Manufacturer},
|
|
61
|
+
};
|
|
62
|
+
return fieldMap;
|
|
63
|
+
}
|
|
64
|
+
|
|
54
65
|
struct PlatformConstantsAndroidSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
55
66
|
static constexpr auto constants = std::tuple{
|
|
56
67
|
TypedConstant<PlatformConstantsAndroidSpec_Constants>{0},
|
|
@@ -8,39 +8,50 @@
|
|
|
8
8
|
*/
|
|
9
9
|
#pragma once
|
|
10
10
|
|
|
11
|
-
#include
|
|
11
|
+
#include <NativeModules.h>
|
|
12
12
|
#include <tuple>
|
|
13
13
|
|
|
14
14
|
namespace Microsoft::ReactNativeSpecs {
|
|
15
15
|
|
|
16
|
-
REACT_STRUCT(PlatformConstantsIOSSpec_Constants_reactNativeVersion)
|
|
17
16
|
struct PlatformConstantsIOSSpec_Constants_reactNativeVersion {
|
|
18
|
-
REACT_FIELD(major)
|
|
19
17
|
double major;
|
|
20
|
-
REACT_FIELD(minor)
|
|
21
18
|
double minor;
|
|
22
|
-
REACT_FIELD(patch)
|
|
23
19
|
double patch;
|
|
24
|
-
REACT_FIELD(prerelease)
|
|
25
20
|
std::optional<double> prerelease;
|
|
26
21
|
};
|
|
27
22
|
|
|
28
|
-
REACT_STRUCT(PlatformConstantsIOSSpec_Constants)
|
|
29
23
|
struct PlatformConstantsIOSSpec_Constants {
|
|
30
|
-
REACT_FIELD(isTesting)
|
|
31
24
|
bool isTesting;
|
|
32
|
-
REACT_FIELD(reactNativeVersion)
|
|
33
25
|
PlatformConstantsIOSSpec_Constants_reactNativeVersion reactNativeVersion;
|
|
34
|
-
REACT_FIELD(forceTouchAvailable)
|
|
35
26
|
bool forceTouchAvailable;
|
|
36
|
-
REACT_FIELD(osVersion)
|
|
37
27
|
std::string osVersion;
|
|
38
|
-
REACT_FIELD(systemName)
|
|
39
28
|
std::string systemName;
|
|
40
|
-
REACT_FIELD(interfaceIdiom)
|
|
41
29
|
std::string interfaceIdiom;
|
|
42
30
|
};
|
|
43
31
|
|
|
32
|
+
|
|
33
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PlatformConstantsIOSSpec_Constants_reactNativeVersion*) noexcept {
|
|
34
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
35
|
+
{L"major", &PlatformConstantsIOSSpec_Constants_reactNativeVersion::major},
|
|
36
|
+
{L"minor", &PlatformConstantsIOSSpec_Constants_reactNativeVersion::minor},
|
|
37
|
+
{L"patch", &PlatformConstantsIOSSpec_Constants_reactNativeVersion::patch},
|
|
38
|
+
{L"prerelease", &PlatformConstantsIOSSpec_Constants_reactNativeVersion::prerelease},
|
|
39
|
+
};
|
|
40
|
+
return fieldMap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PlatformConstantsIOSSpec_Constants*) noexcept {
|
|
44
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
45
|
+
{L"isTesting", &PlatformConstantsIOSSpec_Constants::isTesting},
|
|
46
|
+
{L"reactNativeVersion", &PlatformConstantsIOSSpec_Constants::reactNativeVersion},
|
|
47
|
+
{L"forceTouchAvailable", &PlatformConstantsIOSSpec_Constants::forceTouchAvailable},
|
|
48
|
+
{L"osVersion", &PlatformConstantsIOSSpec_Constants::osVersion},
|
|
49
|
+
{L"systemName", &PlatformConstantsIOSSpec_Constants::systemName},
|
|
50
|
+
{L"interfaceIdiom", &PlatformConstantsIOSSpec_Constants::interfaceIdiom},
|
|
51
|
+
};
|
|
52
|
+
return fieldMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
44
55
|
struct PlatformConstantsIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
45
56
|
static constexpr auto constants = std::tuple{
|
|
46
57
|
TypedConstant<PlatformConstantsIOSSpec_Constants>{0},
|