-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed as duplicate of#70182
Closed as duplicate of#70182
Copy link
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Use Case
Users would like to be able to specify where the build artifacts are sent to outside of the standard build
directory within a flutter project.
Example: automating web builds so that users can have a daily build based on business rules that are placed in a directory that a cron job checks
Proposal
Similar to what has been completed for web
and aar
builds, add functionality to all build commands to allow user to specify custom output directory for build artificacts.
All relevant build subcommands can be found in: https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/commands/build.dart#L24-#L44
Commands to be refactored
-
BuildAarCommand
-
BuildApkCommand
-
BuildIOSCommand
-
BuildIOSFrameworkCommand
-
BuildMacOSFrameworkCommand
-
BuildIOSArchiveCommand
-
BuildBundleCommand
-
BuildWebCommand
-
BuildMacosCommand
-
BuildLinuxCommand
-
BuildWindowsCommand
Commands that are unable to be refactored easily ❌
BuildAppBundleCommand
– configuration for build directory is hard coded in a flutter project'sandroid/build.gradle
; additional refactoring would be necessary to pass a directory from tools cli args to grade file
halc1en and MolotovCherryschneith, DzianisMatveyeu, BenelliFurtado, utamori, TechAurelian2 and 1 more
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team