mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-19 21:15:21 +00:00
COVIDSafe code from version 1.4 (#3)
This commit is contained in:
parent
56c93f2079
commit
b2e0c5b34c
33 changed files with 6865 additions and 481 deletions
|
@ -13,11 +13,12 @@ final class UploadHelper {
|
|||
|
||||
public static func uploadEncounterData(pin: String?, _ result: @escaping (UploadResult) -> Void) {
|
||||
let keychain = KeychainSwift()
|
||||
guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else {
|
||||
|
||||
guard let managedContext = EncounterDB.shared.persistentContainer?.viewContext else {
|
||||
result(.Failed)
|
||||
return
|
||||
}
|
||||
|
||||
let managedContext = appDelegate.persistentContainer.viewContext
|
||||
|
||||
let recordsFetchRequest: NSFetchRequest<Encounter> = Encounter.fetchRequestForRecords()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue