diff --git a/engine/src/flutter/shell/platform/fuchsia/dart_runner/dart_component_controller.cc b/engine/src/flutter/shell/platform/fuchsia/dart_runner/dart_component_controller.cc index 1fc887cca4..a2dbb35ea4 100644 --- a/engine/src/flutter/shell/platform/fuchsia/dart_runner/dart_component_controller.cc +++ b/engine/src/flutter/shell/platform/fuchsia/dart_runner/dart_component_controller.cc @@ -216,9 +216,14 @@ bool DartComponentController::CreateAndBindNamespace() { fdio_service_connect_at(dart_outgoing_dir_ptr_.channel().get(), "svc", dart_public_dir.NewRequest().TakeChannel().release()); +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + auto composed_service_dir = std::make_unique(); composed_service_dir->set_fallback(std::move(dart_public_dir)); +#pragma clang diagnostic pop + // Clone and check if client is servicing the directory. dart_outgoing_dir_ptr_->Clone( fuchsia::io::OpenFlags::DESCRIBE | diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/component_v2.cc b/engine/src/flutter/shell/platform/fuchsia/flutter/component_v2.cc index a10b003167..ef616bbf4b 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/component_v2.cc +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/component_v2.cc @@ -259,9 +259,14 @@ ComponentV2::ComponentV2( fdio_service_connect_at(directory_ptr_.channel().get(), "svc", request.release()); +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + auto composed_service_dir = std::make_unique(); composed_service_dir->set_fallback(std::move(flutter_public_dir)); +#pragma clang diagnostic pop + // Clone and check if client is servicing the directory. directory_ptr_->Clone(fuchsia::io::OpenFlags::DESCRIBE | fuchsia::io::OpenFlags::CLONE_SAME_RIGHTS, diff --git a/engine/src/flutter/shell/platform/fuchsia/runtime/dart/utils/vmservice_object.h b/engine/src/flutter/shell/platform/fuchsia/runtime/dart/utils/vmservice_object.h index 697922491a..c02d609e51 100644 --- a/engine/src/flutter/shell/platform/fuchsia/runtime/dart/utils/vmservice_object.h +++ b/engine/src/flutter/shell/platform/fuchsia/runtime/dart/utils/vmservice_object.h @@ -9,6 +9,9 @@ namespace dart_utils { +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + class VMServiceObject : public vfs::LazyDir { public: static constexpr const char* kDirName = "DartVM"; @@ -21,6 +24,8 @@ class VMServiceObject : public vfs::LazyDir { std::string name) const override; }; +#pragma clang diagnostic pop + } // namespace dart_utils #endif // FLUTTER_SHELL_PLATFORM_FUCHSIA_RUNTIME_DART_UTILS_VMSERVICE_OBJECT_H_ diff --git a/engine/src/flutter/tools/fuchsia/target_api_level b/engine/src/flutter/tools/fuchsia/target_api_level index 60d3b2f4a4..b6a7d89c68 100644 --- a/engine/src/flutter/tools/fuchsia/target_api_level +++ b/engine/src/flutter/tools/fuchsia/target_api_level @@ -1 +1 @@ -15 +16