Visual_Novel_iOS/crush/Crush/Src/Utils/AppConst.swift

46 lines
1.3 KiB
Swift
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// AppConst.swift
// Crush
//
// Created by Leon on 2025/7/13.
//
import Foundation
struct AppConst {
///
static let documentPath = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).last!
///
static let cachePath = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.cachesDirectory, FileManager.SearchPathDomainMask.userDomainMask, true).last!
///
static let tempPath = NSTemporaryDirectory() as NSString
static let schemePrefix = "crushlevel://"
static let urlForTos = ""
static let urlForPrivacy = ""
static let discordOAuthAppId = "1396735872459866233"
static let discordCallbackUrl = "https://test.crushlevel.ai"//"http://localhost:3000"
/// gg.epal.labbundleid
static let bundleId = "gg.epal.lab"
static var h5urlRoot: String {
switch APIConfig.environment{
case .test,.dev:
return "https://test.crushlevel.ai"
case .product,.appStore:
#warning("to do")
return "https://test.crushlevel.ai"
}
}
// MARK: - AI
static let gAIPhotoWidth:CGFloat = 1440.0
static let gAIPhotoHeight:CGFloat = 2560.0
}