From 05c4e08e4cf1f0720e166c95937ce2afa54ba3f4 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Tue, 27 Feb 2024 16:44:36 -0800 Subject: [PATCH] Add a FontManifest.json to scenario_app to remove runtime warnings. --- testing/scenario_app/BUILD.gn | 4 ++++ testing/scenario_app/android/FontManifest.json | 1 + 2 files changed, 5 insertions(+) create mode 100644 testing/scenario_app/android/FontManifest.json diff --git a/testing/scenario_app/BUILD.gn b/testing/scenario_app/BUILD.gn index eb47cc18e88a4..79509ddb5929f 100644 --- a/testing/scenario_app/BUILD.gn +++ b/testing/scenario_app/BUILD.gn @@ -20,9 +20,13 @@ if (!is_aot) { assert(false) } + flutter_src_dir = rebase_path("$root_out_dir/../../flutter") + copy("copy_jit_assets") { visibility = [ ":*" ] sources = [ + # Include FontManifest.json to avoid a runtime error when loading fonts. + "$flutter_src_dir/testing/scenario_app/android/FontManifest.json", "$target_gen_dir/isolate_snapshot_data", "$target_gen_dir/isolate_snapshot_instr", "$target_gen_dir/kernel_blob.bin", diff --git a/testing/scenario_app/android/FontManifest.json b/testing/scenario_app/android/FontManifest.json new file mode 100644 index 0000000000000..474a59a267b1e --- /dev/null +++ b/testing/scenario_app/android/FontManifest.json @@ -0,0 +1 @@ +[{"family":"Roboto","fonts":[{"asset":"Roboto-Medium.ttf"}]}]