Skip to content

Create an injectable flutter tool customization mechanism #16204

Closed

Description

@xster

For instance to use a specific code signing scheme.
Maybe use flutter config for override mapping.

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Apr 4, 2018
  2. tvolkert commented on Apr 4, 2018

    @tvolkert
    Contributor

    You want to use AppContext:

    You'd create some abstraction for whatever behavior you want to be swappable, then inject a default implementation of that abstraction here:

    fallbacks: <Type, Generator>{

    Then vendors (or different places in flutter_tools) could call context.run(overrides: ...) to override the behavior provided by the abstraction.

    We do this already for things like Artifacts (or FileSystem in tests).

  3. xster commented on Apr 4, 2018

    @xster
    MemberAuthor

    Where would the vendor injection code live? In a different google_flutter_tools repo?

  4. tvolkert commented on Apr 4, 2018

    @tvolkert
    Contributor

    It's up to the vendor. Within Google, we have a shim main() that calls into flutter_tools::main() within an overridden context.

  5. added
    c: contributor-productivityTeam-specific productivity, code health, technical debt.
    and removed on Apr 23, 2018
  6. tvolkert commented on Dec 19, 2018

    @tvolkert
    Contributor

    Closing as a dup of #25377

  7. github-actions commented on Aug 31, 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 Aug 31, 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

    c: contributor-productivityTeam-specific productivity, code health, technical debt.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