flutter/packages/flutter_tools/lib/src/base
auto-submit[bot] cc4e07954d
Reverts "Improve build output for all platforms" (#143125)
Reverts flutter/flutter#128236

Initiated by: vashworth

Reason for reverting: Causing `Mac_pixel_7pro run_release_test` and `Mac_arm64_android run_release_test` to fail: https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_pixel_7pro%20run_release_test/547/overview 
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_arm64_android%20run_release_test/10516/overview

Original PR Author: guidezpl

Reviewed By: {christopherfujino, loic-sharma}

This change reverts the following previous change:
Original Description:
Improves the build output:

1. Gives confirmation that the build succeeded, in green
1. Gives the path to the built executable, without a trailing period to make it slightly easier to cmd/ctrl+open
1. Gives the size of the built executable (when the built executable is self contained) 

### `apk`, `appbundle` 

<img width="607" alt="image" src="https://github.com/flutter/flutter/assets/6655696/ecc52abe-cd2e-4116-b22a-8385ae3e980d">

<img width="634" alt="image" src="https://github.com/flutter/flutter/assets/6655696/8af8bd33-c0bd-4215-9a06-9652ee019436">

### `macos`, `ios`, `ipa`
Build executables are self-contained and use a newly introduced `OperatingSystemUtils.getDirectorySize`.

<img width="514" alt="image" src="https://github.com/flutter/flutter/assets/6655696/b5918a69-3959-4417-9205-4f501d185257">

<img width="581" alt="image" src="https://github.com/flutter/flutter/assets/6655696/d72fd420-18cf-4470-9e4b-b6ac10fbcd50">

<img width="616" alt="image" src="https://github.com/flutter/flutter/assets/6655696/5f235ce1-252a-4c13-898f-139f6c7bc698">

### `windows`, `linux`, and `web`
Build executables aren't self-contained, and folder size can sometimes overestimate distribution size, therefore their size isn't mentioned (see discussion below).

<img width="647" alt="image" src="https://github.com/flutter/flutter/assets/6655696/7179e771-1eb7-48f6-b770-975bc073437b">

<img width="658" alt="image" src="https://github.com/flutter/flutter/assets/6655696/a6801cab-7b5a-4975-a406-f4c9fa44d7a2">

<img width="608" alt="image" src="https://github.com/flutter/flutter/assets/6655696/ee7c4125-a273-4a65-95d7-ab441edf8ac5">

### Size reporting
When applicable, the printed size matches the OS reported size.

- macOS
    <img width="391" alt="image" src="https://github.com/flutter/flutter/assets/6655696/881cbfb1-d355-444b-ab44-c1a6343190ce">
- Windows
    <img width="338" alt="image" src="https://github.com/flutter/flutter/assets/6655696/3b806def-3d15-48a9-8a25-df200d6feef7">
- Linux   
    <img width="320" alt="image" src="https://github.com/flutter/flutter/assets/6655696/89a4aa3d-2148-4f3b-b231-f93a057fee2b">

## Related issues
Part of #120127
Fixes https://github.com/flutter/flutter/issues/121401
2024-02-07 22:44:19 +00:00
..
analyze_size.dart Unified analytics migration for CodeSizeAnalysis (#138351) 2023-11-14 20:23:40 +00:00
async_guard.dart Enable more lints (#91642) 2021-10-14 22:03:03 -07:00
bot_detector.dart Enable avoid_setters_without_getters (#91067) 2021-10-01 00:58:05 -07:00
build.dart Enable native compilation for windows-arm64 (#141930) 2024-01-26 00:08:20 +00:00
command_help.dart Support disabling animations in the CLI (#132239) 2023-08-23 03:35:22 +00:00
common.dart give throwsToolExit a more useful description (#136694) 2023-10-27 06:18:17 +00:00
config.dart Remove "note that" in our documentation (as per style guide) (#120842) 2023-02-17 22:27:33 +00:00
context.dart Reference GitHub issue in TODO comment (#141582) 2024-01-16 18:56:19 +00:00
dds.dart Reland "Remove references to Observatory (#118577)" (#121606) 2023-02-28 11:57:04 -05:00
deferred_component.dart [reland] Support conditional bundling of assets based on --flavor (#139834) 2023-12-14 05:30:10 +00:00
error_handling_io.dart Fix prefer_mixin TODOs (#136480) 2023-10-16 17:43:31 +00:00
file_system.dart [flutter_tools] Instantiate shutdown hooks before localfilesystem (#110693) 2022-09-02 17:38:56 +00:00
fingerprint.dart Remove unnecessary null checks in flutter_tool (#118857) 2023-01-23 21:43:08 +00:00
io.dart #60704: Pass cert for TLS localhost connection (#106635) 2023-11-16 21:19:07 +00:00
logger.dart Support disabling animations in the CLI (#132239) 2023-08-23 03:35:22 +00:00
multi_root_file_system.dart Fix prefer_mixin TODOs (#136480) 2023-10-16 17:43:31 +00:00
net.dart Improve network resources doctor check (#120417) 2023-02-15 00:02:09 +00:00
os.dart Reverts "Improve build output for all platforms" (#143125) 2024-02-07 22:44:19 +00:00
platform.dart [flutter_tools] simplify platform null safety (#77727) 2021-03-09 12:52:57 -08:00
process.dart Don't show legacy welcome message when analytics are disabled (#140956) 2024-01-25 16:29:42 +01:00
project_migrator.dart Return void from project migrate() (#112897) 2022-10-05 20:22:56 +00:00
signals.dart [flutter_tools] Run ShutdownHooks when handling signals (#134590) 2023-09-13 13:05:29 -07:00
task_queue.dart Remove globals_null_migrated.dart, move into globals.dart (#92861) 2021-11-01 17:18:03 -07:00
template.dart Migrate flutter_tool tool helper files to null safety (#78845) 2021-03-23 10:02:59 -07:00
terminal.dart Reduce animations further when --no-cli-animations is set. (#133598) 2023-11-16 21:05:22 +00:00
time.dart Make version and time in flutter_tool null safe (#78836) 2021-03-23 10:03:23 -07:00
user_messages.dart Remove duplicate global declaration of UserMessages (#142281) 2024-01-26 21:41:16 +00:00
utils.dart Reverts "Improve build output for all platforms" (#143125) 2024-02-07 22:44:19 +00:00
version_range.dart Fix formatting (#137613) 2023-10-31 13:27:26 +00:00
version.dart [flutter_tools] Remove Version.unknown (#124771) 2023-04-15 19:56:41 +00:00