Skip to content

Commit fd47ce5

Browse files
4.0.0 Release #734
1 parent 659c649 commit fd47ce5

File tree

139 files changed

+2849
-2383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+2849
-2383
lines changed

.swiftpm/xcode/xcshareddata/xcschemes/CareKit (SPM).xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1430"
3+
LastUpgradeVersion = "1640"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

.swiftpm/xcode/xcshareddata/xcschemes/CareKitFHIR (SPM).xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1430"
3+
LastUpgradeVersion = "1640"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

.swiftpm/xcode/xcshareddata/xcschemes/CareKitStore (SPM).xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1430"
3+
LastUpgradeVersion = "1640"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

.swiftpm/xcode/xcshareddata/xcschemes/CareKitUI (SPM).xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1430"
3+
LastUpgradeVersion = "1640"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

CareKit/CareKit.xcodeproj/project.pbxproj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@
874874
attributes = {
875875
BuildIndependentTargetsInParallel = YES;
876876
LastSwiftUpdateCheck = 1020;
877-
LastUpgradeCheck = 1620;
877+
LastUpgradeCheck = 1640;
878878
ORGANIZATIONNAME = carekit.org;
879879
TargetAttributes = {
880880
5196C7F8226F8F8F00F1C2A2 = {
@@ -1223,7 +1223,7 @@
12231223
GCC_WARN_UNUSED_FUNCTION = YES;
12241224
GCC_WARN_UNUSED_LABEL = YES;
12251225
GCC_WARN_UNUSED_VARIABLE = YES;
1226-
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
1226+
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
12271227
MARKETING_VERSION = "$(VERSION_NUMBER)";
12281228
MTL_ENABLE_DEBUG_INFO = YES;
12291229
ONLY_ACTIVE_ARCH = YES;
@@ -1237,7 +1237,7 @@
12371237
TARGETED_DEVICE_FAMILY = "1,2";
12381238
VERSIONING_SYSTEM = "apple-generic";
12391239
VERSION_INFO_PREFIX = "";
1240-
WATCHOS_DEPLOYMENT_TARGET = 8.7;
1240+
WATCHOS_DEPLOYMENT_TARGET = 11.0;
12411241
};
12421242
name = Debug;
12431243
};
@@ -1300,7 +1300,7 @@
13001300
GCC_WARN_UNUSED_FUNCTION = YES;
13011301
GCC_WARN_UNUSED_LABEL = YES;
13021302
GCC_WARN_UNUSED_VARIABLE = YES;
1303-
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
1303+
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
13041304
MARKETING_VERSION = "$(VERSION_NUMBER)";
13051305
MTL_ENABLE_DEBUG_INFO = NO;
13061306
ONLY_ACTIVE_ARCH = NO;
@@ -1314,7 +1314,7 @@
13141314
VALIDATE_PRODUCT = YES;
13151315
VERSIONING_SYSTEM = "apple-generic";
13161316
VERSION_INFO_PREFIX = "";
1317-
WATCHOS_DEPLOYMENT_TARGET = 8.7;
1317+
WATCHOS_DEPLOYMENT_TARGET = 11.0;
13181318
};
13191319
name = Release;
13201320
};
@@ -1357,7 +1357,6 @@
13571357
"SWIFT_ACTIVE_COMPILATION_CONDITIONS[arch=*]" = DEBUG;
13581358
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
13591359
TARGETED_DEVICE_FAMILY = "1,2,4";
1360-
WATCHOS_DEPLOYMENT_TARGET = 7.0;
13611360
};
13621361
name = Debug;
13631362
};
@@ -1399,7 +1398,6 @@
13991398
SUPPORTS_UIKITFORMAC = NO;
14001399
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;
14011400
TARGETED_DEVICE_FAMILY = "1,2,4";
1402-
WATCHOS_DEPLOYMENT_TARGET = 7.0;
14031401
};
14041402
name = Release;
14051403
};

CareKit/CareKit.xcodeproj/xcshareddata/xcschemes/CareKit.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1620"
3+
LastUpgradeVersion = "1640"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

CareKit/CareKit/Shared/Extensions/OCKAnyContact+Extension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extension OCKAnyContact {
6060

6161
// Generate the map item that pinpoints the contact's address
6262
let geoloc = CLGeocoder()
63-
geoloc.geocodePostalAddress(address) { placemarks, error in
63+
geoloc.geocodePostalAddress(address.cnPostalAddress()) { placemarks, error in
6464

6565
if let error {
6666
log(.error, "Failed to geocode postal address", error: error)

CareKit/CareKit/iOS/Extensions/OCKContact+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private extension OCKLabeledValue {
3939
}
4040

4141
private extension OCKPostalAddress {
42-
func toCNLabeledValue() -> CNLabeledValue<CNPostalAddress> { CNLabeledValue(label: "", value: self) }
42+
func toCNLabeledValue() -> CNLabeledValue<CNPostalAddress> { CNLabeledValue(label: "", value: cnPostalAddress()) }
4343
}
4444

4545

CareKit/CareKit/iOS/View Updaters/Contact/OCKDetailedContactView+Updatable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extension OCKDetailedContactView: OCKContactUpdatable {
4343
}
4444

4545
instructionsLabel.text = contact.role
46-
addressButton.detailLabel.text = OCKContactUtility.string(from: contact.address)
46+
addressButton.detailLabel.text = OCKContactUtility.string(from: contact.address?.cnPostalAddress())
4747

4848
// Show the contact buttons if the contact has relevant data
4949
addressButton.setIsHiddenIfNeeded(contact.address == nil)

CareKit/CareKitTests/Contact/TestDetailedContactViewSynchronizer.swift

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,15 @@ private extension OCKContact {
4545
contact.title = "Family Practice"
4646
contact.messagingNumbers = phoneNumbers
4747
contact.emailAddresses = [OCKLabeledValue(label: "work", value: "[email protected]")]
48-
let address = OCKPostalAddress()
49-
address.street = "26 E Centerline Rd"
50-
address.city = "Victor"
51-
address.state = "MI"
52-
address.postalCode = "48848"
53-
contact.address = address
48+
49+
contact.address = OCKPostalAddress(
50+
street: "26 E Centerline Rd",
51+
city: "Victor",
52+
state: "MI",
53+
postalCode: "48848",
54+
country: ""
55+
)
56+
5457
return contact
5558
}
5659
}
@@ -99,7 +102,7 @@ class TestDetailedContactViewSynchronizer: XCTestCase {
99102
XCTAssertEqual(view.headerView.detailLabel.text, contact.title)
100103
XCTAssertEqual(view.headerView.iconImageView?.image, UIImage(systemName: "person.crop.circle"))
101104
XCTAssertEqual(view.instructionsLabel.text, contact.role)
102-
XCTAssertEqual(view.addressButton.detailLabel.text, addressFormatter.string(from: contact.address!))
105+
XCTAssertEqual(view.addressButton.detailLabel.text, addressFormatter.string(from: contact.address!.cnPostalAddress()))
103106
XCTAssertFalse(view.addressButton.isHidden)
104107
XCTAssertFalse(view.callButton.isHidden)
105108
XCTAssertFalse(view.emailButton.isHidden)

0 commit comments

Comments
 (0)