-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed as duplicate of#70182
Closed as duplicate of#70182
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityteam-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
In native android development we can change the build folder destination adding the line below to the project "build.gradle" file:
allprojects {
repositories {
...
}
buildDir = "C:/dev_build/android/${rootProject.name}/${project.name}"
}
With Flutter I tried @cbracken instructions to create the .flutter_settings file at the home folder with this content: {"build-dir": "somePath"} and I found the following issues:
- It affects all flutter projects.
- The path have to be relative or we get an exception
- The path have to exist beforehand or we get an exception
- After an complete build I found only 3 files in this new path:
frontend_server.d,app.dillandapp.dill.incremental.dill. All the others files went to the default "build" folder inside the project.
Ideally, I think, it should (as in native android):
- Have an absolute path support
- Create the path when it does not exist.
- Have some way to interpolate the project name into the path
- Be a by project configuration.
The reasons to change the build destination that I can think of are:
- To avoid polluting the project folder with generated files
- To avoid copying the build files (>300MB) when doing a backup of the project folder
- To avoid wearing out a SSD when the project is in one
- Put the build files on a faster device to reduce building time
I know that this is not a priority issue for now but it would be nice to have it visited in a near future.
By the way, congratulations on building this amazing framework. I'm really loving Flutter.
flutter build apk --verbose -->build.log
MarcinusX, jamesblasco, Goolpe, ScottS2017, samu-developments and 9 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityteam-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