From 2e5348cc97456272d11ebc802a7ce9f07d209221 Mon Sep 17 00:00:00 2001 From: YANGJIANKUAN Date: Fri, 27 Feb 2026 13:50:32 +0800 Subject: [PATCH] feat: fix detail --- .claude/settings.local.json | 6 ++++- DDYSClient/Views/Auth/CookieInputView.swift | 5 ++++ .../Views/Navigation/AppNavigation.swift | 2 ++ LocalPackages/SwiftSoup | 2 +- Package.resolved | 23 ++++++++++++++++ project.yml | 27 +++++++++++++++++++ 6 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 Package.resolved diff --git a/.claude/settings.local.json b/.claude/settings.local.json index cf44416..cfb59c1 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -21,7 +21,11 @@ "Bash(killall xcodebuild:*)", "Bash(cp:*)", "Bash(pkill:*)", - "Bash(git:*)" + "Bash(git:*)", + "Bash(xcrun simctl:*)", + "Bash(xcrun devicectl:*)", + "Bash(networksetup:*)", + "Bash(system_profiler SPNetworkDataType:*)" ] } } diff --git a/DDYSClient/Views/Auth/CookieInputView.swift b/DDYSClient/Views/Auth/CookieInputView.swift index 1c58685..bf231d0 100644 --- a/DDYSClient/Views/Auth/CookieInputView.swift +++ b/DDYSClient/Views/Auth/CookieInputView.swift @@ -14,9 +14,14 @@ struct CookieInputView: View { } Section("Cookie") { + #if os(tvOS) + TextField("粘贴 Cookie...", text: $cookieText) + .font(.system(.body, design: .monospaced)) + #else TextEditor(text: $cookieText) .font(.system(.body, design: .monospaced)) .frame(minHeight: 120) + #endif } Section { diff --git a/DDYSClient/Views/Navigation/AppNavigation.swift b/DDYSClient/Views/Navigation/AppNavigation.swift index 177df4f..44afb07 100644 --- a/DDYSClient/Views/Navigation/AppNavigation.swift +++ b/DDYSClient/Views/Navigation/AppNavigation.swift @@ -93,6 +93,7 @@ struct AppNavigation: View { } } + #if !os(tvOS) private var sidebarLayout: some View { NavigationSplitView { List(AppTab.visibleTabs, selection: $selectedTab) { tab in @@ -106,6 +107,7 @@ struct AppNavigation: View { } } } + #endif @ViewBuilder private func tabContent(for tab: AppTab) -> some View { diff --git a/LocalPackages/SwiftSoup b/LocalPackages/SwiftSoup index 8b6cf29..e98a6d6 160000 --- a/LocalPackages/SwiftSoup +++ b/LocalPackages/SwiftSoup @@ -1 +1 @@ -Subproject commit 8b6cf29eead8841a1fa7822481cb3af4ddaadba6 +Subproject commit e98a6d63ce90700fc98a23f78299a48f45a82bfe diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..8cb6cda --- /dev/null +++ b/Package.resolved @@ -0,0 +1,23 @@ +{ + "pins" : [ + { + "identity" : "lrucache", + "kind" : "remoteSourceControl", + "location" : "https://github.com/nicklockwood/LRUCache.git", + "state" : { + "revision" : "cb5b2bd0da83ad29c0bec762d39f41c8ad0eaf3e", + "version" : "1.2.1" + } + }, + { + "identity" : "swift-atomics", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-atomics.git", + "state" : { + "revision" : "b601256eab081c0f92f059e12818ac1d4f178ff7", + "version" : "1.3.0" + } + } + ], + "version" : 2 +} diff --git a/project.yml b/project.yml index 96e7914..3d4a4fd 100644 --- a/project.yml +++ b/project.yml @@ -4,6 +4,7 @@ options: deploymentTarget: iOS: "17.0" macOS: "14.0" + tvOS: "17.0" xcodeVersion: "16.0" groupSortPosition: top createIntermediateGroups: true @@ -32,6 +33,26 @@ targets: INFOPLIST_KEY_CFBundleDisplayName: DDYS CODE_SIGN_ENTITLEMENTS: DDYSClient/DDYSClient.entitlements + DDYSClient-tvOS: + type: application + platform: tvOS + sources: + - path: DDYSClient + resources: + - path: Resources + optional: true + dependencies: + - package: SwiftSoup + settings: + base: + PRODUCT_BUNDLE_IDENTIFIER: com.fusion.ddys.client + MARKETING_VERSION: "1.0.0" + CURRENT_PROJECT_VERSION: 1 + SWIFT_VERSION: "5.9" + GENERATE_INFOPLIST_FILE: YES + INFOPLIST_KEY_CFBundleDisplayName: 低端影视 + INFOPLIST_KEY_UILaunchScreen_Generation: YES + schemes: DDYSClient: build: @@ -39,3 +60,9 @@ schemes: DDYSClient: all run: config: Debug + DDYSClient-tvOS: + build: + targets: + DDYSClient-tvOS: all + run: + config: Debug