hex/android/benchmark/typing/gate-classpath.gradle
Ryan Vogel 1879466fc2 Gate Android typing quality on held-out sentences per language
Run the existing touch replay against the app classes on the host JVM. Score noisy word-error reduction, changes to correct words, omitted accents and named critical cases against one shared policy so a noisy-WER win cannot mask bad corrections. The legacy APK replay and historical metrics remain available.

Verified on the Studio: all six noisy counts match prior Android results; the full gate returned 1 and English alone returned 0. Compared all 12,000 references, hit keys and coordinates with their existing held-out exports. code-shape reported no hard problems.
2026-11-22 09:09:01 -05:00

14 lines
794 B
Groovy

// Use the app's own compiled engine, platform stubs and resolved Kotlin runtime.
gradle.projectsEvaluated {
def app = gradle.rootProject.project(':app')
app.tasks.register('typingGateClasspath') {
dependsOn app.tasks.named('compileDebugKotlin')
doLast {
def kotlin = app.configurations.debugRuntimeClasspath.incoming.artifactView {
componentFilter { id -> id instanceof ModuleComponentIdentifier && id.group == 'org.jetbrains.kotlin' && id.module == 'kotlin-stdlib' }
}.files.singleFile
def classes = app.tasks.named('compileDebugKotlin').get().destinationDirectory.get().asFile
new File(app.property('gateClasspath')).text = app.files(classes, kotlin, app.android.bootClasspath).asPath
}
}
}