Add namespace to Android plugin templates (#126354)

Adds the `namespace` property necessary for AGP 8 compatibility to the plugin templates, with the conditional logic to ensure that it doesn't break AGP <4.2, so that new plugins will be maximally compatible.

Part of https://github.com/flutter/flutter/issues/125181
This commit is contained in:
stuartmorgan
2023-05-12 15:16:06 -07:00
committed by GitHub
parent 9c72f5a7e6
commit aa230140e7
4 changed files with 83 additions and 0 deletions

View File

@@ -22,6 +22,10 @@ rootProject.allprojects {
apply plugin: 'com.android.library'
android {
if (project.android.hasProperty("namespace")) {
namespace '{{androidIdentifier}}'
}
compileSdkVersion {{compileSdkVersion}}
compileOptions {