Repository navigation
watchOS客户端 - #375
Open
sebersta wants to merge 8 commits into
Open
watchOS客户端#375sebersta wants to merge 8 commits into
sebersta wants to merge 8 commits into
Conversation
Finb
force-pushed
the
watchOS-prototype
branch
from
October 15, 2026 03:19
9590cb5 to
44ef4b7
Compare
Owner
|
哈喽, |
Finb
force-pushed
the
watchOS-prototype
branch
from
October 19, 2026 07:33
e74b7e5 to
27455b4
Compare
- better documentation - no feature changes
Finb
force-pushed
the
watchOS-prototype
branch
from
October 28, 2026 07:21
27455b4 to
15aab5f
Compare
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.
新增了 BarkWatch,一个独立运行的 watchOS 应用。手表可以向 Bark 服务器注册独立的Key,不依赖 iPhone 也能收推送。
本 PR 主要用来讨论方向和收集反馈。
新增 Target
与 iOS 共用的代码
手表 Target 直接编译下面三个 iOS 文件:
Model/Algorithm.swiftCommon/MarkdownParser.swiftCommon/UIFont+Extension.swift支持的推送参数
title、subtitle、body、markdownciphertext、ivlevel=active/passive/timeSensitivelevel=critical、volumesoundsilent,不支持自定义铃声image、iconurlgroupid、isArchive、ttl、deletebadge、call、autocopy/copy、action打开链接
通知界面本身不能直接打开浏览器。点击「打开链接」或 Markdown 里的链接后,地址会交给主应用,主应用进入前台后用
WebAuthenticationSession打开网页。这个网页是临时的,不与其他会话共享 Cookie。只接受http/https链接。对现有 iOS 工程的影响
project.pbxproj新增了手表相关的 Target 和 Scheme。Podfile给BarkWatch和BarkWatchNotificationService加入了CryptoSwift,并在post_install里把 watchOS 的最低部署版本设为 10.0。因为 CryptoSwift 现在同时用于 iOS 和 watchOS,CocoaPods 生成的路径变成了CryptoSwift-iOS/CryptoSwift-watchOS。已知限制