Skip to content

Conversation

@Luna712
Copy link
Contributor

@Luna712 Luna712 commented Nov 25, 2025

This adds a convenience compat class that supports backwards compatibility as well as support for LibraryExtension, which will he required with AGP9.

Upgrading to AGP 9 will also require extension developers to replace BaseExtension in the Project.android declaration with LibraryExtension, and also replace compileSdkVersion with compileSdk outside of defaultConfig, as well as move targetSdk to a new lint block, and remove apply(plugin = "kotlin-android") since AGP 9 has built-in Kotlin, that is no longer supported.

This should have no affecf for those that don't upgrade to AGP 9, or those you don't decide to use LibraryExtension in AGP 8 which is also supported.

This adds a convenience compat class that supports backwards compatibility as well as support for LibraryExtension, which will he required with AGP9.

Upgrading to AGP 9 will also require extension developers to replace BaseExtension in the `Project.android` declaration with LibraryExtension, and also replace `compileSdkVersion` with `compileSdk` outside of `defaultConfig`, as well as move `targetSdk` to a new lint block, and remove `apply(plugin = "kotlin-android")` since AGP 9 has built-in Kotlin, that is no longer supported.

This should have no affecf for those that don't upgrade to AGP 9, or those you don't decide to use LibraryExtension in AGP 8 which is also supported.
@Luna712
Copy link
Contributor Author

Luna712 commented Nov 25, 2025

Note: this also depends on #8 since AGP 9 requires Gradle 9

@Luna712
Copy link
Contributor Author

Luna712 commented Nov 25, 2025

Also kinda depends on #9 as it was built on top of that one. So no guarantee it works without that one.

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