From 91c513d2431879800d335d670a7992275c1befb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Marchand?= Date: Thu, 4 Aug 2022 12:53:20 -0400 Subject: [PATCH] [Fuchsia] Specify the target API level in pm_tool.gni (flutter/engine#35132) Bug: fxb/105705 --- engine/src/flutter/tools/fuchsia/gn-sdk/pm_tool.gni | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/src/flutter/tools/fuchsia/gn-sdk/pm_tool.gni b/engine/src/flutter/tools/fuchsia/gn-sdk/pm_tool.gni index 5323a3d4f1..73dabf0d6b 100644 --- a/engine/src/flutter/tools/fuchsia/gn-sdk/pm_tool.gni +++ b/engine/src/flutter/tools/fuchsia/gn-sdk/pm_tool.gni @@ -84,7 +84,10 @@ template("fuchsia_pm_tool") { package_name, ] if (command == "build") { + assert(fuchsia_target_api_level != -1, + "Must set a target api level when creating an archive") args += [ + "--api-level=${fuchsia_target_api_level}", command, "-output-package-manifest", rebase_path(_pkg_output_manifest, root_build_dir),