mirror of
https://github.com/openMF/mifos-mobile.git
synced 2026-02-06 11:26:51 +00:00
19 lines
628 B
Kotlin
19 lines
628 B
Kotlin
import com.android.build.api.dsl.ApplicationExtension
|
|
import org.gradle.api.Plugin
|
|
import org.gradle.api.Project
|
|
import org.gradle.kotlin.dsl.apply
|
|
import org.gradle.kotlin.dsl.getByType
|
|
import org.mifos.mobile.configureAndroidCompose
|
|
|
|
class AndroidApplicationComposeConventionPlugin : Plugin<Project> {
|
|
override fun apply(target: Project) {
|
|
with(target) {
|
|
apply(plugin = "com.android.application")
|
|
apply(plugin = "org.jetbrains.kotlin.plugin.compose")
|
|
|
|
val extension = extensions.getByType<ApplicationExtension>()
|
|
configureAndroidCompose(extension)
|
|
}
|
|
}
|
|
}
|