Skip to content

Support library modules with AGP9 new DSL#1905

Open
fabiomachuca-w wants to merge 1 commit into
raphw:masterfrom
fabiomachuca-w:agp9-newdsl-library
Open

Support library modules with AGP9 new DSL#1905
fabiomachuca-w wants to merge 1 commit into
raphw:masterfrom
fabiomachuca-w:agp9-newdsl-library

Conversation

@fabiomachuca-w
Copy link
Copy Markdown

The Android 9 pull request only fixes AGP 9 with new DSL enabled for application modules, but library modules still fail since they do not have an ApplicationExtension.

This pull request reverts some of the changes from the original pull request and updates it to work with all types of Android Gradle modules. The rationale for the changes:

  • AndroidComponentsExtension is supported by all the Android Gradle Plugin versions supported by Byte Buddy, as it already existed in version 7.2.
  • CommonExtension is supported all the way back to 7.2 and all the way up to 9.1, and works with the new DSL disabled or enabled.

Verified the following projects build successfully with these changes:

  • Dummy Android application project on AGP 7.2.0.
  • Dummy Android library project on AGP 8.10.0.
  • Dummy Android application project on AGP 9.1.0 with new DSL enabled.
  • Android library project on 9.1.0 with new DSL disabled.
  • Android library project on 9.1.0 with new DSL enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant