diff --git a/AltStore/Apps/AppManager.swift b/AltStore/Apps/AppManager.swift index 5868ad97..a4827a9f 100644 --- a/AltStore/Apps/AppManager.swift +++ b/AltStore/Apps/AppManager.swift @@ -146,8 +146,7 @@ extension AppManager let installedApp = InstalledApp(app: app, bundleIdentifier: profile.appID.bundleIdentifier, - signedDate: Date(), - expirationDate: Date().addingTimeInterval(60 * 60 * 24 * 7), + expirationDate: profile.expirationDate, context: context) let signer = ALTSigner(team: team, certificate: certificate) diff --git a/AltStore/Model/AltStore.xcdatamodeld/AltStore.xcdatamodel/contents b/AltStore/Model/AltStore.xcdatamodeld/AltStore.xcdatamodel/contents index f9f155a2..6eb45007 100644 --- a/AltStore/Model/AltStore.xcdatamodeld/AltStore.xcdatamodel/contents +++ b/AltStore/Model/AltStore.xcdatamodeld/AltStore.xcdatamodel/contents @@ -1,5 +1,5 @@ - + @@ -22,12 +22,11 @@ - - + \ No newline at end of file diff --git a/AltStore/Model/InstalledApp.swift b/AltStore/Model/InstalledApp.swift index c699569f..7185d58b 100644 --- a/AltStore/Model/InstalledApp.swift +++ b/AltStore/Model/InstalledApp.swift @@ -16,7 +16,6 @@ class InstalledApp: NSManagedObject @NSManaged var bundleIdentifier: String @NSManaged var version: String - @NSManaged var signedDate: Date @NSManaged var expirationDate: Date @NSManaged var isBeta: Bool @@ -29,7 +28,7 @@ class InstalledApp: NSManagedObject super.init(entity: entity, insertInto: context) } - init(app: App, bundleIdentifier: String, signedDate: Date, expirationDate: Date, context: NSManagedObjectContext) + init(app: App, bundleIdentifier: String, expirationDate: Date, context: NSManagedObjectContext) { super.init(entity: InstalledApp.entity(), insertInto: context) @@ -38,7 +37,6 @@ class InstalledApp: NSManagedObject self.version = "0.9" self.bundleIdentifier = bundleIdentifier - self.signedDate = signedDate self.expirationDate = expirationDate } } diff --git a/AltStore/My Apps/MyAppsViewController.swift b/AltStore/My Apps/MyAppsViewController.swift index 82453178..6e30ab2d 100644 --- a/AltStore/My Apps/MyAppsViewController.swift +++ b/AltStore/My Apps/MyAppsViewController.swift @@ -59,12 +59,12 @@ private extension MyAppsViewController let detailText = """ - Signed: \(self.dateFormatter.string(from: installedApp.signedDate)) Expires: \(self.dateFormatter.string(from: installedApp.expirationDate)) """ - cell.detailTextLabel?.numberOfLines = 2 + cell.detailTextLabel?.numberOfLines = 1 cell.detailTextLabel?.text = detailText + cell.detailTextLabel?.textColor = .red } return dataSource diff --git a/Dependencies/AltSign b/Dependencies/AltSign index 0065e752..453d54d5 160000 --- a/Dependencies/AltSign +++ b/Dependencies/AltSign @@ -1 +1 @@ -Subproject commit 0065e75201085b47b918ea1db0e01023bfc648ac +Subproject commit 453d54d5522e4f775112de065f79541f2b7a2481