TauriTavern/src-tauri/crates/tauritavern/gen/android/buildSrc/build.gradle.kts
Darkatse 955e267831 build(android): move to Gradle 9 and AGP 9
Android Studio now ships JBR 25, which Gradle 8.14 cannot run on. Follow
the Tauri 2.12.3 template: Gradle 9.6.1, AGP 9.3.1 and Kotlin Gradle
Plugin 2.2.10. The Rust build task runs the CLI through ExecOperations,
since Gradle 9 removed Project.exec, and the build uses the
configuration cache. Built-in Kotlin and the new DSL stay off while Tauri
and its plugins apply kotlin-android.

Keep the default ProGuard rules, which already keep every
@JavascriptInterface method, and drop the redundant rule for one bridge.
AGP 9 no longer keeps the constructors of kept classes, so keep the
ComponentRegistrar constructors ML Kit instantiates by reflection.
Remove test dependencies no sources use. compileSdk and targetSdk stay
at 36: targeting 37 needs a local network permission flow first.

Validation: pnpm run check; debug and minified release builds from an
empty generated directory on JBR 25, and a release smoke test of both
JS bridges and the native plugins on an x86_64 emulator.
2026-10-10 20:29:00 -04:00

23 lines
344 B
Kotlin

plugins {
`kotlin-dsl`
}
gradlePlugin {
plugins {
create("pluginsForCoolKids") {
id = "rust"
implementationClass = "RustPlugin"
}
}
}
repositories {
google()
mavenCentral()
}
dependencies {
compileOnly(gradleApi())
implementation("com.android.tools.build:gradle:9.3.1")
}