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") {