Recently Written · git

subread-overlay

Shows the lines of an .srt over any Android media player, in time with it. Tap a word to look it up.

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

Log | Files | Refs


core/build.gradle.kts (838 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 timing can be tested on a laptop.
8 java {
9     sourceCompatibility = JavaVersion.VERSION_17
10     targetCompatibility = JavaVersion.VERSION_17
11 }
12 kotlin {
13     compilerOptions { jvmTarget.set(JvmTarget.JVM_17) }
14 }
15 
16 dependencies {
17     testImplementation(libs.junit)
18     // Property tests. It replaces loops over java.util.Random written by hand: it shrinks a
19     // failing input to the smallest one and prints the seed.
20     testImplementation(libs.kotest.property)
21     testImplementation(libs.kotlinx.coroutines.core)
22 }
23 
24 tasks.test {
25     useJUnit()
26     testLogging {
27         events("failed")
28         exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
29     }
30 }