opt.: watch app

This commit is contained in:
lollipopkit
2023-09-16 21:43:31 +08:00
parent f51934396f
commit 3c3ca33cda
10 changed files with 83 additions and 41 deletions

View File

@@ -31,7 +31,6 @@ class PhoneConnMgr: NSObject, WCSessionDelegate, ObservableObject {
session?.activate()
ctx = Store.getCtx()
print("init", ctx)
}
func updateUrls(_ val: [String: Any]) {
@@ -47,7 +46,6 @@ class PhoneConnMgr: NSObject, WCSessionDelegate, ObservableObject {
// implement session:didReceiveApplicationContext:
func session(_ session: WCSession, didReceiveApplicationContext applicationContext: [String : Any]) {
ctx = applicationContext
print("update", ctx)
}
}

View File

@@ -0,0 +1,20 @@
{
"colors" : [
{
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "AppIcon-1024.0x1024.0@1x.png",
"idiom" : "universal",
"platform" : "watchos",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}