plugins {
    id 'com.android.application' version '8.13.2' apply false
    id 'com.android.library' version '8.13.2' apply false
    id 'org.jetbrains.kotlin.android' version '2.3.0' apply false
    id 'org.jetbrains.kotlin.plugin.compose' version '2.3.0' apply false
    id 'org.jetbrains.kotlin.kapt' version '2.3.0' apply false
    id 'org.jetbrains.kotlin.plugin.serialization' version '2.3.0' apply false
    id 'org.jetbrains.kotlin.plugin.parcelize' version '2.3.0' apply false
    id 'com.google.devtools.ksp' version '2.3.4' apply false
    id 'com.google.gms.google-services' version '4.4.2' apply false
    id 'io.gitlab.arturbosch.detekt' version '1.23.8' apply false
}

ext.kotlinVersion = '2.3.0'

// Detekt на НАШИХ модулях (vendor-форк talk-android не линтуем — чужой код).
subprojects {
    if (path != ':vendor:talk-app') {
        apply plugin: 'io.gitlab.arturbosch.detekt'
        detekt {
            buildUponDefaultConfig = true
            parallel = true
            config.setFrom(rootProject.file('config/detekt/detekt.yml'))
            baseline = file("$projectDir/detekt-baseline.xml")
        }
        dependencies {
            detektPlugins 'io.gitlab.arturbosch.detekt:detekt-formatting:1.23.8'
        }
    }
}
