From 7c025b17987124665c4534685ab2495f9e27ee38 Mon Sep 17 00:00:00 2001 From: Tarrin Neal Date: Tue, 27 Dec 2022 15:47:24 -0800 Subject: [PATCH] update synced generated files to clean up prs (#3007) --- .../mock_handler_tester/test/message.dart | 2 +- .../pigeon/mock_handler_tester/test/test.dart | 2 +- .../CoreTests.java | 2 +- .../ios/Classes/CoreTests.gen.h | 2 +- .../ios/Classes/CoreTests.gen.m | 2 +- .../lib/core_tests.gen.dart | 2 +- .../lib/multiple_arity.gen.dart | 2 +- .../lib/non_null_fields.gen.dart | 2 +- .../lib/null_fields.gen.dart | 2 +- .../lib/null_safe_pigeon.dart | 2 +- .../lib/nullable_returns.gen.dart | 2 +- .../lib/primitive.dart | 2 +- .../lib/src/generated/core_tests.gen.dart | 2 +- .../com/example/test_plugin/CoreTests.gen.kt | 2 +- .../ios/Classes/CoreTests.gen.swift | 2 +- .../macos/Classes/CoreTests.gen.swift | 2 +- .../windows/pigeon/core_tests.gen.cpp | 81 ++++++++++--------- .../windows/pigeon/core_tests.gen.h | 2 +- 18 files changed, 62 insertions(+), 53 deletions(-) diff --git a/packages/pigeon/mock_handler_tester/test/message.dart b/packages/pigeon/mock_handler_tester/test/message.dart index f64aa5dc14..f5ce56c7f0 100644 --- a/packages/pigeon/mock_handler_tester/test/message.dart +++ b/packages/pigeon/mock_handler_tester/test/message.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.11), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; diff --git a/packages/pigeon/mock_handler_tester/test/test.dart b/packages/pigeon/mock_handler_tester/test/test.dart index d0ecdc5d20..8fcd5ae8d6 100644 --- a/packages/pigeon/mock_handler_tester/test/test.dart +++ b/packages/pigeon/mock_handler_tester/test/test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.11), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, unnecessary_import // ignore_for_file: avoid_relative_lib_imports diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index 9c0256252e..f47ef7d2ad 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon package com.example.alternate_language_test_plugin; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h index 80a40d52c8..444889c05f 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon #import @protocol FlutterBinaryMessenger; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m index adb33d0bdf..81eefa3792 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon #import "CoreTests.gen.h" #import diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/core_tests.gen.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/core_tests.gen.dart index 4ff2bc0756..2bca40161b 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/core_tests.gen.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/multiple_arity.gen.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/multiple_arity.gen.dart index a314567931..e8486ceac4 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/multiple_arity.gen.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/multiple_arity.gen.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.11), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/non_null_fields.gen.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/non_null_fields.gen.dart index 0dafa68908..f972b5472e 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/non_null_fields.gen.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.11), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/null_fields.gen.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/null_fields.gen.dart index 94c9b86a8a..50db20b91f 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/null_fields.gen.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.11), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/null_safe_pigeon.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/null_safe_pigeon.dart index f376a13a93..b54be15aaf 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/null_safe_pigeon.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/null_safe_pigeon.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.11), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/nullable_returns.gen.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/nullable_returns.gen.dart index e88028363d..8ddfef08b4 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/nullable_returns.gen.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/nullable_returns.gen.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.11), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; diff --git a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/primitive.dart b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/primitive.dart index 178e315457..149c54c68e 100644 --- a/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/primitive.dart +++ b/packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib/primitive.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.11), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 4ff2bc0756..2bca40161b 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import import 'dart:async'; diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index bcd41b0549..a720aa32eb 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon package com.example.test_plugin diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift index 385b507191..93a9bcce7c 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon import Foundation diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift index 385b507191..93a9bcce7c 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon import Foundation diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 990732ca63..5f920a4a1c 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon #undef _HAS_EXCEPTIONS @@ -576,7 +576,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -597,7 +597,8 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const auto& args = std::get(message); const auto& encodable_everything_arg = args.at(0); if (encodable_everything_arg.IsNull()) { - reply(WrapError("everything_arg unexpectedly null.")); + reply(flutter::EncodableValue( + WrapError("everything_arg unexpectedly null."))); return; } const auto& everything_arg = std::any_cast( @@ -613,7 +614,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -653,7 +654,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -680,7 +681,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -700,7 +701,8 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const auto& args = std::get(message); const auto& encodable_an_int_arg = args.at(0); if (encodable_an_int_arg.IsNull()) { - reply(WrapError("an_int_arg unexpectedly null.")); + reply(flutter::EncodableValue( + WrapError("an_int_arg unexpectedly null."))); return; } const int64_t an_int_arg = encodable_an_int_arg.LongValue(); @@ -714,7 +716,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -735,7 +737,8 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const auto& args = std::get(message); const auto& encodable_a_double_arg = args.at(0); if (encodable_a_double_arg.IsNull()) { - reply(WrapError("a_double_arg unexpectedly null.")); + reply(flutter::EncodableValue( + WrapError("a_double_arg unexpectedly null."))); return; } const auto& a_double_arg = @@ -750,7 +753,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -770,7 +773,8 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const auto& args = std::get(message); const auto& encodable_a_bool_arg = args.at(0); if (encodable_a_bool_arg.IsNull()) { - reply(WrapError("a_bool_arg unexpectedly null.")); + reply(flutter::EncodableValue( + WrapError("a_bool_arg unexpectedly null."))); return; } const auto& a_bool_arg = std::get(encodable_a_bool_arg); @@ -784,7 +788,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -805,7 +809,8 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); + reply(flutter::EncodableValue( + WrapError("a_string_arg unexpectedly null."))); return; } const auto& a_string_arg = @@ -820,7 +825,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -841,7 +846,8 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const auto& args = std::get(message); const auto& encodable_a_uint8_list_arg = args.at(0); if (encodable_a_uint8_list_arg.IsNull()) { - reply(WrapError("a_uint8_list_arg unexpectedly null.")); + reply(flutter::EncodableValue( + WrapError("a_uint8_list_arg unexpectedly null."))); return; } const auto& a_uint8_list_arg = @@ -857,7 +863,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -878,7 +884,8 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const auto& args = std::get(message); const auto& encodable_wrapper_arg = args.at(0); if (encodable_wrapper_arg.IsNull()) { - reply(WrapError("wrapper_arg unexpectedly null.")); + reply(flutter::EncodableValue( + WrapError("wrapper_arg unexpectedly null."))); return; } const auto& wrapper_arg = @@ -901,7 +908,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -934,7 +941,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -980,7 +987,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -1024,7 +1031,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -1062,7 +1069,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -1100,7 +1107,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -1138,7 +1145,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -1177,7 +1184,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); @@ -1201,11 +1208,11 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } else { wrapped.push_back(flutter::EncodableValue()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); } }); } else { @@ -1227,7 +1234,8 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); + reply(flutter::EncodableValue( + WrapError("a_string_arg unexpectedly null."))); return; } const auto& a_string_arg = @@ -1241,11 +1249,11 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, wrapped.push_back(flutter::EncodableValue( std::move(output).TakeValue())); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); } }); } else { @@ -1271,11 +1279,11 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, } else { wrapped.push_back(flutter::EncodableValue()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); } }); } else { @@ -1297,7 +1305,8 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const auto& args = std::get(message); const auto& encodable_a_string_arg = args.at(0); if (encodable_a_string_arg.IsNull()) { - reply(WrapError("a_string_arg unexpectedly null.")); + reply(flutter::EncodableValue( + WrapError("a_string_arg unexpectedly null."))); return; } const auto& a_string_arg = @@ -1311,11 +1320,11 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, wrapped.push_back(flutter::EncodableValue( std::move(output).TakeValue())); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); } }); } else { @@ -1500,7 +1509,7 @@ void HostTrivialApi::SetUp(flutter::BinaryMessenger* binary_messenger, } catch (const std::exception& exception) { wrapped = WrapError(exception.what()); } - reply(wrapped); + reply(flutter::EncodableValue(std::move(wrapped))); }); } else { channel->SetMessageHandler(nullptr); diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index 5100fdb753..b5b6b45004 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Autogenerated from Pigeon (v4.2.12), do not edit directly. +// Autogenerated from Pigeon (v4.2.15), do not edit directly. // See also: https://pub.dev/packages/pigeon #ifndef PIGEON_CORE_TESTS_GEN_CORE_TESTS_PIGEONTEST_H_