Skip to content

Instantly share code, notes, and snippets.

@landarskiy
Created November 15, 2022 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save landarskiy/821363259ae21276fc1fca6c9746ed93 to your computer and use it in GitHub Desktop.
Save landarskiy/821363259ae21276fc1fca6c9746ed93 to your computer and use it in GitHub Desktop.
class AndroidComposeConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
extensions.findByType(ApplicationExtension::class.java)?.apply {
configureAndroidCompose(this)
}
extensions.findByType(LibraryExtension::class.java)?.apply {
configureAndroidCompose(this)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment