-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
初步实现Widgets #409
初步实现Widgets #409
Conversation
有冲突( 代码能够运行,这几天应该没法改了((( 对不起((((( |
在完成功能实现前,将 Pull Request 转为草稿。 |
我的意思是Widgets已经作为一个数据看板的方式实现了,即使URL Scheme和App Intents还没有实现,也不影响这个功能的运行。URL Scheme和App Intents都是用于扩展Widgets的功能的,主要是支持Siri和通过Widgets打开对应页面或视频,对于之前提交的文件冲突,我很快会提交解决冲突后的代码,在此之前,也请检查一下代码,提供一点意见,我应该会把上个提交之后的Localizable翻译且解决文件冲突后提交这个版本,App Intents和URL Scheme由于时间问题我没法一次性提交,而且这两个功能肯定要多次调试,因此这个PR不会包括上述两个功能,我会尽可能逐步实现并提交
…Sent from my Apple Watch
|
DarockBili.xcodeproj/project.pbxproj
Outdated
"@executable_path/Frameworks", | ||
"@executable_path/../../Frameworks", | ||
); | ||
MARKETING_VERSION = 1.0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
版本号更改为1.0.0
,第 2057, 2089 行也一并更改。
DarockBili.xcodeproj/project.pbxproj
Outdated
INFOPLIST_FILE = MeowWidget/Info.plist; | ||
INFOPLIST_KEY_CFBundleDisplayName = MeowWidget; | ||
INFOPLIST_KEY_NSHumanReadableCopyright = ""; | ||
IPHONEOS_DEPLOYMENT_TARGET = 17.2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iOS 构建目标版本应该为 17.0
,第 2051, 2083 行一并更改。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此文件供 Widget 使用,应当移动到 MeowWidget
文件夹下,同时从 MeowBili
和 MeowBili Watch App
两个 Target 中移除,仅包含在 MeowWidgetExtension
Target 中。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有,BiliBiliAPIService在后面实现App Intents之类的功能的时候可能会需要,麻烦再确认一下是不是以后只有Widgets会使用
如果要在 Target 之间共享代码,请在项目根目录下创建SharedCode
文件夹,并将此文件移动到新文件夹中。
MeowWidget/MeowWidget.swift
Outdated
} | ||
.configurationDisplayName("喵哩喵哩Widget") | ||
.description("热门或推荐的视频内容") | ||
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge, .accessoryCircular, .accessoryRectangular]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
构建错误,
'systemSmall' is unavailable in watchOS
'systemMedium' is unavailable in watchOS
'systemLarge' is unavailable in watchOS
好的,上面三条在解决冲突后会直接解决,下面的用if !os(我还以为watchOS会直接区分掉iOS小组件样式
…Sent from my Apple Watch
|
等我做完作业就解决(还有,BiliBiliAPIService在后面实现App Intents之类的功能的时候可能会需要,麻烦再确认一下是不是以后只有Widgets会使用
…Sent from my Apple Watch
|
知道了,谢谢。
…Sent from my Apple Watch
|
cda30eb
to
0fbfe20
Compare
我先Closed了 直接解决冲突重新写 |
我估计会过一阵子才能继续PR 最近学校事情太多了 |
AppIntents与URL Scheme都没有实现,只有Widgets的视频标题
因为明天开学(
实在对不起(