Files
OrbitTv/android/app/build.gradle.kts
T
pauljdandClaude Opus 5.5 1e0cd4cdb4 Smart setup v2 (candidate, for review): channel-relative slots, balanced dayparts, ratings, whole collections, seasons
- Slots judged against the channel itself: a genre nearly every pick shares
  doesn't decide where a title goes; the age rating does, then genre.
- One-kind channels play all day; mixed ones are balanced by running time, so a
  slot that would run out within a week is topped up from one with plenty, and
  adult titles never leave Late.
- Age ratings normalised across countries (US, UK, FSK, Australia, Brazil and
  ages); unknown is never Kids.
- Collections read a page at a time up to 5,000 members, with complete/total
  kept; an old capped copy is read again once.
- From a collection in Browse, with Add all and an incomplete notice.
- Optional season per channel, with dates; the Director only suggests one.
- Film channels: stars are suggested, applied only on approval. Core prefers
  series. Shaped channels rest files six days.
- Regression fixtures from the Hallmark Christmas and Crunchyroll collections.

Not installed: kept on this branch until reviewed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-07 09:00:31 +00:00

43 lines
1.8 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 = 245
versionName = "0.108.85-smart-setup-v2-candidate"
}
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")
}
}
// 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")
}