Updated on 2026-08-14
This commit is contained in:
parent
eef7bac933
commit
fc173d3a1f
18 changed files with 190 additions and 7 deletions
|
|
@ -20,12 +20,14 @@ internal fun BaseExtension.configureCompilerOptions() {
|
|||
internal fun BaseExtension.configureCompose(project: Project) {
|
||||
val useCompose = with(project.path) {
|
||||
contains(":ui") ||
|
||||
contains(":onboarding") || // TODO: divide on api/impl after migrating all onboarding to module
|
||||
contains(":presentation") ||
|
||||
contains(":app") || // TODO: [REDACTED_JIRA]
|
||||
contains(":impl")
|
||||
contains(Regex(pattern = ":onboarding\$")) || // TODO: divide on api/impl after migrating all onboarding to module
|
||||
contains(Regex(pattern = ":presentation\$")) ||
|
||||
contains(Regex(pattern = ":app\$")) || // TODO: [REDACTED_JIRA]
|
||||
contains(Regex(pattern = ":impl\$"))
|
||||
}
|
||||
|
||||
buildFeatures.compose = useCompose
|
||||
|
||||
if (useCompose) {
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion = project.findVersion(alias = "compose-compiler").requiredVersion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue