Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[url_launcher_android] Set
buildFeatures.buildConfig
to true for co…
…mpatibility with AGP 8.0+ (#4535) This flag controls the generation of the BuildConfig class, which is [used to guard a log line](https://github.com/flutter/packages/blob/05fdd1337f3f9e2335144f4fe20e839743f4efa1/packages/url_launcher/url_launcher_android/android/src/main/java/io/flutter/plugins/urllauncher/UrlLauncher.java#L66). In AGP 7.x this flag [defaulted to true](https://developer.android.com/reference/tools/gradle-api/7.0/com/android/build/api/dsl/BuildFeatures#buildConfig:kotlin.Boolean). AGP 8.x [changed it to default to false](https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/dsl/BuildFeatures#buildConfig()). This PR sets it explicitly to true, so we don't rely on defaults, and fixes an error for people using AGP 8.0+. I also upgraded an old AGP version while I was at it. Fixes flutter/flutter#128204.
- Loading branch information