mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
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.
14 lines
794 B
Groovy
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
|
|
}
|
|
}
|
|
}
|