Commit Graph

120 Commits

Author SHA1 Message Date
Lizi
1d47fdfd94 Merge pull request #9349 from zqchris/android-auto-notifications
fix(mobile): automatically receive Android notifications without Google push
2026-11-10 20:48:05 +08:00
Lizi
b70c690274 Merge pull request #9696 from makecindy/cindy/humble-kalam
fix(mobile): 灵动岛日常点击回首页,展开后保留任务入口
2026-11-10 18:54:15 +08:00
Lizi
b966cbb69a Merge pull request #9665 from makecindy/cindy/loyal-hopper
fix(mobile): 修复 Windows Android 原生构建长路径
2026-11-10 18:43:54 +08:00
Chris
905ef48578 merge: sync main and retain Android notification delivery
Keep updated mobile cold-release documentation and the Android direct notification contract.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-10 18:22:13 +08:00
Dash
be16fb5f1a fix(mobile): open home from the collapsed Dynamic Island
Keep explicit task links in the expanded island and lock-screen presentation. Route stale activity taps home and preserve the installed app scheme.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 20:46:15 +13:00
DavidShen
ae0c959fe1 fix(mobile): 修复 Windows Android 原生构建长路径
Windows 模拟器构建恢复 CMake 平台路径缩短,并为 app 代码生成选择较短的独立 staging 缓存。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: DavidShen <david@xd.com>
2026-11-10 13:53:31 +08:00
Dash
dbf6441a19 docs(mobile): 同步 main 新增的冷更确认门引用
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 17:42:24 +13:00
Dash
d2b594e98f merge: 同步 main
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 17:42:17 +13:00
Dash
b853022012 fix(mobile): 使用签名推送环境并恢复活动移除标记
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 06:45:05 +13:00
Dash
48ba7bfb2c fix(mobile): 同步桌面素材源哈希并澄清过期口径
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 06:29:28 +13:00
Dash
5f48dccbd6 merge: 同步 main 并保留两项增量协议文档
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 04:49:20 +13:00
Dash
072c0b98ce feat(mobile): 接入任务汇总与 ActivityKit 后台推送
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 04:40:47 +13:00
Dash
6e05a48a0c fix(mobile): 使用桌面 Cindy 角色作为灵动岛形象
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 03:37:29 +13:00
Dash
6f568ea471 fix(mobile): 补齐灵动岛未读结果计数与展示优先级
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 03:19:06 +13:00
Chris
5ec2997beb Merge upstream/main into android-auto-notifications
Preserve Android direct fallback availability alongside upstream push registration diagnostics and signing-environment handling.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-09 19:51:04 +08:00
Dash
7c6ce0f40b feat(mobile): 添加复用桌面美术的 iPhone 任务灵动岛
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-10 00:25:29 +13:00
Dash
7a54770122 Merge remote-tracking branch 'origin/main' into fix/personal-credentials-signing 2026-11-09 18:04:26 +13:00
Dash
e44316f8c3 fix(mobile): keep communication entitlement on containing app
Xcode cannot provision Communication Notifications on the notification service extension. Retain it on the application and preserve the extension implementation.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-09 10:33:04 +13:00
Dash
c9fdb717e5 wip(mobile): preserve interaction and cache optimizations before rebase
Local preservation of the current Beta 42 source for the requested rebase.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-08 20:05:14 +13:00
Chris
89edd1cb78 fix(mobile): preserve chat delivery across partial push failures
Keep task and chat registration outcomes separate before stopping the shared fallback. Bind native chat identities to account and realm, preserve same-account identity/config through transient lookups, and retain explicit logout and account-switch fences.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-08 11:37:39 +08:00
Chris
95dd12e396 fix(mobile): receive Android notifications automatically without Google push
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-08 11:14:43 +08:00
Dash
6f0fe0a9e5 merge: 同步 main(键盘高度逻辑合并 RN 0.88 的 metrics 空值处理)
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 22:24:13 +13:00
Dash
551405a32f build(mobile): 升级 Expo SDK 58 并适配原生依赖
保留原有手势、导航、文件读写和自建 OTA 行为,迁移原生补丁并记录真机构建与资源对比。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 20:41:04 +13:00
Chris
8395bad38b fix(mobile): recover queued edit snapshots alongside later typing
On queue-save failure, restore a cleared edit snapshot with the newer document once and persist the result. Keep complete edits when no clear occurred, and leave cancelled or replaced edit scopes untouched.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-07 15:21:04 +08:00
Chris
915091cc63 fix(mobile): keep rejected native paste batches out of placeholder cleanup
Ignore empty and unaccepted native image batches before placeholder or file work. Retain accepted in-flight image delivery across sending and protect it from oversized clipboard rejection events.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-07 15:07:25 +08:00
Chris
fac534f0fb fix(mobile): retain image paste acceptance for each batch
Capture image delivery and failure callbacks when a WebView paste batch starts. Accepted batches survive send-state changes, rejected batches cannot become accepted later, and recovery only releases placeholders for accepted batches.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-07 14:54:03 +08:00
Chris
20fabb8083 fix(mobile): keep image paste behind the send attachment lock
Keep text editing enabled while disconnecting new image-paste and placeholder callbacks during sending. Preserve cleanup callbacks and exercise the real page props with the mounted editor, image handoff and temporary-file cleanup.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-07 14:27:37 +08:00
Chris
8454bb000f fix(mobile): preserve next draft after saving queued edits
Separate successful queue-save exit from cancellation and merge subsequent text and quote nodes into the stashed draft before persistence. Extend the mounted editor regression to verify restored content and stale IME rejection.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-07 14:20:00 +08:00
Chris
51ca8a7874 fix(mobile): preserve composer focus and clear stale keyboard spacing
Keep the editor editable while send actions remain locked, ignore late keyboard frames after dismissal, and preserve newer draft text during asynchronous sending.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Chris <4436110+zqchris@users.noreply.github.com>
2026-11-07 14:11:41 +08:00
Dash
26c7169308 feat(mobile): 支持 iOS 与 Android 锁屏余量和每日用量组件 (#9130)
* feat(mobile): 支持 iOS 锁屏余量和每日用量组件

Add circular, rectangular and inline widgets with horizontal quota bars, provider icons, lowest-quota selection and actual daily usage trends.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(mobile): 保留锁屏余量填充和完整辅助朗读

Constrain the emphasized bar gap at 2x and share reset timing between single and paired inline readings.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* feat(mobile): 安卓用量组件支持放到原生锁屏

两个组件声明 home_screen|keyguard,在 Android 16 QPR2 起的原生锁屏组件页
可直接添加,沿用桌面版式、账号排序与数据来源设置;锁屏点击由系统先要求解锁。
文档记录三星 One UI 8.5 原生锁屏不放行第三方组件的实测结论与模拟器验证方法。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-07 10:37:57 +08:00
Lizi
4fd670b72a Merge pull request #9173 from makecindy/feat/handheld-mode
新增可选 Android 掌机模式,支持手柄焦点导航、可配置长按语音键及双屏切换,并处理权限等待、页面失焦和抽屉嵌入时的录音交接。

Android 冷更影响已由把关人明确确认,记录见 https://github.com/makecindy/cindy/pull/9173#issuecomment-6685663764 。

Signed-off-by: Lizi <jiali@magiclizi.com>
Assisted-by: Cindy (https://cindy.app)
2026-11-06 21:38:55 +08:00
Lizi
5f412fdf49 Merge pull request #8086 from Liuliuuu0710/feat/mobile-video-library
feat(mobile): 统一相册入口,支持照片与视频混选
2026-11-06 20:41:53 +08:00
Lizi
5d3fad316f fix(mobile): close handheld recording leases and register settings route
Stop held voice input on blur and key changes, include microphone permission waits, keep embedded home lists from claiming voice input, and exclude hidden scroll targets. Preserve only explicit preferences and add reset to defaults.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-06 20:21:11 +08:00
Lizi
41ef374d75 docs(mobile): document handheld controls and native release boundary
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Lizi <jiali@magiclizi.com>
2026-11-06 20:02:06 +08:00
Dash
ac924e14e3 docs(mobile): 取消冷更 PR 的把关人确认门
冷更 PR 改为按普通流程审查与合并。保留「非必要不得改动指纹」与 PR 描述三件事
(冷更原因、存量装机影响、发版节奏),自动审查改为核对这两点。同步 Mobile 开发
规则、mobile AGENTS、REVIEW.md、PR 模板及引用冷更确认门的文档和注释。插件存量
兼容与插件基座的确认门不变。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 10:54:57 +13:00
Dash
b7c89e0a15 fix(mobile): keep home PR association and status across app restarts
The home task row and companion glance cached PR refs and status only in
memory, so every cold start (iOS reclaiming the app, OTA reload) showed
nothing until the device link came online and two low-priority reads per
task finished.

Persist the results per account in AsyncStorage, seed them on startup as
never-fetched so they display immediately and still refresh in the
background, and clear them with the other account caches on sign-out and
account switch.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-06 08:49:50 +13:00
Dash
86edafbadd Merge remote-tracking branch 'origin/main' into dash/mobile-pip-keyboard-frame
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

# Conflicts:
#	docs/dev-rules/credentials-and-local-storage.md
2026-11-05 02:22:02 +13:00
Dash
544e452423 feat(mobile): pnpm mobile:sim:up starts the phone app in one command
Agents had to chain boot, Metro, rebuild and whoami themselves, and after
one step failed they kept reporting the phone app as unbuildable. The new
command picks a device without disturbing other tasks (several candidates
make it ask instead of guessing), boots it, reuses or starts this
worktree's Metro (on a free port when 8081 belongs to another task),
installs the matching native app, launches it, waits for the bundle,
brings it back to the foreground when the system pushed it behind after
boot, and checks identity. It reads the Metro log sim-start records and
keeps its own output in the system temp directory, never in the worktree.
It can be rerun after the device idles off, and always ends with one JSON
line giving a code and the next step.

The root AGENTS.md module table now routes "seeing changes on the phone"
to the Mobile docs; the command and the rule that only a fresh run's code
counts as evidence live in docs/dev-rules/mobile-development.md.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-04 16:53:33 +13:00
Dash
4b867e2b91 fix(mobile): 键盘高度记录读完后重算已显示的键盘占位
本机记录异步读出,读完前遇到异常坐标只能先用估算;读完若记录更高,输入卡片与
浮动输入框此前不会重算,会停在估算值直到下一次键盘事件。keyboardOverlap 增加读取
完成通知,两个 hook 订阅后重算,并补两条回归测试。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-04 02:05:32 +13:00
Dash
531f762728 fix(mobile): 画中画后 iOS 键盘坐标异常时输入框不再被键盘盖住
iPhone Duo(iOS 27)从远程桌面返回进入画中画后,iOS 偶尔把小窗的位置当成键盘
位置通知给 App,键盘实际仍停靠在底部;直到冷启动都不恢复。输入卡片与新建任务页的
浮动输入框据此把遮挡算成 0,被键盘盖住。

iPhone 没有悬浮键盘:显示中却不整宽或不贴底的键盘坐标视为异常,改用同宽度下见过的
最高正常停靠高度与按窗口比例估算值中较大者。正常高度持久化在本机,转屏后 1 秒内的
过渡帧不记录。两条读取路径共用 keyboardOverlap.ts 的同一判据。iPad 与 Android 不变。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-04 01:30:51 +13:00
Dash
eb865b7f92 feat(mobile): check Metro logs after simulator verification
sim:start now writes Metro output to apps/mobile/logs/metro-<port>.log, and
mobile:sim:logcheck reports what happened after the latest entry bundle: ERROR
and failed bundles fail, unlisted warnings must be reported, and an unknown
state is not a pass. Add the check to the simulator verification rules.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-03 17:37:40 +13:00
liuliuyao
26d96bad10 Merge CI base and complete media picker locale parity
Signed-off-by: liuliuyao <y11iu66666@gmail.com>
2026-11-02 13:56:32 +08:00
Lizi
e98940c6d8 Merge pull request #8255 from makecindy/dash/iphone-widget-account-picker
feat(quota): 订阅余量小组件可设排在前面与隐藏的账号,液面加圆角
2026-11-02 10:17:41 +09:00
Dash
13783a40d6 fix(mobile): Cindy 模拟器可用时不再悄悄改用系统模拟器 (#8313)
* fix(mobile): keep simulator tests on Cindy's simulator while it is available

An idle Cindy simulator made whoami and rebuild silently pick a system device,
so a task could run on the wrong backend without any signal. Stay on Cindy until
the plugin is unavailable or a --udid names another device, report the reason
and reusable devices, and flag the system simulator while Cindy's is available.

Stop reporting native-missing when no exact target was probed, and align the
test workflow: occupied Cindy devices are not a reason to fall back, parallel
devices stay in the selected backend, and handoffs name the backend and model.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

* fix(mobile): fail closed when Cindy's simulator cannot be listed

A failed device listing was read as an empty one: whoami reported cindy-idle,
while rebuild and open silently moved on to a system device. Keep the failure
and stop without choosing a backend unless an exact UDID may live elsewhere.

Treat the Cindy devices directory given as an absolute path as Cindy's
simulator so it gets the same notices as CINDY_MOBILE_SIMULATOR=cindy.

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>

---------

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 13:25:54 +09:00
Lizi
03cdc568b4 Merge pull request #8219 from makecindy/dash/android-usage-widgets
feat(mobile): Android 桌面小组件(订阅余量、每日用量)
2026-11-01 00:13:59 +09:00
Dash
8dfbf5fb26 docs: 小组件账号匹配规则改为按图标与名字认账号
Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:47:55 +13:00
Dash
836bc95ef7 feat(mobile): Android 订阅余量组件可设排在前面与隐藏的账号,液面加圆角
- 设置页(添加时与启动器的重新配置)新增「排在前面的账号」(最多 7 个,可上移、下移、移除)与「隐藏的账号」,
  与 iOS 编辑页、Mac 菜单栏设置同一规则:其余账号(含以后新加的)按电脑顺序跟在后面,全部隐藏时显示全部。
- 选择按组件存在 SharedPreferences,用与 iOS 相同的 AccountKey 字符串;按 id 找不到时按同一图标与名字匹配。
- 小号与单行版式只对其余账号做「订阅优先」,排在前面的照原样显示;「每日用量」仍只选电脑。
- 液面顶角改为 4dp 圆角(液面很低时按高度缩小),与 iOS 一致;重新生成订阅余量的选择器预览图。
- 设置页文案补齐 10 种语言;mobile-development.md 登记规则。

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:13:28 +13:00
Dash
8339ba40ce fix(mobile): Android 组件处理 review:空值字段、文字缩放、后台重绘、按尺寸绘制
- 可空字符串字段按 JSON null 处理,不再显示成 "null"
- fitText 先取原行高再缩放,缩小后的字号不再被复位
- writeSnapshot / clearSnapshot 的重绘改到后台单线程,合并请求,JS 线程不等位图
- Android 12+ 按启动器给出的每个候选尺寸各绘一份,折叠屏 / 横竖屏不再拉伸同一张图
- 一行高度只在宽度 ≥ 250dp 时用单行版式,更窄的一行沿用缩小的小号版式(4 个来源仍可见)

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:13:28 +13:00
Dash
a39644bc2a feat(mobile): Android 组件支持一行高度,新增单行版式
最小可缩到 40dp 高;宽而扁的格子用单行版式:订阅余量是短液柱加数字、名称、重置时间,
每日用量是今日数字加迷你柱图。

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:13:28 +13:00
Dash
781c5dce6f feat(mobile): Android 桌面小组件(订阅余量、每日用量)
- cindy-usage-widgets 模块新增 Android 实现:两个 AppWidgetProvider、数据来源选择页、与 iOS 同名的原生接口
- 组件按启动器格子的实际尺寸把版式直接画成位图,小/中/大版式、液柱、圆环、日用量柱与月卡片与 iOS 一致
- 浅/深两套同时下发,由 layout 与 layout-night 选择,系统切换主题不需要重绘
- 数据来源可选自动或某台电脑;快照存应用私有 noBackupFilesDir,不进自动备份
- UsageWidgetBridge 在 Android 上同样喂数据;文案表由 iOS 表转出并补数据来源页,10 种语言
- 同步 mobile-development / credentials-and-local-storage / protocol-compatibility / repo-map

Signed-off-by: Dash <125997726+dashhuang@users.noreply.github.com>
2026-11-01 02:13:27 +13:00