Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / youpipe / build.gradle.kts

build.gradle.kts63 lines · 2.1 KiBRaw
1plugins {
2 id("common-conventions-app")
3 // androidx.tv, so the TV entry is built on a design system that knows what a D-pad is
4 // (the cast:tv precedent).
5 id("common-conventions-tv")
6 // Listing screenshots come from Compose previews (src/screenshotTest), not from an
7 // instrumented test on a device. Same `:youpipe:metadata` task name either way.
8 id("common-conventions-preview-metadata")
9 alias(libs.plugins.ksp)
10}
11
12launcherIcon {
13 symbol = "play_arrow"
14}
15
16// Google TV hardware runs a 32-bit userspace: an arm64-only APK is rejected at install.
17nativeAbis {
18 armv7 = true
19}
20
21androidComponents {
22 onVariants { variant ->
23 variant.sources.jniLibs?.addStaticSourceDirectory(
24 layout.buildDirectory.dir("rustJniLibs").get().asFile.absolutePath
25 )
26 }
27}
28
29// YouTube (InnerTube) extractor — a Rust port of PipePipeExtractor. See youpipe/src/main/rust/.
30// extraAbis: the .so must also load on 32-bit Google TV.
31rustNativeLib("youpipe_extractor", "youpipe", extraAbis = listOf("armeabi-v7a"))
32
33android {
34 defaultConfig {
35 applicationId = "com.vayunmathur.youpipe"
36 }
37}
38
39dependencies {
40 implementation(project(":library:tv"))
41 implementation(project(":library:image"))
42 implementation(project(":youpipe:extractor"))
43 // Puts the video on a TV through the installed Cast app: a Surface and a PCM pipe, no sockets.
44 implementation(project(":sdk:cast"))
45 implementation(libs.quickjs.kt)
46 implementation(libs.androidx.webkit)
47
48 implementRoom(libs)
49 implementation(project(":library:room"))
50
51 implementation(libs.androidx.media3.ui.compose.material3)
52 implementation(libs.androidx.media3.exoplayer)
53 implementation(libs.androidx.media3.exoplayer.dash)
54 implementation(libs.androidx.media3.session)
55 // DefaultHttpDataSource (HttpURLConnection) for progressive; SABR via library:network – no okhttp
56
57 implementation(libs.androidx.work.runtime.ktx)
58 implementation(project(":library:work"))
59
60 // Android-only network – HttpURLConnection + own WS; no direct okhttp dep
61 implementation(project(":library:network"))
62
63}