madeye 为 meow iOS 增加把配置导出到 iCloud Drive 的滑动操作
在 meow iOS 的 iCloud 中继 PR #383(给 tvOS 提供 iCloud Drive 配置导入,仍为 open)中,madeye 提交 ad1818e:配置行的左侧滑动操作「iCloud Drive」会把该配置的 YAML 以协调写入方式存进 iCloud Drive › meow 的中继文件夹,已有的文件夹监听随后把它中继到 Apple TV;文件以配置名命名,重复导出覆盖同名文件,因此电视端的 upsertLocal 会在原地更新该配置。他说本地 swiftformat / swiftlint 均无问题、MeowTests 233/233 通过(新增 4 个)、tvOS 设备构建通过;尚未验证的是模拟器上的滑动界面与真实的 iCloud Drive 写入(需要已登录 iCloud 的设备)。
作者原文@madeyeAdded
ad1818efeat(ios): save a config to iCloud Drive › meow: a Configs row's leading swipe action "iCloud Drive" writes that profile's YAML into the relay folder (ICloudDriveExporter, coordinated write). The existing folder watcher then relays it to the TV. The file is named after the profile (ICloudRelay.exportFileNameround-trips with the TV'sprofileName), and re-exporting overwrites it, so the TV'supsertLocalupdates in place. Local: swiftformat/swiftlint clean, MeowTests 233/233 (4 new: naming + coordinated write/overwrite), tvOS device build ✓. Not verified: the swipe UI on a simulator, and a real iCloud Drive write (needs a signed-in device).