From 067d1579897ad8ce7060ecf9cd86bdb9b5c930d9 Mon Sep 17 00:00:00 2001 From: Xilai Zhang Date: Mon, 27 Feb 2023 16:06:46 -0800 Subject: [PATCH] [gn + codesign] add android artifact metadata to legacy build target (flutter/engine#39696) [gn + codesign] add android artifact metadata to legacy build target --- engine/src/flutter/shell/platform/android/BUILD.gn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engine/src/flutter/shell/platform/android/BUILD.gn b/engine/src/flutter/shell/platform/android/BUILD.gn index a0d91955a6..e1a0b9b7f2 100644 --- a/engine/src/flutter/shell/platform/android/BUILD.gn +++ b/engine/src/flutter/shell/platform/android/BUILD.gn @@ -625,6 +625,16 @@ if (target_cpu != "x86") { ] deps = [ "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)" ] + + if (host_os == "mac") { + deps += [ ":android_entitlement_config" ] + files += [ + { + source = "$target_gen_dir/android_entitlements.txt" + destination = "entitlements.txt" + }, + ] + } } # TODO(godofredoc): Remove gen_snapshot and rename new_gen_snapshot when v2 migration is complete.