Skip to content

Automatically detect which assets are needed #249

Closed

Description

@FlutterIssues

Issue by Hixie
Tuesday Nov 03, 2015 at 18:14 GMT
Originally opened as https://github.com/flutter/engine/issues/1914


We should find a way to automatically determine what assets are needed. For instance, we could have constants for each material design icon, rather than using strings to identify them, and we could then determine, when the app is snapshotted, which of the constants get referred to.

Activity

  1. added this to the milestone on Nov 9, 2015
  2. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    Author

    Comment by j9brown
    Tuesday Nov 03, 2015 at 18:57 GMT


    This sort of thing could be quite useful if developers ship multiple
    versions of apps optimized for different targets by allowing unused assets
    to be stripped out.

  3. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Aug 17, 2016
  4. modified the milestones: , on Aug 17, 2016
  5. Hixie commented on Aug 17, 2016

    @Hixie
    Contributor

    We don't need this for the icons anymore now that we use a font and the font is small enough that we don't care. Still would be good to do this eventually.

  6. Hixie commented on Jun 6, 2017

    @Hixie
    Contributor

    It's not clear how we would do this. We're going to close this for now and open a new bug when we have a clearer idea of how to address it.

  7. github-actions commented on Sep 4, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    frameworkflutter/packages/flutter repository. See also f: labels.toolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions