diff --git a/engine/src/flutter/lib/io/dart_io.h b/engine/src/flutter/lib/io/dart_io.h index 8d3ad5283b..a645ff68f0 100644 --- a/engine/src/flutter/lib/io/dart_io.h +++ b/engine/src/flutter/lib/io/dart_io.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef FLUTTER_TONIC_DART_IO_H_ -#define FLUTTER_TONIC_DART_IO_H_ +#ifndef FLUTTER_LIB_IO_DART_IO_H_ +#define FLUTTER_LIB_IO_DART_IO_H_ #include "lib/ftl/macros.h" @@ -19,4 +19,4 @@ class DartIO { } // namespace blink -#endif // FLUTTER_TONIC_DART_IO_H_ +#endif // FLUTTER_LIB_IO_DART_IO_H_ diff --git a/engine/src/flutter/lib/snapshot/BUILD.gn b/engine/src/flutter/lib/snapshot/BUILD.gn index 7a792390ce..518dfa8185 100644 --- a/engine/src/flutter/lib/snapshot/BUILD.gn +++ b/engine/src/flutter/lib/snapshot/BUILD.gn @@ -9,6 +9,7 @@ import("//flutter/lib/ui/dart_ui.gni") target_is_fuchsia = target_os == "fuchsia" if (target_is_fuchsia) { + import("//apps/mozart/lib/flutter/sdk_ext/sdk_ext.gni") import("//lib/fidl/dart/sdk_ext/sdk_ext.gni") } @@ -81,9 +82,13 @@ action("generate_snapshot_bin") { ] if (target_is_fuchsia) { - inputs += fidl_dart_sdk_ext_files + inputs += fidl_dart_sdk_ext_files + mozart_dart_sdk_ext_files fidl_internal_path = rebase_path(fidl_dart_sdk_ext_lib) - args += [ "--url_mapping=dart:fidl.internal,$fidl_internal_path" ] + mozart_internal_path = rebase_path(mozart_dart_sdk_ext_lib) + args += [ + "--url_mapping=dart:fidl.internal,$fidl_internal_path", + "--url_mapping=dart:mozart.internal,$mozart_internal_path", + ] } } diff --git a/engine/src/flutter/lib/snapshot/snapshot_fuchsia.dart b/engine/src/flutter/lib/snapshot/snapshot_fuchsia.dart index 74a9501ba6..cf0fe0c153 100644 --- a/engine/src/flutter/lib/snapshot/snapshot_fuchsia.dart +++ b/engine/src/flutter/lib/snapshot/snapshot_fuchsia.dart @@ -11,5 +11,6 @@ import 'dart:fidl.internal'; import 'dart:io'; import 'dart:isolate'; import 'dart:math'; +import 'dart:mozart.internal'; import 'dart:typed_data'; import 'dart:ui';