Repository navigation
specify assets that are for development only #5813
Description
Activity
- addedtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
on Sep 12, 2016 Do Android or iOS OEM build systems have equivalents we should either use or match here?
Incidentally Google internal flutter users can do something like this because they use bazel, and the flutter_application bazel rule takes a list of assets (instead of getting them from flutter.yaml). We have a very simple build system built into the
fluttertool on top of flutter.yaml, sounds like this is asking for something a bit more sophisticated.- addedc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilitya: assetsPackaging, accessing, or using assetsPackaging, accessing, or using assets
on May 29, 2018 Are there any plans to bring the internal bazel rules for flutter out into the open source bazel?
We are likely going to pass over flutter because we spent a lot of effort setting up that "one true build" with bazel.
Reacted by Dimiter 'malkia' Stanev- modified the milestones: This milestone has been deleted, This milestone has been deleted
on Jan 7, 2020 - addedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter project
on May 29, 2020 - Reacted by Tsung-Han Yu
Imagine having local configuration file with credentials used only by devs.
In production this file is delivered by server environment, so the local file should not be included in the build.- addedteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
on Jul 8, 2023 We have a use case where we are a published package but would like to denote that some of the assets are for testing usage only. I feel like a
dev_assets:section would be ideal for this kind of usage.We have a use case where we are a published package but would like to denote that some of the assets are for testing usage only. I feel like a
dev_assets:section would be ideal for this kind of usage.我们有一个用例,其中我们是已发布的包,但想指出某些资产仅用于测试使用。我觉得dev_assets:部分非常适合这种用法。I faced the same scenario: I wrote a general widget package and made a golden test on a widget that required some images.
- addedtool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.Issues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.
on Jun 30, 2025
It would be useful to specify some assets that should be loaded only during development and ignored when doing a
releasebuild.I'm proposing adding a
dev_assetsoption toflutter.ymlto mimic the similar concept ofdev_dependenciesin the standard Dart pubspec.yaml.This feature is in someway related #4014 in that you need a way to know in your code that
dev_assetsare available to use.