清理 Android Lint 告警并启用 release 门禁#1377
Open
Sylthionys wants to merge 34 commits into
Open
Conversation
Fix AI category validation and build warnings
Contributor
Author
|
已修复:
提交: 验证: |
Contributor
|
Hi,@Sylthionys 虽然我不太清楚你那边的工作时间,不过我看你提交PR的时间已经是中国时间凌晨 4 点了。无论你身处哪个时区,也别忘了注意休息。健康的生活和作息才有利于开源项目的长远发展。 感谢你的贡献和支持,祝你有个愉快的一天! |
Contributor
Author
|
感谢关心和提醒! |
Contributor
Author
|
已修复: 提交: 验证: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
将
:app:lintDebug --rerun-tasks从 0 errors / 672 warnings 清理至 0 errors / 0 warnings,并重新启用 release Lint 门禁。改动按低耦合批次拆分,优先修复真实问题;未新增 lint baseline、全局 disable、类别级 blanket suppression,也未启用
warningsAsErrors。确属兼容需求、动态引用或工具链限制的项目仅使用最小作用域、带理由的精确豁免。主要改动
abortOnError、checkReleaseBuilds,并将关键正确性检查设为 fatal。R.color映射;精确保留反射/ViewBinding 布局,并删除经引用审计确认无用的资源。精确豁免
core-ktx保持在已验证的1.17.0:更新版本要求 compileSdk 37 / AGP 9.1。8.9.3:AGP 9.x 需要独立的 Gradle 9、内置 Kotlin 与新 DSL 迁移。审查重点
建议优先审查以下高风险改动:
res/raw/keep.xml中保留的反射/ViewBinding 布局,以及启动图标和默认图片迁移。core-ktx 1.19.0因工具链要求暂未迁移,并采用单声明精确豁免。验证
./gradlew :app:lintDebug --rerun-tasks:0 errors / 0 warnings./gradlew test assembleRelease:通过git diff --check:通过52045服务往返