|  | # Copyright 2020 The Fuchsia Authors. All rights reserved. | 
|  | # Use of this source code is governed by a BSD-style license that can be | 
|  | # found in the LICENSE file. | 
|  |  | 
|  | # TODO(fxb/58062): Delete after all packages are migrated away from flutter_app. | 
|  | group("deprecated_flutter_app_allowlist") { | 
|  | #  ________  _________  ________  ________ | 
|  | # |\   ____\|\___   ___\\   __  \|\   __  \ | 
|  | # \ \  \___|\|___ \  \_\ \  \|\  \ \  \|\  \ | 
|  | #  \ \_____  \   \ \  \ \ \  \\\  \ \   ____\ | 
|  | #   \|____|\  \   \ \  \ \ \  \\\  \ \  \___| | 
|  | #     ____\_\  \   \ \__\ \ \_______\ \__\ | 
|  | #    |\_________\   \|__|  \|_______|\|__| | 
|  | #    \|_________| | 
|  | # This is an allowlist of packages that have not migrated to use flutter_component. | 
|  | # This is only intended to be used as a temporary allowlist. Do not add to this list. | 
|  | allowlist = [ | 
|  | "//src/experiences/benchmarks/bin/button_flutter:button-flutter", | 
|  | "//src/experiences/benchmarks/bin/clockface_flutter:clockface-flutter", | 
|  | "//src/experiences/benchmarks/bin/gamma_flutter:gamma-flutter", | 
|  | "//src/experiences/benchmarks/bin/scroll_flutter:scroll-flutter", | 
|  | "//src/experiences/session_shells/ermine/shell:ermine", | 
|  | "//src/ui/tests/e2e_flutter_tests/embedder/child-view:child-view", | 
|  | "//src/ui/tests/e2e_flutter_tests/embedder/parent-view:parent-view", | 
|  | "//src/ui/tests/e2e_input_tests/touch/one-flutter:one-flutter", | 
|  | "//src/tests/intl/timestamp-server-dart:timestamp-server-flutter", | 
|  | "//topaz/public/dart/fuchsia_inspect/examples/inspect_mod:inspect-mod", | 
|  | "//topaz/public/dart/fuchsia_inspect/test/inspect_flutter_integration_tester:inspect-flutter-integration-tester", | 
|  | "//topaz/public/dart/fuchsia_inspect_flutter/examples/torus15:torus15-flutter", | 
|  | "//topaz/public/dart/fuchsia_modular/examples/multilevel_mod:multilevel-mod", | 
|  | "//topaz/public/dart/fuchsia_modular/examples/slider_mod:slider-mod", | 
|  | "//topaz/public/dart/fuchsia_webview_flutter/examples/webview_mod:webview-mod", | 
|  | "//vendor/google/connectivity/management/router_manager_app:router-manager-app", | 
|  | "//vendor/google/factory/fctui:fctui", | 
|  | ] | 
|  |  | 
|  | visibility = [] | 
|  | foreach(target, allowlist) { | 
|  | visibility += [ | 
|  | target, | 
|  | target + "_manifest_dist", | 
|  | target + "_manifest_dist_generate", | 
|  | target + "_component_manifests", | 
|  | ] | 
|  | } | 
|  | } | 
|  |  | 
|  | # Copies the patched SDK files for the flutter runner | 
|  | # NOTE: copies to an _nnbd directory to allow for soft transition | 
|  | copy("platform_files") { | 
|  | sources = [ | 
|  | "//prebuilt/third_party/flutter/$target_cpu/release/aot/flutter_runner_patched_sdk/platform_strong.dill", | 
|  | "//prebuilt/third_party/flutter/$target_cpu/release/aot/flutter_runner_patched_sdk/platform_strong.dill.d", | 
|  | "//prebuilt/third_party/flutter/$target_cpu/release/aot/flutter_runner_patched_sdk/vm_outline_strong.dill", | 
|  | ] | 
|  | outputs = | 
|  | [ "$root_out_dir/flutter_runner_patched_sdk_nnbd/{{source_file_part}}" ] | 
|  | } |