Repository Public
1import Foundation23enum Config {4 /// Server origin. A different origin can only be given to DEBUG builds (local test server).5 static let base: URL = {6 #if DEBUG7 if let s = UserDefaults.standard.string(forKey: "SPMBase"), let u = URL(string: s) { return u }8 #endif9 return URL(string: "https://message.spboucher.ai")!10 }()11 static let rpID = "message.spboucher.ai"12 static var deviceLabel: String {13 #if os(macOS)14 return "Mac · SP Message"15 #else16 return (UIDevice.current.userInterfaceIdiom == .pad ? "iPad" : "iPhone") + " · SP Message"17 #endif18 }19}20#if canImport(UIKit)21import UIKit22#endif23