From eb4b07ee1da950589a9350a7b0c14cb49a1593bb Mon Sep 17 00:00:00 2001 From: Jonny Wang Date: Tue, 6 Feb 2024 15:34:37 +0000 Subject: [PATCH] [fuchsia] Bump Fuchsia's API level to 16 (flutter/engine#50358) Update Fuchsia's API level to 16. b/322503140 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide] and the [C++, Objective-C, Java style guides]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I added new tests to check the change I am making or feature I am adding, or the PR is [test-exempt]. See [testing the engine] for instructions on writing and running engine tests. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I signed the [CLA]. - [x] All existing and new tests are passing. --- .../fuchsia/dart_runner/dart_component_controller.cc | 5 +++++ .../flutter/shell/platform/fuchsia/flutter/component_v2.cc | 5 +++++ .../platform/fuchsia/runtime/dart/utils/vmservice_object.h | 5 +++++ engine/src/flutter/tools/fuchsia/target_api_level | 2 +- 4 files changed, 16 insertions(+), 1 deletion(-) 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