- 71 series and 116 films (years and IMDb IDs), five dayparts and four film events: World Cinema Premiere (Saturday 21:00), The Masters (Sunday 14:00), and the monthly Asia Extreme (first Friday, 23:00) and Passport (first Sunday, 21:00); DayPart.monthWeek for monthly events - AtlasPlayback: every title's original language, checked against its file tracks; ATLAS's pools are read under the rule (original sound tagged, full English subtitles), and a serial keeps only its unbroken clear run (clearRun) - No English-sound filter on ATLAS; its film events use the film channels' exact identity lookup - Shōgun and Dark as guests; Who Killed Sara? moves from Dark Files' list to ATLAS - Paul's ATLAS design kit: guide logo, corner logo, a Blender guide background, 7 s ident, nine block idents with stings (the kit's clips are silent; the ATLAS sound family is new) - 21:00 watershed for anything above TV-14; tests for the rule, monthly events and clear runs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
65 lines
3.5 KiB
Kotlin
65 lines
3.5 KiB
Kotlin
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.plugin.compose")
|
|
}
|
|
/** The release's build number: versionCode is this x 10 plus the edition's channel. */
|
|
val ORBIT_BUILD = 78
|
|
android {
|
|
namespace = "tv.orbit.classic"
|
|
compileSdk = 36
|
|
defaultConfig {
|
|
applicationId = "tv.orbit.classic"
|
|
minSdk = 26
|
|
targetSdk = 36
|
|
versionName = "1.0.0-rc3"
|
|
}
|
|
// Two editions of the same app (Paul, 10 November 2026): the household build, which updates itself between rooms, and the
|
|
// Play build, which only Google Play updates. Both are tv.orbit.classic, so a TV can move between them keeping its data.
|
|
// One version-code counter for both: build x 10 + channel (0 household, 2 Play, 9 a recovery build of that build), so the
|
|
// Play build of a release is just above the household one and the next release is above both. Build 40 is the first:
|
|
// every earlier code, the reserved 390 recovery build among them, is below it (tools/check_version_codes.py).
|
|
flavorDimensions += "edition"
|
|
productFlavors {
|
|
create("household") { dimension = "edition"; versionCode = ORBIT_BUILD * 10 + 0 }
|
|
create("play") { dimension = "edition"; versionCode = ORBIT_BUILD * 10 + 2; versionNameSuffix = "-play" }
|
|
}
|
|
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. Unsigned (Paul, 10 November 2026): nothing is signed until he approves the new signing key.
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
signingConfig = null
|
|
}
|
|
// 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 }
|
|
}
|
|
// The playback test build is household only: there's no Play test build.
|
|
androidComponents { beforeVariants { v -> if (v.buildType == "playtest" && v.productFlavors.any { it.second == "play" }) v.enable = false } }
|
|
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")
|
|
}
|