59 lines
1.2 KiB
Groovy
59 lines
1.2 KiB
Groovy
|
|
group = 'com.linusu.flutter_web_auth_2'
|
||
|
|
version = '1.0-SNAPSHOT'
|
||
|
|
|
||
|
|
buildscript {
|
||
|
|
ext.kotlin_version = '2.1.0'
|
||
|
|
repositories {
|
||
|
|
google()
|
||
|
|
mavenCentral()
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
classpath 'com.android.tools.build:gradle:8.13.0'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
rootProject.allprojects {
|
||
|
|
repositories {
|
||
|
|
google()
|
||
|
|
mavenCentral()
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
apply plugin: 'com.android.library'
|
||
|
|
|
||
|
|
android {
|
||
|
|
compileSdk = 36
|
||
|
|
|
||
|
|
if (project.android.hasProperty("namespace")) {
|
||
|
|
namespace = 'com.linusu.flutter_web_auth_2'
|
||
|
|
}
|
||
|
|
|
||
|
|
compileOptions {
|
||
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
||
|
|
targetCompatibility = JavaVersion.VERSION_11
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
sourceSets {
|
||
|
|
main.java.srcDirs += 'src/main/kotlin'
|
||
|
|
}
|
||
|
|
|
||
|
|
defaultConfig {
|
||
|
|
minSdk = 21
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
implementation 'androidx.browser:browser:1.9.0'
|
||
|
|
implementation 'androidx.activity:activity-ktx:1.10.1'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// 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_11
|
||
|
|
}
|
||
|
|
}
|