core/extensions.gradle

41 lines
1.5 KiB
Groovy
Raw Permalink Normal View History

2020-11-25 12:40:45 +00:00
allprojects {
ext {
2021-11-24 07:52:27 +00:00
projectByName = { String name ->
for (subproject in rootProject.subprojects) {
if (subproject.name == name) {
return subproject
}
}
return null
}
2020-11-25 12:40:45 +00:00
2021-11-24 07:52:27 +00:00
internalProject = { String name ->
projectByName(name)
}
2020-11-25 12:40:45 +00:00
allTargetsConfiguration = { ->
kotlin {
targets.all {
compilations.all {
kotlinOptions {
freeCompilerArgs += [
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true"
]
}
}
}
}
}
2021-11-24 07:52:27 +00:00
mppProjectWithSerializationPresetPath = "${rootProject.projectDir.absolutePath}/mppProjectWithSerialization.gradle"
mppJavaProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJavaProject.gradle"
mppJsProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppJsProject.gradle"
mppAndroidProjectPresetPath = "${rootProject.projectDir.absolutePath}/mppAndroidProject.gradle"
defaultAndroidSettingsPresetPath = "${rootProject.projectDir.absolutePath}/defaultAndroidSettings.gradle"
publishGradlePath = "${rootProject.projectDir.absolutePath}/publish.gradle"
2020-11-25 12:40:45 +00:00
}
}