From d6089dde09976601345889e3c88a75e9e1aea373 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Fri, 28 Feb 2025 22:16:04 -0800 Subject: [PATCH] Delete unused build archive targets (#164414) This migration is incomplete and is no longer planned. Issue: https://github.com/flutter/flutter/issues/105351 ## Pre-launch Checklist - [X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [X] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [X] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [X] I signed the [CLA]. - [X] I listed at least one issue that this PR fixes in the description above. - [X] I updated/added relevant documentation (doc comments with `///`). - [X] I added new tests to check the change I am making, or this PR is [test-exempt]. - [X] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [X] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md --- .../flutter/shell/platform/android/BUILD.gn | 70 ------------------- 1 file changed, 70 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/BUILD.gn b/engine/src/flutter/shell/platform/android/BUILD.gn index a98975887d..6a4101bd4c 100644 --- a/engine/src/flutter/shell/platform/android/BUILD.gn +++ b/engine/src/flutter/shell/platform/android/BUILD.gn @@ -716,45 +716,6 @@ if (target_cpu != "x86") { ] } } - - # TODO(godofredoc): Remove gen_snapshot and rename new_gen_snapshot when v2 migration is complete. - # BUG: https://github.com/flutter/flutter/issues/105351 - zip_bundle("new_gen_snapshot") { - gen_snapshot_bin = "gen_snapshot" - gen_snapshot_out_dir = - get_label_info("$dart_src/runtime/bin:gen_snapshot($host_toolchain)", - "root_out_dir") - gen_snapshot_path = rebase_path("$gen_snapshot_out_dir/$gen_snapshot_bin") - - if (host_os == "linux") { - output = "$android_zip_archive_dir/$full_platform_name-$flutter_runtime_mode/linux-x64.zip" - } else if (host_os == "mac") { - output = "$android_zip_archive_dir/$full_platform_name-$flutter_runtime_mode/darwin-x64.zip" - } else if (host_os == "win") { - output = "$android_zip_archive_dir/$full_platform_name-$flutter_runtime_mode/windows-x64.zip" - gen_snapshot_bin = "gen_snapshot.exe" - gen_snapshot_path = rebase_path("$root_out_dir/$gen_snapshot_bin") - } - - files = [ - { - source = gen_snapshot_path - destination = gen_snapshot_bin - }, - ] - - deps = [ "$dart_src/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" - }, - ] - } - } } if (host_os == "linux" && (target_cpu == "x64" || target_cpu == "arm64")) { @@ -786,37 +747,6 @@ if (host_os == "linux" && (target_cpu == "x64" || target_cpu == "arm64")) { }, ] } - - # TODO(godofredoc): Remove analyze_snapshot and rename new_analyze_snapshot when v2 migration is complete. - # BUG: https://github.com/flutter/flutter/issues/105351 - zip_bundle("new_analyze_snapshot") { - deps = [ "$dart_src/runtime/bin:analyze_snapshot($host_toolchain)" ] - - analyze_snapshot_bin = "analyze_snapshot" - analyze_snapshot_out_dir = - get_label_info( - "$dart_src/runtime/bin:analyze_snapshot($host_toolchain)", - "root_out_dir") - analyze_snapshot_path = - rebase_path("$analyze_snapshot_out_dir/$analyze_snapshot_bin") - - if (host_os == "linux") { - output = "$android_zip_archive_dir/$full_platform_name-$flutter_runtime_mode/analyze-snapshot-linux-x64.zip" - } else if (host_os == "mac") { - output = "$android_zip_archive_dir/$full_platform_name-$flutter_runtime_mode/analyze-snapshot-darwin-x64.zip" - } else if (host_os == "win") { - output = "$android_zip_archive_dir/$full_platform_name-$flutter_runtime_mode/analyze-snapshot-windows-x64.zip" - analyze_snapshot_bin = "analyze-snapshot.exe" - analyze_snapshot_path = rebase_path("$root_out_dir/$analyze_snapshot_bin") - } - - files = [ - { - source = analyze_snapshot_path - destination = analyze_snapshot_bin - }, - ] - } } group("android") {