Skip to content

Migrate addTaskForPrintBuildVariants and isFlutterAppProject to new agp dsl - #183849

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
gmackall:small_agp_dsl_migration
Mar 19, 2026
Merged

Migrate addTaskForPrintBuildVariants and isFlutterAppProject to new agp dsl#183849
auto-submit[bot] merged 3 commits into
flutter:masterfrom
gmackall:small_agp_dsl_migration

Conversation

@gmackall

@gmackallgmackall commented Mar 18, 2026

Copy link
Copy Markdown
Member

Migrate addTaskForPrintBuildVariants and isFlutterAppProject to new agp dsl

part of #181557

@github-actionsgithub-actionsBot added platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Mar 18, 2026
project.extensions.getByType(ApplicationExtension::class.java)

// Avoid new usages this class is not part of the public AGP DSL.
private fun getAndroidAppExtensionOrNull(project: Project): AbstractAppExtension? =

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also deleted this as it was unused

@gmackallgmackall added the CICD Run CI/CD label Mar 18, 2026
@github-actionsgithub-actionsBot removed the CICD Run CI/CD label Mar 18, 2026
@gmackall
gmackall marked this pull request as ready for review March 18, 2026 19:00
@gmackall
gmackall requested a review from a team as a code ownerMarch 18, 2026 19:00
@gmackallgmackall added the CICD Run CI/CD label Mar 18, 2026

@gemini-code-assistgemini-code-assistBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request migrates addTaskForPrintBuildVariants and isFlutterAppProject to use the new AGP DSL, replacing deprecated AbstractAppExtension with ApplicationExtension and AndroidComponentsExtension. The changes involve updating the Gradle plugin and test files to reflect these API changes. The code review focuses on ensuring the correctness of the migration and adherence to the repository's style guide.

@gmackallgmackall added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 19, 2026
@auto-submit
auto-submitBot added this pull request to the merge queueMar 19, 2026
Merged via the queue into flutter:master with commit 8ad8ba0Mar 19, 2026
152 checks passed
@flutter-dashboardflutter-dashboardBot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 19, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 20, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 21, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 21, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 21, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 22, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 22, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 23, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 23, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 23, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 23, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 24, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 24, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 24, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 24, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 24, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 24, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 25, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 25, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 25, 2026
mboetger pushed a commit to mboetger/flutter that referenced this pull request Mar 26, 2026
…ew agp dsl (flutter#183849)
Migrate addTaskForPrintBuildVariants and isFlutterAppProject to new agp
dsl
---------
Co-authored-by: Gray Mackall <mackall@google.com>
ahmedsameha1 pushed a commit to ahmedsameha1/flutter that referenced this pull request Apr 14, 2026
…ew agp dsl (flutter#183849)
Migrate addTaskForPrintBuildVariants and isFlutterAppProject to new agp
dsl
---------
Co-authored-by: Gray Mackall <mackall@google.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICDRun CI/CDplatform-androidAndroid applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@gmackall@reidbaker@mackall-work