mirror of
https://github.com/flutter/packages.git
synced 2025-08-06 17:28:42 +08:00

The recent change to add `namespace` to all plugins broke builds for apps using AGP 4.1 or earlier. This conditionalizes setting the namespace based on whether the property exists at all, making it compatible with both AGP 8.0 and AGP <4.2. Updates tooling to enforce this for plugin (but not example app) build.gradle files. Fixes https://github.com/flutter/flutter/issues/125621