mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Merge commit '8dc6f0029f0f0cf1ece86fd2e5e10d5ad4bb9d9c'
This commit is contained in:
commit
6de83e7a55
@ -366,15 +366,20 @@ private enum QueuedWakeup: Int32 {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var isDebugConfiguration = false
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
LoggingSettings.defaultSettings = LoggingSettings(logToFile: true, logToConsole: true, redactSensitiveData: true)
|
isDebugConfiguration = true
|
||||||
#else
|
#endif
|
||||||
if BuildConfig.shared().isInternalBuild {
|
|
||||||
|
if Bundle.main.appStoreReceiptURL?.lastPathComponent == "sandboxReceipt" {
|
||||||
|
isDebugConfiguration = true
|
||||||
|
}
|
||||||
|
|
||||||
|
if isDebugConfiguration || BuildConfig.shared().isInternalBuild {
|
||||||
LoggingSettings.defaultSettings = LoggingSettings(logToFile: true, logToConsole: false, redactSensitiveData: true)
|
LoggingSettings.defaultSettings = LoggingSettings(logToFile: true, logToConsole: false, redactSensitiveData: true)
|
||||||
} else {
|
} else {
|
||||||
LoggingSettings.defaultSettings = LoggingSettings(logToFile: true, logToConsole: false, redactSensitiveData: true)
|
LoggingSettings.defaultSettings = LoggingSettings(logToFile: false, logToConsole: false, redactSensitiveData: true)
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
let rootPath = rootPathForBasePath(appGroupUrl.path)
|
let rootPath = rootPathForBasePath(appGroupUrl.path)
|
||||||
performAppGroupUpgrades(appGroupPath: appGroupUrl.path, rootPath: rootPath)
|
performAppGroupUpgrades(appGroupPath: appGroupUrl.path, rootPath: rootPath)
|
||||||
|
@ -89,9 +89,9 @@ func snapshotEnvironment(application: UIApplication, mainWindow: UIWindow, statu
|
|||||||
let _ = updatePresentationThemeSettingsInteractively(postbox: result!.postbox, { _ in
|
let _ = updatePresentationThemeSettingsInteractively(postbox: result!.postbox, { _ in
|
||||||
switch theme {
|
switch theme {
|
||||||
case .day:
|
case .day:
|
||||||
return PresentationThemeSettings(chatWallpaper: .color(0xffffff), chatWallpaperMode: .still, theme: .builtin(.day), themeAccentColor: nil, fontSize: .regular, automaticThemeSwitchSetting: AutomaticThemeSwitchSetting(trigger: .none, theme: .nightAccent), disableAnimations: false)
|
return PresentationThemeSettings(chatWallpaper: .color(0xffffff), chatWallpaperOptions: [], theme: .builtin(.day), themeAccentColor: nil, fontSize: .regular, automaticThemeSwitchSetting: AutomaticThemeSwitchSetting(trigger: .none, theme: .nightAccent), disableAnimations: false)
|
||||||
case .night:
|
case .night:
|
||||||
return PresentationThemeSettings(chatWallpaper: .color(0x000000), chatWallpaperMode: .still, theme: .builtin(.nightAccent), themeAccentColor: nil, fontSize: .regular, automaticThemeSwitchSetting: AutomaticThemeSwitchSetting(trigger: .none, theme: .nightAccent), disableAnimations: false)
|
return PresentationThemeSettings(chatWallpaper: .color(0x000000), chatWallpaperOptions: [], theme: .builtin(.nightAccent), themeAccentColor: nil, fontSize: .regular, automaticThemeSwitchSetting: AutomaticThemeSwitchSetting(trigger: .none, theme: .nightAccent), disableAnimations: false)
|
||||||
}
|
}
|
||||||
}).start()
|
}).start()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user