diff --git a/AutoCat.xcodeproj/project.pbxproj b/AutoCat.xcodeproj/project.pbxproj index f6ff7cb..c3ae397 100644 --- a/AutoCat.xcodeproj/project.pbxproj +++ b/AutoCat.xcodeproj/project.pbxproj @@ -1158,7 +1158,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 122; + CURRENT_PROJECT_VERSION = 123; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AutoCat; @@ -1186,7 +1186,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 122; + CURRENT_PROJECT_VERSION = 123; DEVELOPMENT_TEAM = 46DTTB8X4S; INFOPLIST_FILE = AutoCat/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = AutoCat; diff --git a/AutoCat/AppDelegate.swift b/AutoCat/AppDelegate.swift index f8ece8a..cdfe9ab 100644 --- a/AutoCat/AppDelegate.swift +++ b/AutoCat/AppDelegate.swift @@ -26,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { let config = Realm.Configuration( - schemaVersion: 40, + schemaVersion: 41, migrationBlock: { migration, oldSchemaVersion in if oldSchemaVersion <= 31 { migration.enumerateObjects(ofType: "Vehicle") { old, new in diff --git a/AutoCat/Controllers/Osago/OsagoController.swift b/AutoCat/Controllers/Osago/OsagoController.swift index c66ea8e..ebf970e 100644 --- a/AutoCat/Controllers/Osago/OsagoController.swift +++ b/AutoCat/Controllers/Osago/OsagoController.swift @@ -53,6 +53,7 @@ class OsagoController: FormViewController { <<< self.multilineRow(NSLocalizedString("OSAGO contract status", comment: ""), value: osago.status) <<< self.multilineRow(NSLocalizedString("Insurant", comment: ""), value: osago.insurant) <<< self.multilineRow(NSLocalizedString("Owner", comment: ""), value: osago.owner) + <<< self.multilineRow(NSLocalizedString("Birthday", comment: ""), value: osago.birthday) <<< self.multilineRow(NSLocalizedString("Vehicle usage region", comment: ""), value: osago.usageRegion) <<< self.multilineRow(NSLocalizedString("Contract restrictions", comment: ""), value: osago.restrictions) <<< self.row(NSLocalizedString("Plate number", comment: ""), value: osago.plateNumber) diff --git a/AutoCat/ru.lproj/Localizable.strings b/AutoCat/ru.lproj/Localizable.strings index 05791b2..6f4a02c 100644 --- a/AutoCat/ru.lproj/Localizable.strings +++ b/AutoCat/ru.lproj/Localizable.strings @@ -49,6 +49,9 @@ /* No comment provided by engineer. */ "Beginning" = "Начала"; +/* No comment provided by engineer. */ +"Birthday" = "День рождения"; + /* No comment provided by engineer. */ "Brand" = "Марка"; diff --git a/AutoCatCore/Models/Osago.swift b/AutoCatCore/Models/Osago.swift index ab067a8..7f8a89b 100644 --- a/AutoCatCore/Models/Osago.swift +++ b/AutoCatCore/Models/Osago.swift @@ -12,6 +12,7 @@ public class Osago: Object, Decodable, Cloneable { @Persisted public var insurant: String? @Persisted public var owner: String? @Persisted public var usageRegion: String? + @Persisted public var birthday: String? public required init(copy: Osago) { self.date = copy.date