Migrates database + cached apps from app sandbox to app group

This commit is contained in:
Riley Testut
2020-09-16 12:09:12 -07:00
parent aaaf6ed38d
commit 50a5d56856
4 changed files with 121 additions and 16 deletions

View File

@@ -228,6 +228,12 @@ public extension InstalledApp
return appsDirectoryURL
}
class var legacyAppsDirectoryURL: URL {
let baseDirectory = FileManager.default.applicationSupportDirectory
let appsDirectoryURL = baseDirectory.appendingPathComponent("Apps")
return appsDirectoryURL
}
class func fileURL(for app: AppProtocol) -> URL
{
let appURL = self.directoryURL(for: app).appendingPathComponent("App.app")