Files
OrbitTv/android/app/build.gradle.kts
T
pauljdandClaude Opus 5.5 5c8a33ffb1 Playtest build: a separate app with an adb-only file player for AVI and frame-rate tests
tv.orbit.classic.playtest has its own data and Orbit's own screens switched off,
so it can't reach the household's schedules, Taste or Continue watching. It plays
only the ten approved clips (checked by SHA-256) through Orbit's own player set-up,
container rule and frame-rate matcher, with each switch set per run. Each run
covers seeking, reopening (recovery), one retry on error, and the no-decoder case.
verify.sh now fails if the hook ever reaches the release APK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:31:50 +00:00

52 lines
2.4 KiB
Kotlin

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.plugin.compose")
}
android {
namespace = "tv.orbit.classic"
compileSdk = 36
defaultConfig {
applicationId = "tv.orbit.classic"
minSdk = 26
targetSdk = 36
versionCode = 315
versionName = "0.123.0-player"
}
buildFeatures { compose = true }
// The finished build for the TVs (Paul, 6 November 2026: the test build stuttered on the box). Not debuggable, so
// Android compiles it fully; signed with the same key as the test builds, so it installs over them keeping everything.
buildTypes {
release {
isMinifyEnabled = false
signingConfig = signingConfigs.getByName("debug")
}
// The playback test build (Paul, 9 November 2026): a separate app, tv.orbit.classic.playtest, with its own data, so it
// can never touch the household's schedules, Taste or Continue watching. Its adb-only test player lives in
// src/playtest and is in no other build; Orbit's own screens are switched off in it. Never shipped.
create("playtest") {
initWith(getByName("release"))
applicationIdSuffix = ".playtest"
versionNameSuffix = "-playtest"
matchingFallbacks += "release"
}
}
// Android logging and the like do nothing in unit tests, so whole flows (a channel read from a fake server) can run.
testOptions { unitTests.isReturnDefaultValues = true }
compileOptions { sourceCompatibility = JavaVersion.VERSION_17; targetCompatibility = JavaVersion.VERSION_17 }
}
dependencies {
implementation(platform("androidx.compose:compose-bom:2025.08.01"))
implementation("androidx.activity:activity-compose:1.10.1")
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.9.2")
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.tv:tv-material:1.0.0")
implementation("androidx.media3:media3-exoplayer:1.8.0")
implementation("androidx.media3:media3-ui:1.8.0")
// QR codes for the phone page (Create your own): pure Java, no Google services.
implementation("com.google.zxing:core:3.5.3")
testImplementation("junit:junit:4.13.2")
testImplementation("org.json:json:20250107")
}