AutoCat/AutoCatCore/Utils/Constants.swift

62 lines
2.5 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

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.

import Foundation
public enum Constants {
public enum Backend: String, CaseIterable, Sendable {
case de = "https://vps.aliencat.pro:8443/"
case ru = "https://charon.aliencat.pro:8443/"
case debug = "http://192.168.1.2:3000/"
public var name: String {
switch self {
case .de: "DE"
case .ru: "RU"
case .debug: "Debug"
}
}
public var baseUrl: String {
#if DEBUG
//"http://127.0.0.1:3000/"
"https://charon.aliencat.pro:8444/"
#else
rawValue
#endif
}
}
public static let pnLettersMap: [Character: Character] = [
"А": "A", "В": "B", "Е": "E", "К": "K", "М": "M", "Н": "H", "О": "O", "Р": "P", "С": "C", "Т": "T", "У": "Y", "Х": "X"
]
public static let vinLetters: [Character] = [
"A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
]
public static let googleAuthURL = "https://accounts.google.com/o/oauth2/v2/auth"
public static let googleTokenURL = "https://oauth2.googleapis.com/token"
public static let googleRedirectURL = "com.googleusercontent.apps.994679674451-k7clunkk4nicl6iuajdtc5u7hvustbdb:/oauth2callback"
public static let fbClientId = "994679674451-k7clunkk4nicl6iuajdtc5u7hvustbdb.apps.googleusercontent.com"
public static let fbApiKey = "AIzaSyDVlrQj_05y6AeZNf8enpSWFIiHhgwfnGI"
public static let fbClientVersion = "iOS/FirebaseSDK/6.5.1/FirebaseCore-iOS"
public static let fbVerifyAssertion = "https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyAssertion"
public static let fbRefreshToken = "https://securetoken.googleapis.com/v1/token"
public static let fbUserAgent = "FirebaseAuth.iOS/6.5.1 ru.Vin01/1.0 iPhone/13.5 hw/sim"
public static let secondProviderBundleId = "ru.Vin01"
public static let reportLinkTokenSecret = "#TheTruthIsOutThere"
public static let reportLinkBaseURL = "https://auto.aliencat.pro/report.html"
public static let audioRecordsFolder = "recordings"
public static let userAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Mobile/15E148 Safari/604.1"
public static let avtocodBaseURL = "https://avtocod.ru/api/v4/"
public static let avtocodUserAgent = "avtocod/3 CFNetwork/3826.600.41 Darwin/24.6.0"
}