forked from Sorix/CloudCore
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from deeje/feature/EncryptedFields
EncryptedValues
- Loading branch information
Showing
11 changed files
with
114 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "CloudCore" | ||
s.summary = "Framework that enables synchronization between CloudKit and Core Data." | ||
s.version = "4.0.2" | ||
s.version = "4.1" | ||
s.homepage = "https://github.com/deeje/CloudCore" | ||
s.license = 'MIT' | ||
s.author = { "deeje" => "[email protected]", "Vasily Ulianov" => "[email protected]" } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// DeleteCloudCoreZoneOperation.swift | ||
// CloudCore | ||
// | ||
// Created by deeje cooley on 4/3/22. | ||
// | ||
|
||
import Foundation | ||
import CloudKit | ||
|
||
class DeleteCloudCoreZoneOperation: AsynchronousOperation { | ||
|
||
var errorBlock: ErrorBlock? | ||
private var deleteZoneOperation: CKModifyRecordZonesOperation? | ||
|
||
public override init() { | ||
super.init() | ||
|
||
name = "CreateCloudCoreZoneOperation" | ||
qualityOfService = .userInitiated | ||
} | ||
|
||
override func main() { | ||
super.main() | ||
|
||
let cloudCoreZone = CKRecordZone(zoneName: CloudCore.config.zoneName) | ||
let recordZoneOperation = CKModifyRecordZonesOperation(recordZonesToSave: nil, recordZoneIDsToDelete: [cloudCoreZone.zoneID]) | ||
recordZoneOperation.qualityOfService = .userInitiated | ||
recordZoneOperation.modifyRecordZonesCompletionBlock = { | ||
if let error = $2 { | ||
self.errorBlock?(error) | ||
} | ||
|
||
self.state = .finished | ||
} | ||
|
||
CloudCore.config.container.privateCloudDatabase.add(recordZoneOperation) | ||
self.deleteZoneOperation = recordZoneOperation | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.