feat: 升级 Flutter 3.47 并完善 Android 安全存储 - #148
Draft
JustLookAtNow wants to merge 5 commits into
Draft
Conversation
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.
变更说明
flutter_downloader,启用 AGP 9 Built-in Kotlin;Android 不再引入该插件的 WorkManager 2.9 / Room 2.5。flutter_secure_storage 11固定使用 RSA-OAEP + AES-GCM,并关闭自动 reset 和算法迁移。PR gate不变。随附的既有修复
用户影响
Android 旧版安全存储可能无法直接兼容。用户应在升级前导出备份;备份是包含 Cookie、API Key 和密码等凭据的明文 JSON,恢复成功后应删除。
不支持 OAEP+GCM 的全新设备会继续可用,但设置页会持续提示凭据使用应用私有 SharedPreferences 明文保存。该模式在当前应用数据生命周期内不会自动迁回加密存储。
验证
flutter analyze:通过,0 问题flutter test:350 通过,1 个设计性跳过go test ./...:通过./gradlew :app:testDebugUnitTest:通过flutter_downloader、WorkManager 或 RoomiOS、macOS 和 Windows 构建由此 PR 的 GitHub Actions / 发布工作流继续验证。