-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Remove all warnings and clean up project (#128)
* clean up warnings * Bump CareKitEssentials * Bump CareKitEssentials version * Bump min macOS version * Build for latest OS's
- Loading branch information
Showing
11 changed files
with
143 additions
and
99 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
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 |
---|---|---|
|
@@ -160,21 +160,26 @@ extension OCKStore { | |
stretch.impactsAdherence = true | ||
stretch.asset = "figure.walk" | ||
|
||
try await addTasksIfNotPresent([nausea, doxylamine, kegels, stretch]) | ||
try await addTasksIfNotPresent( | ||
[ | ||
nausea, | ||
doxylamine, | ||
kegels, | ||
stretch | ||
] | ||
) | ||
|
||
var contact1 = OCKContact( | ||
id: "jane", | ||
givenName: "Jane", | ||
familyName: "Daniels", | ||
carePlanUUID: nil | ||
) | ||
contact1.asset = "JaneDaniels" | ||
contact1.title = "Family Practice Doctor" | ||
contact1.role = "Dr. Daniels is a family practice doctor with 8 years of experience." | ||
contact1.emailAddresses = [OCKLabeledValue(label: CNLabelEmailiCloud, value: "[email protected]")] | ||
contact1.phoneNumbers = [OCKLabeledValue(label: CNLabelWork, value: "(800) 257-2000")] | ||
contact1.messagingNumbers = [OCKLabeledValue(label: CNLabelWork, value: "(800) 357-2040")] | ||
|
||
contact1.address = { | ||
let address = OCKPostalAddress() | ||
address.street = "1500 San Pablo St" | ||
|
@@ -184,9 +189,12 @@ extension OCKStore { | |
return address | ||
}() | ||
|
||
var contact2 = OCKContact(id: "matthew", givenName: "Matthew", | ||
familyName: "Reiff", carePlanUUID: nil) | ||
contact2.asset = "MatthewReiff" | ||
var contact2 = OCKContact( | ||
id: "matthew", | ||
givenName: "Matthew", | ||
familyName: "Reiff", | ||
carePlanUUID: nil | ||
) | ||
contact2.title = "OBGYN" | ||
contact2.role = "Dr. Reiff is an OBGYN with 13 years of experience." | ||
contact2.phoneNumbers = [OCKLabeledValue(label: CNLabelWork, value: "(800) 257-1000")] | ||
|
@@ -200,6 +208,11 @@ extension OCKStore { | |
return address | ||
}() | ||
|
||
try await addContactsIfNotPresent([contact1, contact2]) | ||
try await addContactsIfNotPresent( | ||
[ | ||
contact1, | ||
contact2 | ||
] | ||
) | ||
} | ||
} |
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
Oops, something went wrong.