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

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

build.gradle.kts52 lines · 2.3 KiBRaw
1plugins {
2 id("common-conventions-app")
3 // androidx.tv, so the in-app TV mode is built on a design system that knows what a
4 // D-pad is. Named alongside (the cast:tv precedent): the launcherIcon/nativeAbis
5 // accessors are generated from directly-applied plugins.
6 id("common-conventions-tv")
7 // Listing screenshots come from Compose previews (src/screenshotTest), not from an
8 // instrumented test on a device. Same `:launcher:metadata` task name either way.
9 id("common-conventions-preview-metadata")
10 alias(libs.plugins.ksp)
11}
12
13launcherIcon {
14 symbol = "apps"
15}
16
17// Google TV hardware runs a 32-bit userspace: an arm64-only APK is rejected at install.
18nativeAbis {
19 armv7 = true
20}
21
22android {
23 defaultConfig {
24 applicationId = "com.vayunmathur.launcher"
25 }
26}
27
28dependencies {
29 implementRoom(libs)
30 implementation(project(":library:room"))
31 // Both sides of the watch-launcher favorites sync live in this one APK
32 // (same applicationId and signing, as the WearLink handshake requires):
33 // sync/WearLauncherSync publishes the phone hotseat snapshot,
34 // sync/WearLinkBridge receives it on a watch. FormFactor picks the side.
35 implementation(project(":library:wearlink"))
36 // Watch experience (ui/Wear*): Wear Compose + the repo log facade the
37 // watch platform/sync code writes through.
38 implementation(libs.androidx.wear.compose.material)
39 implementation(libs.androidx.wear.compose.foundation)
40 implementation(project(":library:log"))
41 implementation(libs.androidx.datastore.preferences)
42 // Declared rather than relied on transitively: a launcher is mostly motion, so `Animatable`,
43 // `animateBounds` and the animation specs are load-bearing here rather than incidental.
44 implementation(libs.androidx.compose.animation)
45 // Direct (not transitive): pins coroutines at the catalog version (1.11.0) for the
46 // app graph. A transitive bom holds core at 1.9.0 while coroutines-test resolves
47 // 1.11.0, and 1.11.0's test artifact calls a core method added after 1.9.0, so every
48 // coroutine-based androidTest dies in NoSuchMethodError. Email already ships 1.11.0.
49 implementation(libs.kotlinx.coroutines.android)
50 // DAO tests use a real in-memory Room database via the bundled sqlite driver.
51 testImplementation(libs.androidx.sqlite.bundled.jvm)
52}