apps: drop unused wear, work and datastore dependencies
- Commit
7471d7ddcb87cb80e1cd4e0aecbfbbba7eded20b- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-05 19:51 UTC (7 hours ago)
- Parents
2c0ed18
Camera declared Wear Compose foundation but its watch screens only import androidx.wear.compose.material (no foundation, navigation or lazy references in any source set), so the foundation artifact is removed. Maps declared :library:work but never calls its helpers; its MapOverlayWorker uses WorkManager directly. The project dependency is replaced with the direct androidx.work.runtime.ktx dependency that supplies those classes, matching how health declares it. Communicate and communicate-dev declared datastore-preferences but neither module references androidx.datastore; session persistence goes through :library's DataStoreUtils. Communicate also pulled Room and :library:room into its APK although it owns no Room database: the three line databases live in communicate-dev (devImplementation only). Room is now compileOnly plus testImplementation in the host, so release no longer packages Room or libsqlcipher for databases it does not have, while dev keeps them through communicate-dev. Verified: camera, maps and communicate lint and lintVitalRelease green; camera, maps, communicate and communicate-dev unit tests green (communicate-dev lint green). One communicate test, Y1RegistrationScreensTest, failed once in a full batch with a closed in-memory database and passes on its own re-run.
Diff
camera/AGENTS.md
diff --git a/camera/AGENTS.md b/camera/AGENTS.mdindex 9021053628..86c928fdde 100644--- a/camera/AGENTS.md+++ b/camera/AGENTS.md@@ -6,7 +6,7 @@ _Install: ./install camera (dev by default)._ - Gradle: :camera / dir: camera/ - Package roots present: ui, domain, platform, data, sync - Entry files: MainActivity.kt (sole launcher; routes watches to WearMainActivity), Route.kt (`Route.Camera` / `Route.Settings`), ui/WearMainActivity.kt-- Deps: :library:ml, :library:wearlink, :library:log, Wear Compose (material + foundation)+- Deps: :library:ml, :library:wearlink, :library:log, Wear Compose material - Metadata: metadata_data/camera.md (present) - Rust: yes / screenshotTest: yes (phone + large-tablet preview-rendered over a screenshot-only fake viewfinder scene)
camera/build.gradle.kts
diff --git a/camera/build.gradle.kts b/camera/build.gradle.ktsindex df4d626ed7..53123b953a 100644--- a/camera/build.gradle.kts+++ b/camera/build.gradle.kts@@ -165,7 +165,6 @@ dependencies { // Watch experience (ui/Wear*): Wear Compose + the repo log facade the // watch sync code writes through. implementation(libs.androidx.wear.compose.material)- implementation(libs.androidx.wear.compose.foundation) implementation(project(":library:log")) implementation(libs.kotlinx.coroutines.android) // Mockito is already a cataloged test dep used the same way by
communicate-dev/build.gradle.kts
diff --git a/communicate-dev/build.gradle.kts b/communicate-dev/build.gradle.ktsindex 24ddb997db..4d84192f16 100644--- a/communicate-dev/build.gradle.kts+++ b/communicate-dev/build.gradle.kts@@ -220,7 +220,6 @@ dependencies { implementation(libs.protobuf.java) implementation(libs.libphonenumber) implementation(libs.kotlinx.serialization.json)- implementation(libs.androidx.datastore.preferences) testImplementation(libs.robolectric) testImplementation(libs.androidx.test.core)
communicate/AGENTS.md
diff --git a/communicate/AGENTS.md b/communicate/AGENTS.mdindex 9de0b93750..1f7aac729d 100644--- a/communicate/AGENTS.md+++ b/communicate/AGENTS.md@@ -6,7 +6,7 @@ _Install: ./install communicate (dev by default)._ - Gradle: :communicate / dir: communicate/ - Package roots present: ui, data, domain, intents, service, telephony, notifications, sync - Entry files: MainActivity.kt (sole launcher; routes watches to WearMainActivity), Route.kt, Navigation.kt, ui/WearMainActivity.kt-- Deps: :library:network, :library:image, :library:room, :library:aosp-stubs (compileOnly), :library:wearlink, :library:log, Wear Compose (material + foundation)+- Deps: :library:network, :library:image, :library:aosp-stubs (compileOnly), :library:wearlink, :library:log, Wear Compose (material + foundation) - Metadata: metadata_data/communicate.md (present) - Rust: no (both crates live in `:communicate-dev`) / screenshotTest: yes
communicate/build.gradle.kts
diff --git a/communicate/build.gradle.kts b/communicate/build.gradle.ktsindex e72ee2c516..7ca665d75f 100644--- a/communicate/build.gradle.kts+++ b/communicate/build.gradle.kts@@ -169,15 +169,16 @@ dependencies { // public SDK; the framework provides them at runtime, so they must NOT be // packaged. See :library:aosp-stubs. compileOnly(project(":library:aosp-stubs"))- // Persist the Google Voice / WhatsApp session (cookies, API key, auth, number).- implementation(libs.androidx.datastore.preferences)+ // Google Voice / WhatsApp session persistence goes through :library's DataStoreUtils. // Document-start JS injection to hook fetch/XHR before the GV web app captures them. implementation(libs.androidx.webkit) - // Room runtime for any host-side Room usage in tests; the three line- // databases themselves live in :communicate-dev.- implementRoom(libs)- implementation(project(":library:room"))+ // Room runtime only for host-side unit tests, which open in-memory+ // instances of :communicate-dev's line databases; the three line+ // databases themselves (and their SQLCipher runtime) live in+ // :communicate-dev, which is devImplementation-only.+ compileOnly(libs.androidx.room3.runtime)+ testImplementation(libs.androidx.room3.runtime) // kotlinx.serialization — session/auth data persistence + serviceData blob. implementation(libs.kotlinx.serialization.json)
maps/build.gradle.kts
diff --git a/maps/build.gradle.kts b/maps/build.gradle.ktsindex 0798fceb91..de79e1afbc 100644--- a/maps/build.gradle.kts+++ b/maps/build.gradle.kts@@ -134,7 +134,7 @@ dependencies { implementation(project(":library:downloadservice")) // WorkManager: the map-overlay check worker outlives the settings screen.- implementation(project(":library:work"))+ implementation(libs.androidx.work.runtime.ktx) // Both sides of the Wear OS sync live in this one APK (same // applicationId and signing, as the WearLink handshake requires):