Files
custom_cursor/android/build.gradle.kts
T
hans 835183a0c3 Initial commit
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
2026-09-01 15:04:28 +02:00

37 lines
937 B
Kotlin

group = "com.hanskokx.custom_cursor"
plugins {
id("com.android.library")
}
val agpMajor =
com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.substringBefore('.').toInt()
// AGP 9 compiles Kotlin natively (built-in Kotlin); only apply the Kotlin
// Gradle Plugin on older AGP hosts that need it.
if (agpMajor < 9) {
apply(plugin = "org.jetbrains.kotlin.android")
}
android {
namespace = "com.hanskokx.custom_cursor"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
defaultConfig {
minSdk = maxOf(flutter.minSdkVersion, 24)
}
}
project.extensions.configure(
org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension::class.java
) {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11
}
}