@react-native-windows/automation-channel 0.12.69 → 0.12.70
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-windows/automation-channel",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.70",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prettier": "^2.4.1",
|
|
33
33
|
"react": "18.2.0",
|
|
34
34
|
"react-native": "0.73.0-nightly-20231002-0371014a3",
|
|
35
|
-
"react-native-windows": "^0.0.0-canary.
|
|
35
|
+
"react-native-windows": "^0.0.0-canary.731",
|
|
36
36
|
"typescript": "^4.9.5"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
<DisableSpecificWarnings>4453;28204</DisableSpecificWarnings>
|
|
83
83
|
<PreprocessorDefinitions>_WINRT_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
|
84
84
|
<AdditionalUsingDirectories>$(WindowsSDK_WindowsMetadata);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
|
|
85
|
+
<LanguageStandard>stdcpp20</LanguageStandard>
|
|
85
86
|
</ClCompile>
|
|
86
87
|
<Link>
|
|
87
88
|
<SubSystem>Console</SubSystem>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
+
#pragma once
|
|
3
4
|
|
|
4
5
|
#include <winrt/base.h>
|
|
6
|
+
#include <coroutine>
|
|
5
7
|
|
|
6
8
|
// Copied from "vnext\Shared\Utils\CppWinrtLessExceptions.h" until we have a good way to share between packages
|
|
7
9
|
|
|
@@ -15,7 +17,7 @@ struct lessthrow_await_adapter {
|
|
|
15
17
|
return async.Status() == winrt::Windows::Foundation::AsyncStatus::Completed;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
void await_suspend(std::
|
|
20
|
+
void await_suspend(std::coroutine_handle<> handle) const {
|
|
19
21
|
auto context = winrt::capture<winrt::impl::IContextCallback>(WINRT_IMPL_CoGetObjectContext);
|
|
20
22
|
|
|
21
23
|
async.Completed([handle, context = std::move(context)](auto const &, winrt::Windows::Foundation::AsyncStatus) {
|
|
@@ -23,7 +25,7 @@ struct lessthrow_await_adapter {
|
|
|
23
25
|
args.data = handle.address();
|
|
24
26
|
|
|
25
27
|
auto callback = [](winrt::impl::com_callback_args *args) noexcept -> int32_t {
|
|
26
|
-
std::
|
|
28
|
+
std::coroutine_handle<>::from_address(args->data)();
|
|
27
29
|
return S_OK;
|
|
28
30
|
};
|
|
29
31
|
|