Repository navigation
feat(android): 校园卡消费提醒与后台账单检查 - #197
Open
steven42121 wants to merge 1 commit into
Open
steven42121 wants to merge 1 commit into
steven42121 wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Android 用户现在可以在设置中开启校园卡消费提醒。应用刷新或后台检查发现新消费时,通知显示金额、商户/地点与余额;首次成功读取只建立基线,不把旧账单当作新扣费。
这是账单轮询后的提醒,不是校园卡服务端实时推送,无法保证到达时间。只读取最近至多 50 条账单;迟到且早于保留去重窗口的交易可能不提醒。首次读取、系统限制和真实校园交易仍需设备验收。
与现有 PR 的关系:独立基于上游 master
aaefb6a,不依赖 #194/#195/#196。上课前提醒已经在 #195(标题和说明已标清),#194 是课程状态灵动通知。本 PR 只提取消费提醒及必要的后台账单检查。发行兼容:保留上游应用 ID、最低 Android API 24、1.0.4+26 版本、签名配置、Dart 依赖锁、Apple Watch/iOS 实现及发布工作流。Android 只增加 WorkManager 2.9.1 和原生单元测试依赖;没有带入 RCCE 的测试签名、版本号或更新渠道。
验证:Flutter 静态分析通过;777 项 Flutter 测试通过,其中包含 18 项新增服务/账单集成测试;9 项原生去重单元测试通过;Android debug 及开启压缩的 release APK 构建通过,实际 manifest 为 API 24/1.0.4+26;release 验证仅使用本地测试签名,签名配置未提交修改。代码说明见
docs/spending-alerts.md。完整 Android lint 的新增代码无错误;仍报告上游已有的两项问题:
EcardBindVpnService.kt的 API-28 私有 DNS 诊断调用,以及基础 manifest 的可选相机声明。未在本 PR 中压制或混入这两项无关修改。本地仅为解决 Git 依赖下载不稳定,使用上游固定提交源码归档;提交的 pubspec/lock 与上游一致,未提交路径覆盖。