🚚 Rename watchOS project to proper one

This commit is contained in:
2025-11-01 12:21:37 +08:00
parent b60bd63d0c
commit 9a628779d9
80 changed files with 36 additions and 30 deletions

View File

@@ -0,0 +1,20 @@
//
// AttachmentUtils.swift
// WatchRunner Watch App
//
// Created by LittleSheep on 2025/10/29.
//
import Foundation
// MARK: - Helper Functions
func getAttachmentUrl(for fileId: String, serverUrl: String) -> URL? {
let urlString: String
if fileId.starts(with: "http") {
urlString = fileId
} else {
urlString = "\(serverUrl)/drive/files/\(fileId)"
}
return URL(string: urlString)
}