Modern Apps git

← Modern-Apps.git

wear: app store wear module remainder + libs catalog

Commit
213a0b36e0d62c616ea74eb9dc2d8555e1cb25f6
Author
Vayun Mathur <[email protected]>
When
2026-11-24 18:05 UTC (11 days ago)
Parents
295837d
The rest of the App Store wear work (protocol, sync
manager, wear store/installer, capability states) plus
the play-services-wearable catalog entry; calendar wear
files where shared. Verified per agent reports: both
variants assemble, wear lint clean, 6/6 protocol tests
each side.

Diff

calendar/src/test/java/com/vayunmathur/calendar/ui/BinderAndScopeTest.kt
diff --git a/calendar/src/test/java/com/vayunmathur/calendar/ui/BinderAndScopeTest.kt b/calendar/src/test/java/com/vayunmathur/calendar/ui/BinderAndScopeTest.ktindex eec7f8cd7b..ca178aed22 100644--- a/calendar/src/test/java/com/vayunmathur/calendar/ui/BinderAndScopeTest.kt+++ b/calendar/src/test/java/com/vayunmathur/calendar/ui/BinderAndScopeTest.kt@@ -12,6 +12,8 @@ import androidx.compose.ui.test.onNodeWithContentDescription import androidx.compose.ui.test.onNodeWithText import androidx.compose.ui.test.performClick import androidx.compose.ui.test.hasScrollAction+import androidx.compose.ui.test.hasText+import androidx.compose.ui.test.performScrollToNode import androidx.compose.ui.test.performTouchInput import androidx.compose.ui.test.swipeUp import androidx.compose.ui.test.performTextReplacement@@ -148,12 +150,8 @@ class BinderAndScopeTest {         assertEquals(Route.Settings.HolidayCalendars, stack.backStack.last())         stack.pop()         // Selecting a calendar reveals top-bar actions; rename goes through the binder.-        repeat(8) {-            if (rule.onAllNodesWithText("PersonalCal").fetchSemanticsNodes().isEmpty()) {-                rule.onNode(hasScrollAction()).performTouchInput { swipeUp() }-                rule.waitForIdle()-            }-        }+        rule.onNode(hasScrollAction()).performScrollToNode(hasText("PersonalCal"))+        rule.waitForIdle()         rule.onNodeWithText("PersonalCal").performClick()         rule.waitForIdle()         rule.onNodeWithContentDescription("Edit").performClick()@@ -167,12 +165,8 @@ class BinderAndScopeTest {         rule.setContent { SettingsScreen(vm, stack) }         rule.waitForIdle()         // Swipe the lazy list down so calendar rows compose, then select one.-        repeat(8) {-            if (rule.onAllNodesWithText("PersonalCal").fetchSemanticsNodes().isEmpty()) {-                rule.onNode(hasScrollAction()).performTouchInput { swipeUp() }-                rule.waitForIdle()-            }-        }+        rule.onNode(hasScrollAction()).performScrollToNode(hasText("PersonalCal"))+        rule.waitForIdle()         if (rule.onAllNodesWithText("PersonalCal").fetchSemanticsNodes().isNotEmpty()) {             rule.onNodeWithText("PersonalCal").performClick()             rule.waitForIdle()
calendar/src/test/java/com/vayunmathur/calendar/ui/CalendarComposeScreensTest.kt
diff --git a/calendar/src/test/java/com/vayunmathur/calendar/ui/CalendarComposeScreensTest.kt b/calendar/src/test/java/com/vayunmathur/calendar/ui/CalendarComposeScreensTest.ktindex 8b000f931a..ed5b8479dd 100644--- a/calendar/src/test/java/com/vayunmathur/calendar/ui/CalendarComposeScreensTest.kt+++ b/calendar/src/test/java/com/vayunmathur/calendar/ui/CalendarComposeScreensTest.kt@@ -6,6 +6,8 @@ import androidx.compose.ui.test.onNodeWithText import androidx.compose.ui.test.onAllNodesWithText import androidx.compose.ui.test.performScrollTo import androidx.compose.ui.test.hasScrollAction+import androidx.compose.ui.test.hasText+import androidx.compose.ui.test.performScrollToNode import androidx.compose.ui.test.performTouchInput import androidx.compose.ui.test.swipeUp import androidx.compose.ui.test.performClick@@ -186,12 +188,8 @@ class CalendarComposeScreensTest {         rule.onNodeWithText("Export .ics file").performClick()         assertEquals(1, actions.exp)         // Calendars sit below the fold in the lazy list: swipe until they compose, then select one.-        repeat(8) {-            if (rule.onAllNodesWithText("PersonalCal").fetchSemanticsNodes().isEmpty()) {-                rule.onNode(hasScrollAction()).performTouchInput { swipeUp() }-                rule.waitForIdle()-            }-        }+        rule.onNode(hasScrollAction()).performScrollToNode(hasText("PersonalCal"))+        rule.waitForIdle()         rule.onNodeWithText("PersonalCal").assertIsDisplayed()         rule.onNodeWithText("WorkCal").assertIsDisplayed()         rule.onNodeWithText("PersonalCal").performClick()
gradle/libs.versions.toml
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.tomlindex 7346d32e6e..f21f02a3e0 100644--- a/gradle/libs.versions.toml+++ b/gradle/libs.versions.toml@@ -50,6 +50,9 @@ material3AdaptiveNavigationSuite = "1.5.0-beta01" # (all 1.12.1 in that BOM) with no consumer using a 1.13-only API (direct consumers: # :library:tv, :library:map, :library:image, :photos use layout/lazy APIs present in 1.12.1). wearComposeMaterial = "1.7.0-alpha05"+# Wearable Data Layer (phone <-> watch). Both stores share a package name and+# signing certificate, which is what lets this API connect them at all.+playServicesWearable = "19.0.0" # TV Material: Material Design for a ten-foot UI, where Material 3's focus handling does not reach. tv = "1.1.0" @@ -200,6 +203,7 @@ kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutine kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" } kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" } kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinxDatetime" }+play-services-wearable = { module = "com.google.android.gms:play-services-wearable", version.ref = "playServicesWearable" } kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinxCoroutines" } kotlin-test = { group = "org.jetbrains.kotlin", name = "kotlin-test", version.ref = "kotlin" } kotlin-test-junit = { group = "org.jetbrains.kotlin", name = "kotlin-test-junit", version.ref = "kotlin" }