File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
build-logic/convention/src/main/kotlin/com/twix/convention Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 11package com.twix.convention
22
3+ import com.android.build.api.dsl.ApplicationExtension
34import com.android.build.api.dsl.LibraryExtension
45import com.twix.convention.extension.*
56import org.gradle.kotlin.dsl.configure
@@ -8,8 +9,16 @@ import org.gradle.kotlin.dsl.dependencies
89class AndroidComposeConventionPlugin : BuildLogicConventionPlugin ({
910 applyPlugins("org.jetbrains.kotlin.plugin.compose")
1011
11- extensions.configure<LibraryExtension > {
12- configureCompose(this)
12+ pluginManager.withPlugin("com.android.application") {
13+ extensions.configure<ApplicationExtension > {
14+ configureCompose(this)
15+ }
16+ }
17+
18+ pluginManager.withPlugin("com.android.library") {
19+ extensions.configure<LibraryExtension > {
20+ configureCompose(this)
21+ }
1322 }
1423
1524 dependencies {
You can’t perform that action at this time.
0 commit comments