44be35dc创建于 2025年11月19日历史提交
文件最后提交记录最后更新时间
Upgrade AGP to 8.9.1 (#10458) Upgrades AGP to 8.9.1. A few dependabot PRs are stuck because they are failing with similar error messages: ``` * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction > An issue was found when checking AAR metadata: 1. Dependency 'androidx.browser:browser:1.9.0' requires Android Gradle plugin 8.9.1 or higher. This build currently uses Android Gradle plugin 8.6.0. ``` Blocked PRs: * https://github.com/flutter/packages/pull/9855 * https://github.com/flutter/packages/pull/10045 ## Pre-Review Checklist6 个月前
Upgrade AGP to 8.9.1 (#10458) Upgrades AGP to 8.9.1. A few dependabot PRs are stuck because they are failing with similar error messages: ``` * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction > An issue was found when checking AAR metadata: 1. Dependency 'androidx.browser:browser:1.9.0' requires Android Gradle plugin 8.9.1 or higher. This build currently uses Android Gradle plugin 8.6.0. ``` Blocked PRs: * https://github.com/flutter/packages/pull/9855 * https://github.com/flutter/packages/pull/10045 ## Pre-Review Checklist6 个月前
README.md

This directory contains a partial snapshot of an old Flutter project; it is intended to replace the corresponding parts of a newly Flutter-created project to allow testing plugin builds with a legacy project.

It was originally created with Flutter 2.0.6. In general the guidelines are:

  • Pieces here should be largely self-contained rather than portions of major project components; for instance, it currently contains the entire android/ directory from a legacy project, rather than a subset of it which would be combined with a subset of a new project's android/ directory. This is to avoid random breakage in the future due to conflicts between those subsets. For instance, we could probably get away with not including android/app/src/main/res for a while, and instead layer in the versions from a new project, but then someday if the resources were renamed, there would be dangling references to the old resources in files that are included here.
  • Updates over time should be minimal. We don't expect that an unchanged project will keep working forever, but this directory should simulate a developer who has done the bare minimum to keep their project working as they have updated Flutter.
  • Updates should be logged below.

The reason for the hybrid model, rather than checking in a full legacy project, is to minimize unnecessary maintenance work. E.g., there's no need to manually keep Dart code updated for Flutter changes just to test legacy native Android build behaviors.

Manual changes to files

The following are the changes relative to running:

flutter create -a java all_packages

and then deleting everything but android/ from it:

  • Added license boilerplate.
  • Replaced jcenter in build.gradle with mavenCentral, due to the jcenter.bintray.com shutdown.
  • Update compileSdkVersion from 30 to flutter.compileSdkVersion in build.gradle to maintain compatibility with plugins that use Flutter's most recently supported API version.
  • Modifies gradle-wrapper.properties to upgrade the Gradle version from 8.4 to 8.11.1. If a user runs into an error with the Gradle version, the warning is clear on how to upgrade the version to one that we support.
  • Modifies settings.gradle to upgrade the Android Gradle Plugin (AGP) from version 8.3.0 (originally set in build.gradle; see bullet below) to 8.9.1. If a user runs into an error with the AGP version, the warning is clear on how to upgrade the version to one that we support.
  • Refactor plugin to use declarative Gradle apply instead of the imperative apply (this includes moving where the Android Gradle Plugin (AGP) version is set from build.gradle to settings.gradle).
  • Modifies settings.gradle to upgrade the Kotlin Gradle Plugin (KGP) from version 1.9.0 to 2.1.0. If a user runs into an error with the AGP version, the warning is clear on how to upgrade the version to one that we support.
  • Modifies gradle.properties to not set android.enableJetifier=true.
  • Update app/build.gradle to enable library desugaring to support interactive_media_ads plugin.