~handlerug/TelegramSwift

e35f2e4571ece647a2e3341f1374c9030c205852 — handlerug 3 years ago 9da17e6
Stop tracking API config file
1 files changed, 0 insertions(+), 47 deletions(-)

D Telegram-Mac/Config.swift
D Telegram-Mac/Config.swift => Telegram-Mac/Config.swift +0 -47
@@ 1,47 0,0 @@
final class ApiEnvironment {
    static var apiId:Int32 {
        return 9
    }
    static var apiHash:String {
        return "3975f648bb682ee889f35483bc618d1c"
    }
    
    static var bundleId: String {
        return "ru.keepcoder.Telegram"
    }
    static var teamId: String {
        return "6N38VWS5BX"
    }
    
    static var group: String {
        return teamId + "." + bundleId
    }
    
    static var appData: Data {
        let apiData = evaluateApiData() ?? ""
        let dict:[String: String] = ["bundleId": bundleId, "data": apiData]
        return try! JSONSerialization.data(withJSONObject: dict, options: [])
    }
    static var language: String {
        return "macos"
    }
    static var version: String {
        var suffix: String = ""
        #if STABLE
            suffix = "STABLE"
        #elseif APP_STORE
            suffix = "APPSTORE"
        #elseif ALPHA
            suffix = "ALPHA"
        #elseif GITHUB
            suffix = "GITHUB"
        #else
            suffix = "BETA"
        #endif
        let shortVersion = Bundle.main.infoDictionary?["CFBundleShortVersionString"] ?? ""
        return "\(shortVersion) \(suffix)"
    }
}