react-native-windows 0.71.29 → 0.71.31
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.Managed/packages.lock.json +4 -73
- package/PropertySheets/Generated/PackageVersion.g.props +3 -3
- 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/NativeDatePickerAndroidSpec.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/NativeDeviceEventManagerSpec.g.h +2 -1
- package/codegen/NativeDeviceInfoSpec.g.h +41 -20
- package/codegen/NativeDialogManagerAndroidSpec.g.h +26 -15
- package/codegen/NativeDialogManagerWindowsSpec.g.h +27 -16
- 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 +2 -1
- package/codegen/NativeImageLoaderIOSSpec.g.h +2 -1
- 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 +15 -9
- 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 +10 -4
- 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,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<::React::JSValue>) 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<::React::JSValue>) 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,29 +8,35 @@
|
|
|
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
|
|
|
26
|
+
|
|
27
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PerformanceObserverSpec_RawPerformanceEntry*) noexcept {
|
|
28
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
29
|
+
{L"name", &PerformanceObserverSpec_RawPerformanceEntry::name},
|
|
30
|
+
{L"entryType", &PerformanceObserverSpec_RawPerformanceEntry::entryType},
|
|
31
|
+
{L"startTime", &PerformanceObserverSpec_RawPerformanceEntry::startTime},
|
|
32
|
+
{L"duration", &PerformanceObserverSpec_RawPerformanceEntry::duration},
|
|
33
|
+
{L"processingStart", &PerformanceObserverSpec_RawPerformanceEntry::processingStart},
|
|
34
|
+
{L"processingEnd", &PerformanceObserverSpec_RawPerformanceEntry::processingEnd},
|
|
35
|
+
{L"interactionId", &PerformanceObserverSpec_RawPerformanceEntry::interactionId},
|
|
36
|
+
};
|
|
37
|
+
return fieldMap;
|
|
38
|
+
}
|
|
39
|
+
|
|
34
40
|
struct PerformanceObserverSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
35
41
|
static constexpr auto methods = std::tuple{
|
|
36
42
|
Method<void(std::string) noexcept>{0, L"startReporting"},
|
|
@@ -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<::React::JSValue>) 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},
|
|
@@ -8,33 +8,44 @@
|
|
|
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(PlatformConstantsWinSpec_Constants_reactNativeVersion)
|
|
17
16
|
struct PlatformConstantsWinSpec_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(PlatformConstantsWinSpec_Constants)
|
|
29
23
|
struct PlatformConstantsWinSpec_Constants {
|
|
30
|
-
REACT_FIELD(isTesting)
|
|
31
24
|
bool isTesting;
|
|
32
|
-
REACT_FIELD(reactNativeVersion)
|
|
33
25
|
PlatformConstantsWinSpec_Constants_reactNativeVersion reactNativeVersion;
|
|
34
|
-
REACT_FIELD(osVersion)
|
|
35
26
|
double osVersion;
|
|
36
27
|
};
|
|
37
28
|
|
|
29
|
+
|
|
30
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PlatformConstantsWinSpec_Constants_reactNativeVersion*) noexcept {
|
|
31
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
32
|
+
{L"major", &PlatformConstantsWinSpec_Constants_reactNativeVersion::major},
|
|
33
|
+
{L"minor", &PlatformConstantsWinSpec_Constants_reactNativeVersion::minor},
|
|
34
|
+
{L"patch", &PlatformConstantsWinSpec_Constants_reactNativeVersion::patch},
|
|
35
|
+
{L"prerelease", &PlatformConstantsWinSpec_Constants_reactNativeVersion::prerelease},
|
|
36
|
+
};
|
|
37
|
+
return fieldMap;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PlatformConstantsWinSpec_Constants*) noexcept {
|
|
41
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
42
|
+
{L"isTesting", &PlatformConstantsWinSpec_Constants::isTesting},
|
|
43
|
+
{L"reactNativeVersion", &PlatformConstantsWinSpec_Constants::reactNativeVersion},
|
|
44
|
+
{L"osVersion", &PlatformConstantsWinSpec_Constants::osVersion},
|
|
45
|
+
};
|
|
46
|
+
return fieldMap;
|
|
47
|
+
}
|
|
48
|
+
|
|
38
49
|
struct PlatformConstantsWinSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
39
50
|
static constexpr auto constants = std::tuple{
|
|
40
51
|
TypedConstant<PlatformConstantsWinSpec_Constants>{0},
|
|
@@ -8,55 +8,71 @@
|
|
|
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(PushNotificationManagerIOSSpec_Permissions)
|
|
17
16
|
struct PushNotificationManagerIOSSpec_Permissions {
|
|
18
|
-
REACT_FIELD(alert)
|
|
19
17
|
bool alert;
|
|
20
|
-
REACT_FIELD(badge)
|
|
21
18
|
bool badge;
|
|
22
|
-
REACT_FIELD(sound)
|
|
23
19
|
bool sound;
|
|
24
20
|
};
|
|
25
21
|
|
|
26
|
-
REACT_STRUCT(PushNotificationManagerIOSSpec_Notification)
|
|
27
22
|
struct PushNotificationManagerIOSSpec_Notification {
|
|
28
|
-
REACT_FIELD(alertTitle)
|
|
29
23
|
std::optional<std::string> alertTitle;
|
|
30
|
-
REACT_FIELD(fireDate)
|
|
31
24
|
std::optional<double> fireDate;
|
|
32
|
-
REACT_FIELD(alertBody)
|
|
33
25
|
std::optional<std::string> alertBody;
|
|
34
|
-
REACT_FIELD(alertAction)
|
|
35
26
|
std::optional<std::string> alertAction;
|
|
36
|
-
REACT_FIELD(userInfo)
|
|
37
27
|
std::optional<::React::JSValue> userInfo;
|
|
38
|
-
REACT_FIELD(category)
|
|
39
28
|
std::optional<std::string> category;
|
|
40
|
-
REACT_FIELD(repeatInterval)
|
|
41
29
|
std::optional<std::string> repeatInterval;
|
|
42
|
-
REACT_FIELD(applicationIconBadgeNumber)
|
|
43
30
|
std::optional<double> applicationIconBadgeNumber;
|
|
44
|
-
REACT_FIELD(isSilent)
|
|
45
31
|
std::optional<bool> isSilent;
|
|
46
|
-
REACT_FIELD(soundName)
|
|
47
32
|
std::optional<std::string> soundName;
|
|
48
33
|
};
|
|
49
34
|
|
|
50
|
-
REACT_STRUCT(PushNotificationManagerIOSSpec_requestPermissions_permission)
|
|
51
35
|
struct PushNotificationManagerIOSSpec_requestPermissions_permission {
|
|
52
|
-
REACT_FIELD(alert)
|
|
53
36
|
bool alert;
|
|
54
|
-
REACT_FIELD(badge)
|
|
55
37
|
bool badge;
|
|
56
|
-
REACT_FIELD(sound)
|
|
57
38
|
bool sound;
|
|
58
39
|
};
|
|
59
40
|
|
|
41
|
+
|
|
42
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PushNotificationManagerIOSSpec_Permissions*) noexcept {
|
|
43
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
44
|
+
{L"alert", &PushNotificationManagerIOSSpec_Permissions::alert},
|
|
45
|
+
{L"badge", &PushNotificationManagerIOSSpec_Permissions::badge},
|
|
46
|
+
{L"sound", &PushNotificationManagerIOSSpec_Permissions::sound},
|
|
47
|
+
};
|
|
48
|
+
return fieldMap;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PushNotificationManagerIOSSpec_Notification*) noexcept {
|
|
52
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
53
|
+
{L"alertTitle", &PushNotificationManagerIOSSpec_Notification::alertTitle},
|
|
54
|
+
{L"fireDate", &PushNotificationManagerIOSSpec_Notification::fireDate},
|
|
55
|
+
{L"alertBody", &PushNotificationManagerIOSSpec_Notification::alertBody},
|
|
56
|
+
{L"alertAction", &PushNotificationManagerIOSSpec_Notification::alertAction},
|
|
57
|
+
{L"userInfo", &PushNotificationManagerIOSSpec_Notification::userInfo},
|
|
58
|
+
{L"category", &PushNotificationManagerIOSSpec_Notification::category},
|
|
59
|
+
{L"repeatInterval", &PushNotificationManagerIOSSpec_Notification::repeatInterval},
|
|
60
|
+
{L"applicationIconBadgeNumber", &PushNotificationManagerIOSSpec_Notification::applicationIconBadgeNumber},
|
|
61
|
+
{L"isSilent", &PushNotificationManagerIOSSpec_Notification::isSilent},
|
|
62
|
+
{L"soundName", &PushNotificationManagerIOSSpec_Notification::soundName},
|
|
63
|
+
};
|
|
64
|
+
return fieldMap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(PushNotificationManagerIOSSpec_requestPermissions_permission*) noexcept {
|
|
68
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
69
|
+
{L"alert", &PushNotificationManagerIOSSpec_requestPermissions_permission::alert},
|
|
70
|
+
{L"badge", &PushNotificationManagerIOSSpec_requestPermissions_permission::badge},
|
|
71
|
+
{L"sound", &PushNotificationManagerIOSSpec_requestPermissions_permission::sound},
|
|
72
|
+
};
|
|
73
|
+
return fieldMap;
|
|
74
|
+
}
|
|
75
|
+
|
|
60
76
|
struct PushNotificationManagerIOSSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
61
77
|
static constexpr auto methods = std::tuple{
|
|
62
78
|
Method<void(std::string, std::string) noexcept>{0, L"onFinishRemoteNotification"},
|
|
@@ -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 RedBoxSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(::React::JSValue, std::string) noexcept>{0, L"setExtraData"},
|
|
@@ -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(SampleTurboModuleSpec_Constants)
|
|
17
16
|
struct SampleTurboModuleSpec_Constants {
|
|
18
|
-
REACT_FIELD(const1)
|
|
19
17
|
bool const1;
|
|
20
|
-
REACT_FIELD(const2)
|
|
21
18
|
double const2;
|
|
22
|
-
REACT_FIELD(const3)
|
|
23
19
|
std::string const3;
|
|
24
20
|
};
|
|
25
21
|
|
|
22
|
+
|
|
23
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(SampleTurboModuleSpec_Constants*) noexcept {
|
|
24
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
25
|
+
{L"const1", &SampleTurboModuleSpec_Constants::const1},
|
|
26
|
+
{L"const2", &SampleTurboModuleSpec_Constants::const2},
|
|
27
|
+
{L"const3", &SampleTurboModuleSpec_Constants::const3},
|
|
28
|
+
};
|
|
29
|
+
return fieldMap;
|
|
30
|
+
}
|
|
31
|
+
|
|
26
32
|
struct SampleTurboModuleSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
27
33
|
static constexpr auto constants = std::tuple{
|
|
28
34
|
TypedConstant<SampleTurboModuleSpec_Constants>{0},
|
|
@@ -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 SegmentFetcherSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
17
18
|
static constexpr auto methods = std::tuple{
|
|
18
19
|
Method<void(double, ::React::JSValue, Callback<std::optional<::React::JSValue>>) noexcept>{0, L"fetchSegment"},
|
|
@@ -8,17 +8,23 @@
|
|
|
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(SettingsManagerSpec_Constants)
|
|
17
16
|
struct SettingsManagerSpec_Constants {
|
|
18
|
-
REACT_FIELD(settings)
|
|
19
17
|
::React::JSValue settings;
|
|
20
18
|
};
|
|
21
19
|
|
|
20
|
+
|
|
21
|
+
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(SettingsManagerSpec_Constants*) noexcept {
|
|
22
|
+
winrt::Microsoft::ReactNative::FieldMap fieldMap {
|
|
23
|
+
{L"settings", &SettingsManagerSpec_Constants::settings},
|
|
24
|
+
};
|
|
25
|
+
return fieldMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
struct SettingsManagerSpec : winrt::Microsoft::ReactNative::TurboModuleSpec {
|
|
23
29
|
static constexpr auto constants = std::tuple{
|
|
24
30
|
TypedConstant<SettingsManagerSpec_Constants>{0},
|