Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 0f07396

Browse files
authored
[fuchsia] Bump the Fuchsia target API level to 10 (#36858)
1 parent 2f235c4 commit 0f07396

4 files changed

Lines changed: 9 additions & 6 deletions

File tree

shell/platform/fuchsia/dart_runner/dart_test_component_controller.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void DartTestComponentController::SetUp() {
178178
suite_context_ = sys::ComponentContext::Create();
179179
suite_context_->outgoing()->AddPublicService(this->GetHandler());
180180
suite_context_->outgoing()->Serve(
181-
start_info_.mutable_outgoing_dir()->TakeChannel(), loop_->dispatcher());
181+
std::move(*start_info_.mutable_outgoing_dir()), loop_->dispatcher());
182182

183183
loop_->Run();
184184
}

shell/platform/fuchsia/flutter/component_v1.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,16 @@ ComponentV1::ComponentV1(
159159
continue;
160160
}
161161

162-
zx::channel dir;
162+
fidl::InterfaceHandle<fuchsia::io::Directory> dir;
163163
if (path == kServiceRootPath) {
164164
svc_ = std::make_unique<sys::ServiceDirectory>(
165165
std::move(startup_info.flat_namespace.directories.at(i)));
166-
dir = svc_->CloneChannel().TakeChannel();
166+
dir = svc_->CloneChannel();
167167
} else {
168168
dir = std::move(startup_info.flat_namespace.directories.at(i));
169169
}
170170

171-
zx_handle_t dir_handle = dir.release();
171+
zx_handle_t dir_handle = dir.TakeChannel().release();
172172
if (fdio_ns_bind(fdio_ns_.get(), path.data(), dir_handle) != ZX_OK) {
173173
FML_LOG(ERROR) << "Could not bind path to namespace: " << path;
174174
zx_handle_close(dir_handle);
@@ -199,7 +199,7 @@ ComponentV1::ComponentV1(
199199
outgoing_dir_->Serve(fuchsia::io::OpenFlags::RIGHT_READABLE |
200200
fuchsia::io::OpenFlags::RIGHT_WRITABLE |
201201
fuchsia::io::OpenFlags::DIRECTORY,
202-
std::move(launch_info.directory_request));
202+
launch_info.directory_request.TakeChannel());
203203
}
204204

205205
directory_request_ = directory_ptr_.NewRequest();

shell/platform/fuchsia/flutter/tests/integration/text-input/text-input-test.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ class TestResponseListenerServer
112112
return match;
113113
}
114114

115+
// KeyboardInputListener override
116+
void ReportReady(ReportReadyCallback) override {}
117+
115118
private:
116119
// Not owned.
117120
async_dispatcher_t* dispatcher_ = nullptr;

tools/fuchsia/target_api_level

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9
1+
10

0 commit comments

Comments
 (0)