Recently Written · git

subread-android

SubRead for Android: times an audiobook against its ebook on the device

git clone https://github.com/equwal/subread-android

Log | Files | Refs


core/build.gradle.kts (958 bytes)

1 import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2 
3 plugins {
4     alias(libs.plugins.kotlin.jvm)
5 }
6 
7 // Plain JVM on purpose: no Android types in here, so the whole alignment
8 // engine can be tested on a laptop against the reference implementation.
9 java {
10     sourceCompatibility = JavaVersion.VERSION_17
11     targetCompatibility = JavaVersion.VERSION_17
12 }
13 kotlin {
14     compilerOptions { jvmTarget.set(JvmTarget.JVM_17) }
15 }
16 
17 dependencies {
18     implementation(libs.jsoup)
19     testImplementation(libs.junit)
20     testImplementation(libs.kotlinx.serialization.json)
21 }
22 
23 tasks.test {
24     useJUnit()
25     maxHeapSize = "2g"
26     // -Pgolden=<case> prints where that fixture first departs from the reference.
27     providers.gradleProperty("golden").orNull?.let { systemProperty("golden.case", it) }
28     testLogging {
29         events("failed")
30         showStandardStreams = true
31         exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
32     }
33 }