COVIDSafe code from version 1.1

This commit is contained in:
covidsafe-support 2020-05-08 17:49:14 +10:00
commit 3640e52eb2
330 changed files with 261540 additions and 0 deletions

View file

@ -0,0 +1,19 @@
//
// CovidPersistentContainer.swift
// CovidSafe
//
// Copyright © 2020 Australian Government. All rights reserved.
//
import CoreData
class CovidPersistentContainer: NSPersistentContainer {
override class func defaultDirectoryURL() -> URL {
do {
let appSupport = try FileManager.default.url(for: .applicationSupportDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
return appSupport.appendingPathComponent("covidsafe", isDirectory: true)
} catch {
return super.defaultDirectoryURL()
}
}
}