1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-27 07:46:15 +01:00

fix: app version setup issue

This commit is contained in:
CMK 2021-03-01 12:28:08 +08:00
parent 0e96a2f1d0
commit 72a446b22d

View File

@ -13,11 +13,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
let appContext = AppContext()
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
return true
// Update app version info. See: `Settings.bundle`
UserDefaults.standard.setValue(UIApplication.appVersion(), forKey: "Mastodon.appVersion")
UserDefaults.standard.setValue(UIApplication.appBuild(), forKey: "Mastodon.appBundle")
return true
}
// MARK: UISceneSession Lifecycle