51 lines
1.6 KiB
Groovy
51 lines
1.6 KiB
Groovy
buildscript {
|
|
ext {
|
|
agp_version = '9.2.1'
|
|
kotlin_version = '2.3.10'
|
|
kotlin_coroutines_version = '1.10.2'
|
|
navigation_version = "2.9.7"
|
|
hilt_version = '2.59.2'
|
|
room_version = '2.8.4'
|
|
core_version = '1.18.0'
|
|
desugaring_version = '2.1.3'
|
|
|
|
min_sdk = 24
|
|
target_sdk = 36
|
|
ndk_version = "28.2.13676358"
|
|
|
|
}
|
|
|
|
dependencies {
|
|
// Hilt isn't compatible with the new plugin syntax yet.
|
|
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
|
|
classpath "org.jetbrains.dokka:dokka-gradle-plugin:2.2.0"
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
// Android studio doesn't understand this syntax
|
|
//noinspection GradlePluginVersion
|
|
id "com.android.application" version "$agp_version" apply false
|
|
id "androidx.navigation.safeargs.kotlin" version "$navigation_version" apply false
|
|
//noinspection GradlePluginVersion
|
|
id 'com.android.library' version "$agp_version" apply false
|
|
id "org.jetbrains.kotlin.plugin.parcelize" version "$kotlin_version" apply false
|
|
id "com.google.devtools.ksp" version '2.3.6' apply false
|
|
// We use spotless in the root build.gradle to apply to all modules.
|
|
id "com.diffplug.spotless" version "8.4.0" apply true
|
|
}
|
|
|
|
spotless {
|
|
kotlin {
|
|
target "*/src/**/*.kt"
|
|
ktfmt().kotlinlangStyle()
|
|
licenseHeaderFile("NOTICE")
|
|
}
|
|
|
|
cpp {
|
|
target("*/src/**/cpp/*.cpp", "*/src/**/cpp/*.h", "*/src/**/cpp/*.hpp")
|
|
eclipseCdt().configFile("eclipse-cdt.xml")
|
|
licenseHeaderFile("NOTICE")
|
|
}
|
|
}
|