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

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

build.gradle.kts64 lines · 2.4 KiBRaw
1plugins {
2 id("common-conventions-app")
3 // Listing screenshots come from Compose previews (src/screenshotTest), not from an
4 // instrumented test on a device. Same `:music:metadata` task name either way.
5 id("common-conventions-preview-metadata")
6 alias(libs.plugins.ksp)
7}
8
9launcherIcon {
10 symbol = "music_note"
11}
12
13// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.
14nativeAbis {
15 armv7 = true
16}
17
18android {
19 defaultConfig {
20 applicationId = "com.vayunmathur.music"
21 }
22}
23
24dependencies {
25 implementation(libs.androidx.work.runtime.ktx)
26
27 implementRoom(libs)
28 implementation(project(":library:room"))
29
30 implementation(libs.androidx.media3.exoplayer)
31 implementation(libs.androidx.media3.session)
32
33 // Android Auto templates (P-car-dock): AndroidX Car App Library. `app`
34 // provides the CarAppService/Session/Screen/template model;
35 // `app-projected` provides the phone-projected (Android Auto) host
36 // connection. Only pulled into the car code path (service/car/) — the
37 // phone UI and the Media3 playback path are untouched.
38 implementation(libs.androidx.car.app)
39 implementation(libs.androidx.car.app.projected)
40
41 testImplementation(libs.androidx.car.app.testing)
42
43 implementation(project(":library:image"))
44
45 // Casting. `:sdk:cast` owns no sockets and needs no network permission - which is the point,
46 // because this app deliberately has no INTERNET permission. `:library:media` is here for the
47 // Opus transcoder: every cast audio track is 48 kHz Opus, and most of the library is not.
48 implementation(project(":sdk:cast"))
49 implementation(project(":library:media"))
50 implementation(project(":library:wearlink"))
51 implementation(libs.kotlinx.serialization.json)
52
53 // Watch experience (ui/Wear*): Wear Compose + the repo log facade the
54 // watch store/bridge code writes through. Both form factors live in
55 // this one APK (same applicationId and signing, as the WearLink
56 // handshake requires); FormFactor picks the side at runtime.
57 implementation(libs.androidx.wear.compose.material)
58 implementation(libs.androidx.wear.compose.foundation)
59 implementation(project(":library:log"))
60 implementation(libs.kotlinx.coroutines.android)
61
62 // Car-view store-listing screenshots render through the shared host renderer.
63 add("screenshotTestImplementation", project(":library:carhost"))
64}