You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
939 B
30 lines
939 B
2 months ago
|
import org.jetbrains.compose.ComposeExtension
|
||
|
|
||
|
group "com.example"
|
||
|
version "1.0-SNAPSHOT"
|
||
|
|
||
|
allprojects {
|
||
|
repositories {
|
||
|
google()
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
afterEvaluate {
|
||
|
extensions.findByType(ComposeExtension::class.java)?.apply {
|
||
|
val kotlinGeneration = project.property("kotlin.generation")
|
||
|
val composeCompilerVersion = project.property("compose.compiler.version.$kotlinGeneration") as String
|
||
|
kotlinCompilerPlugin.set(composeCompilerVersion)
|
||
|
val kotlinVersion = project.property("kotlin.version.$kotlinGeneration") as String
|
||
|
kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=$kotlinVersion")
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
plugins {
|
||
|
kotlin("multiplatform") apply false
|
||
|
kotlin("android") apply false
|
||
|
id("com.android.application") apply false
|
||
|
id("com.android.library") apply false
|
||
|
id("org.jetbrains.compose") apply false
|
||
|
}
|