Skip to content

Commit 816c11e

Browse files
committed
ci: disable OldTargetApi lint (SDK pinned by policy)
CI runners carry a newer Android SDK than the pinned platform 35, so lint flags targetSdk 35 as OldTargetApi only on CI. SDK levels are pinned per plans/01, so this upgrade nag is disabled like the other version checks.
1 parent 8c3e5b0 commit 816c11e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ android {
5454
disable += "GradleDependency"
5555
// AGP version is pinned by policy (plans/01); the upgrade nag is intentional noise.
5656
disable += "AndroidGradlePluginVersion"
57+
// SDK levels are pinned by policy (plans/01). CI runners ship a newer SDK than the
58+
// pinned platform, so lint flags targetSdk 35 as "old"; that nag is intentional noise.
59+
disable += "OldTargetApi"
5760
}
5861
}
5962

plans/11-round2.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ android { lint {
163163
disable += "GradleDependency"
164164
} }
165165
```
166-
Dispositions: VectorRaster ×3 → reduce declared width/height ≤200dp keeping viewport (usages
166+
`OldTargetApi` is also disabled: CI runners ship a newer SDK than the pinned platform (35),
167+
so lint flags targetSdk 35 as "old" only on CI — same pinned-by-policy category as the version
168+
nags. Dispositions: VectorRaster ×3 → reduce declared width/height ≤200dp keeping viewport (usages
167169
size via Modifier); UnusedResources → `roundIcon="@mipmap/ic_launcher_round"` (real fix),
168170
lockup/mark used by About, remove the 2 named unused strings; ImplicitSamInstance
169171
(IrcModule.kt TransportFactory) → typed local; InlinedApi → raise FGS-type guard to API 34

0 commit comments

Comments
 (0)