fix: app version setup issue

This commit is contained in:
CMK 2021-03-01 12:28:08 +08:00
parent 0e96a2f1d0
commit 72a446b22d
1 changed files with 2 additions and 1 deletions

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