Skip to content

Commit fecbff7

Browse files
committed
updated RecordKey enum with raw values
1 parent a0d858f commit fecbff7

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

BTCPhotonKit/CloudStore.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ enum CloudstoreError: Error {
1818
}
1919

2020
enum RecordKey: String {
21-
case phone
22-
case email
23-
case keyId
21+
case phone = "1_photon_phone"
22+
case email = "1_photon_email"
23+
case keyId = "1_photon_key_id"
2424
case shortKeyID
2525
case ciphertext
2626
case timeValue
@@ -46,9 +46,6 @@ public class CloudStore {
4646

4747
init(store:CloudDAO = CloudKitDAO() ) {
4848
self.store = store
49-
KEY_ID = "\(VERSION)_photon_key_id"
50-
PHONE = "\(VERSION)_photon_phone"
51-
EMAIL = "\(VERSION)_photon_email"
5249
}
5350

5451
/// Encrypted key storage

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ Copy the contents of [BTCPhotonKit](./BTCPhotonKit) to your xcode project.
3737
* ##### Using Xcode automatically manage signing
3838
Follow [Apple documentaion](https://developer.apple.com/documentation/cloudkit/enabling_cloudkit_in_your_app) or follow the images below
3939

40-
![alt text](./images/a.png)
41-
![alt text](./images/b.png)
42-
![alt text](./images/c.png)
43-
![alt text](./images/d.png)
40+
![Alt text](./images/a.png?raw=true)
41+
![Alt text](./images/b.png?raw=true)
42+
![Alt text](./images/c.png?raw=true)
43+
![Alt text](./images/d.png?raw=true)
4444

4545
## Example usage
4646

0 commit comments

Comments
 (0)