Modern Apps git

← Modern-Apps.git

docs: scaffold-loading convention in AGENTS.md; lint-tests dep

Commit
b95159727e3ad93460a56cbad83e8c1e9be7218d
Author
Vayun Mathur <[email protected]>
When
2026-11-23 00:40 UTC (13 days ago)
Parents
954320d
Follow-through from the ScaffoldLoading mandate: the root
conventions now state whole-content loading goes through
the scaffold, and the version catalog carries lint-tests
for the detector's tests.

Diff

AGENTS.md
diff --git a/AGENTS.md b/AGENTS.mdindex 5d9ddfb1cd..9e9c82fd65 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -64,7 +64,7 @@ The backend (relay server for findfamily/everysync/office/voxels) lives outside ## 2. Conventions (check every time) - `Toast` banned (fatal lint). Use `rememberMessenger().show()` in composable, `AppMessages.show()` elsewhere. - Never `Icon()`/`painterResource()`/`androidx.compose.material.icons.*` in app. Add `IconXxx()` to `library/ui/.../Icons.kt`.-- Never raw `Scaffold`. Use `AppScaffold` family. Never raw `androidx.compose.animation` at call site โ€” use `library.ui` helpers. Never `imePadding()/navigationBarsPadding()/systemBarsPadding()` in `library.ui`.+- Never raw `Scaffold`. Use `AppScaffold` family. Whole-content loading goes through the scaffold's `isLoading`/`loadingMessage`, never a hand-rolled `LoadingState`/full-size spinner inside scaffold content (fatal `ScaffoldLoading` lint; local sized/determinate/button/pull-refresh loading stays inline). Never raw `androidx.compose.animation` at call site โ€” use `library.ui` helpers. Never `imePadding()/navigationBarsPadding()/systemBarsPadding()` in `library.ui`. - Room 3 only. Literal `androidx.room.` flagged even in comments. Never `buildDatabase()` at call site โ€” subclass `library.room.RoomRepository`. - Network only via `library.network.NetworkClient` + `TrustBundle` narrowest (`FIRST_PARTY/STANDARD/EXTENDED/SYSTEM/ESIM`). - Package roots closed set: `ui data domain platform network intents service provider widget notifications auth sync telephony`. No `util/`. One public `@Composable` per file, named as file. `domain/` pure (no Android/Compose).
gradle/libs.versions.toml
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.tomlindex 2bbe3ccff6..7346d32e6e 100644--- a/gradle/libs.versions.toml+++ b/gradle/libs.versions.toml@@ -181,6 +181,7 @@ gradle = { module = "com.android.tools.build:gradle", version.ref = "agp" } # Lint check API. Versioned off AGP: lint ships as 23 + the AGP major. lint-api = { module = "com.android.tools.lint:lint-api", version.ref = "lint" } lint-checks = { module = "com.android.tools.lint:lint-checks", version.ref = "lint" }+lint-tests = { module = "com.android.tools.lint:lint-tests", version.ref = "lint" } # Needed on build-logic's classpath so common-conventions-preview-metadata can apply it by id. compose-screenshot-gradle = { module = "com.android.compose.screenshot:screenshot-test-gradle-plugin", version.ref = "composeScreenshot" } kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinGradlePlugin" }