Skip to content

[AGP 9] Restructure addFlutterTasks for separate library and app plugin logic #184409

Open

Description

@jmagman

Background

AGP 9 transitions exclusively to the new DSL interfaces and hides the legacy variant API. To opt into the new DSL, the Flutter Gradle Plugin should align with the plugin structure that AGP uses. Separating the task addition logic into distinct library and application execution paths will make the rest of the migration easier to apply.

Work

  • Restructure addFlutterTasks to separate the code that runs on libraries from the code that runs on apps.
  • Evaluate keeping a single method that handles shared logic in a "both" section first, followed by the specific library and app sections.
  • Add tests to validate the updated logic.

Activity

  1. added
    platform-androidAndroid applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    t: gradle"flutter build" and "flutter run" on Android
    team-androidOwned by Android platform team
    on Mar 31, 2026
  2. changed the title [-][tool] Restructure addFlutterTasks for separate library and app plugin logic[/-] [+][AGP 9] Restructure addFlutterTasks for separate library and app plugin logic[/+] on Mar 31, 2026
  3. added
    P2Important issues not at the top of the work list
    triaged-androidTriaged by Android platform team
    on Apr 14, 2026
  4. added a commit that references this issue on Oct 12, 2026
  5. added a commit that references this issue on Oct 29, 2026
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

    P2Important issues not at the top of the work listplatform-androidAndroid applications specificallyt: gradle"flutter build" and "flutter run" on Androidteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions