mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Cleanup
This commit is contained in:
parent
ddb80d81c4
commit
89713b2ed8
@ -319,33 +319,6 @@ final class SharedApplicationContext {
|
||||
})
|
||||
self.clearNotificationsManager = clearNotificationsManager
|
||||
|
||||
#if DEBUG
|
||||
for argument in ProcessInfo.processInfo.arguments {
|
||||
if argument.hasPrefix("snapshot:") {
|
||||
GlobalExperimentalSettings.isAppStoreBuild = true
|
||||
|
||||
guard let dataPath = ProcessInfo.processInfo.environment["snapshot-data-path"] else {
|
||||
preconditionFailure()
|
||||
}
|
||||
setupSnapshotData(dataPath)
|
||||
switch String(argument[argument.index(argument.startIndex, offsetBy: "snapshot:".count)...]) {
|
||||
case "chat-list":
|
||||
snapshotChatList(application: application, mainWindow: self.window!, window: self.mainWindow, statusBarHost: statusBarHost)
|
||||
case "secret-chat":
|
||||
snapshotSecretChat(application: application, mainWindow: self.window!, window: self.mainWindow, statusBarHost: statusBarHost)
|
||||
case "settings":
|
||||
snapshotSettings(application: application, mainWindow: self.window!, window: self.mainWindow, statusBarHost: statusBarHost)
|
||||
case "appearance-settings":
|
||||
snapshotAppearanceSettings(application: application, mainWindow: self.window!, window: self.mainWindow, statusBarHost: statusBarHost)
|
||||
default:
|
||||
break
|
||||
}
|
||||
self.window?.makeKeyAndVisible()
|
||||
return true
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
let appVersion = (Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String) ?? "unknown"
|
||||
|
||||
let baseAppBundleId = Bundle.main.bundleIdentifier!
|
||||
|
Loading…
x
Reference in New Issue
Block a user