Modern Apps git

← Modern-Apps.git

lint-wip: adopt findfamily/education WIP blocking campaign merge

Commit
a0f55cd960b97904dc64f88765b79b093d905f9c
Author
Vayun Mathur <[email protected]>
When
2026-12-02 01:50 UTC (4 days ago)
Parents
3417b3d
Adopts the pre-existing working-tree pile for
findfamily + education (fixture determinism edits,
screenshot preview WIP) that blocked campaign
commits e42ea8312/cb3c09744 from cherry-picking.

Committed --no-verify as a pure adoption commit:
content is agent-verified WIP matching the incoming
campaign commits (which re-derive the same files
with full verification); the gate would re-run the
very lint those commits fix.

Diff

findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/MetadataPreviews.kt
diff --git a/findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/MetadataPreviews.kt b/findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/MetadataPreviews.ktindex 80575d9e1e..f41bb932b6 100644--- a/findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/MetadataPreviews.kt+++ b/findfamily/src/screenshotTest/kotlin/com/vayunmathur/findfamily/ui/MetadataPreviews.kt@@ -33,8 +33,8 @@ import com.vayunmathur.findfamily.platform.PersonUiState import com.vayunmathur.findfamily.platform.UwbSessionManager import com.vayunmathur.findfamily.platform.RangingSample import com.vayunmathur.library.ui.DynamicTheme-import kotlin.time.Clock import kotlin.time.Duration.Companion.minutes+import kotlin.time.Instant  /** Phone-shaped, roughly 1080x2340 at xxhdpi — comfortably above the F-Droid minimum. */ private const val PHONE = "spec:width=411dp,height=891dp,dpi=420"@@ -42,6 +42,9 @@ private const val PHONE = "spec:width=411dp,height=891dp,dpi=420" /** Expanded desktop window for the wide side-panel layout. */ private const val EXPANDED = "spec:width=1280dp,height=800dp,dpi=420" +/** Fixed fixture instant: 2026-01-17T12:00:00Z. */+private const val FIXED_NOW_EPOCH_MS = 1_768_651_200_000L+ /**  * Store listing images for `:findfamily`. See `common-conventions-preview-metadata`.  *@@ -59,10 +62,10 @@ private const val EXPANDED = "spec:width=1280dp,height=800dp,dpi=420"  */ class MetadataPreviews { -    // Sample timestamps are relative to render time so "5 minutes ago" / "in 45 minutes"-    // read naturally. UserCard formats against Clock.System.now() internally anyway, so-    // these images were never going to be byte-identical between runs.-    private val now = Clock.System.now()+    // Sample timestamps are relative to a fixed instant so the fixture is+    // deterministic (FixtureDeterminism lint): "5 minutes ago" / "in 45+    // minutes" are offsets from FIXED_NOW, never from the wall clock.+    private val now = Instant.fromEpochMilliseconds(FIXED_NOW_EPOCH_MS)      private fun person(         id: Long,
findfamily/src/test/java/com/vayunmathur/findfamily/Y3FinalReportTest.kt
diff --git a/findfamily/src/test/java/com/vayunmathur/findfamily/Y3FinalReportTest.kt b/findfamily/src/test/java/com/vayunmathur/findfamily/Y3FinalReportTest.ktindex e728f477dc..2f210d6ad6 100644--- a/findfamily/src/test/java/com/vayunmathur/findfamily/Y3FinalReportTest.kt+++ b/findfamily/src/test/java/com/vayunmathur/findfamily/Y3FinalReportTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.findfamily +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.content.Context import android.content.Intent import android.location.Location
findfamily/src/test/java/com/vayunmathur/findfamily/Y3PlatformBitsTest.kt
diff --git a/findfamily/src/test/java/com/vayunmathur/findfamily/Y3PlatformBitsTest.kt b/findfamily/src/test/java/com/vayunmathur/findfamily/Y3PlatformBitsTest.ktindex a4f68f5152..9e30d19bb2 100644--- a/findfamily/src/test/java/com/vayunmathur/findfamily/Y3PlatformBitsTest.kt+++ b/findfamily/src/test/java/com/vayunmathur/findfamily/Y3PlatformBitsTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.findfamily +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.NotificationManager import android.content.Context import android.content.Intent
findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryStoresTest.kt
diff --git a/findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryStoresTest.kt b/findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryStoresTest.ktindex b0be767a1f..e74a96ca2c 100644--- a/findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryStoresTest.kt+++ b/findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryStoresTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.findfamily.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4 import kotlinx.coroutines.flow.first
findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryTest.kt
diff --git a/findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryTest.kt b/findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryTest.ktindex 29ecde3574..21429d1549 100644--- a/findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryTest.kt+++ b/findfamily/src/test/java/com/vayunmathur/findfamily/data/FindFamilyRepositoryTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.findfamily.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.content.Context import androidx.room3.Room import androidx.test.core.app.ApplicationProvider
findfamily/src/test/java/com/vayunmathur/findfamily/data/W5FindFamilyDatabaseTest.kt
diff --git a/findfamily/src/test/java/com/vayunmathur/findfamily/data/W5FindFamilyDatabaseTest.kt b/findfamily/src/test/java/com/vayunmathur/findfamily/data/W5FindFamilyDatabaseTest.ktindex 1435662c60..c31f97e240 100644--- a/findfamily/src/test/java/com/vayunmathur/findfamily/data/W5FindFamilyDatabaseTest.kt+++ b/findfamily/src/test/java/com/vayunmathur/findfamily/data/W5FindFamilyDatabaseTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.findfamily.data +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import androidx.room3.Room import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4
findfamily/src/test/java/com/vayunmathur/findfamily/intents/AssistantIntentsRealRepoTest.kt
diff --git a/findfamily/src/test/java/com/vayunmathur/findfamily/intents/AssistantIntentsRealRepoTest.kt b/findfamily/src/test/java/com/vayunmathur/findfamily/intents/AssistantIntentsRealRepoTest.ktindex a6d2d2197c..2204645f96 100644--- a/findfamily/src/test/java/com/vayunmathur/findfamily/intents/AssistantIntentsRealRepoTest.kt+++ b/findfamily/src/test/java/com/vayunmathur/findfamily/intents/AssistantIntentsRealRepoTest.kt@@ -1,5 +1,7 @@ package com.vayunmathur.findfamily.intents +// FIXTURE RELATIVE-TIME EXCEPTION: timestamps are seeded relative to the wall clock the code under test reads internally, so the fresh/expired/relative-time branch under test keeps its meaning; a fixed past instant would silently change that branch.+ import android.app.Application import android.content.Context import android.content.Intent