halkyon/third_party/keyboard_height_plugin/android/build.gradle

53 lines
1.1 KiB
Groovy
Raw Normal View History

group 'com.nschairer.keyboard_height_plugin'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '2.1.0'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.6.0'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugin: 'com.android.library'
android {
compileSdkVersion 34
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 16
}
if (project.android.hasProperty("namespace")) {
namespace 'com.nschairer.keyboard_height_plugin'
}
}
// Halkyon's patch (4 Nov 2026): Kotlin built into the Android Gradle plugin
// (AGP 9, android.builtInKotlin=true) rather than the Kotlin Gradle plugin
// applied here, as Flutter's guide for plugin authors has it.
kotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8
}
}