Skip to content

Commit 98b1abd

Browse files
authored
Update to ParseSwift 4.14.2 (#175)
* Update to ParseSwift 4.14.2 * update ci * fix watch simultor * fix watch simultor
1 parent c04a44c commit 98b1abd

File tree

9 files changed

+14
-13
lines changed

9 files changed

+14
-13
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66
branches: [ main ]
77
env:
8-
CI_XCODE: '/Applications/Xcode_14.0.app/Contents/Developer'
8+
CI_XCODE: '/Applications/Xcode_14.0.1.app/Contents/Developer'
99

1010
jobs:
1111
xcode-test-ios:
@@ -42,7 +42,7 @@ jobs:
4242
- name: Use multiple cores
4343
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
4444
- name: Build
45-
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme ParseCareKit-watchOS -destination platform\=watchOS\ Simulator,name\=Apple\ Watch\ Series\ 6\ -\ 44mm | xcpretty
45+
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme ParseCareKit-watchOS -destination platform\=watchOS\ Simulator,name\=Apple\ Watch\ Series\ 6\ \(44mm\) | xcpretty
4646
env:
4747
DEVELOPER_DIR: ${{ env.CI_XCODE }}
4848

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
release:
44
types: [published]
55
env:
6-
CI_XCODE: '/Applications/Xcode_14.0.app/Contents/Developer'
6+
CI_XCODE: '/Applications/Xcode_14.0.1.app/Contents/Developer'
77

88
jobs:
99
docs:

Package.resolved

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"repositoryURL": "https://github.com/cbaker6/CareKit.git",
77
"state": {
88
"branch": null,
9-
"revision": "c18f88d7131db8431796f30241e31ed9d0051c60",
10-
"version": "2.1.0"
9+
"revision": "90860442762805ceda874921ff04ff15a91e58a7",
10+
"version": "2.1.1"
1111
}
1212
},
1313
{
@@ -24,8 +24,8 @@
2424
"repositoryURL": "https://github.com/parse-community/Parse-Swift",
2525
"state": {
2626
"branch": null,
27-
"revision": "40a7b42b20c22253d53b09dc49c37fbb7973fdfe",
28-
"version": "4.14.1"
27+
"revision": "dc7666f774755be333f48f25c4d8bead0a1a6877",
28+
"version": "4.14.2"
2929
}
3030
}
3131
]

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let package = Package(
1414
.package(url: "https://github.com/cbaker6/CareKit.git",
1515
.upToNextMajor(from: "2.1.1")),
1616
.package(url: "https://github.com/parse-community/Parse-Swift.git",
17-
.upToNextMajor(from: "4.14.1"))
17+
.upToNextMajor(from: "4.14.2"))
1818
],
1919
targets: [
2020
.target(

ParseCareKit.xcodeproj/project.pbxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@
11671167
repositoryURL = "https://github.com/parse-community/Parse-Swift";
11681168
requirement = {
11691169
kind = upToNextMajorVersion;
1170-
minimumVersion = 4.14.1;
1170+
minimumVersion = 4.14.2;
11711171
};
11721172
};
11731173
/* End XCRemoteSwiftPackageReference section */

Sources/ParseCareKit/Objects/PCKClock.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct PCKClock: ParseObject {
4444
return updated
4545
}
4646

47-
func decodeClock(completion:@escaping(OCKRevisionRecord.KnowledgeVector?) -> Void) {
47+
func decodeClock(completion: @escaping(OCKRevisionRecord.KnowledgeVector?) -> Void) {
4848
guard let data = self.vector?.data(using: .utf8) else {
4949
if #available(iOS 14.0, watchOS 7.0, *) {
5050
Logger.clock.error("Error in Clock. Couldn't get data as utf8")
@@ -144,7 +144,7 @@ struct PCKClock: ParseObject {
144144
}
145145

146146
static func fetchFromCloud(uuid: UUID, createNewIfNeeded: Bool,
147-
completion:@escaping(PCKClock?,
147+
completion: @escaping(PCKClock?,
148148
OCKRevisionRecord.KnowledgeVector?,
149149
ParseError?) -> Void) {
150150

Sources/ParseCareKit/PCKUtility.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class PCKUtility {
8585
clientKey: clientKey,
8686
serverURL: serverURL,
8787
liveQueryServerURL: liveQueryURL,
88-
allowingCustomObjectIds: true,
88+
requiringCustomObjectIds: true,
8989
usingTransactions: useTransactions,
9090
usingPostForQuery: true,
9191
deletingKeychainIfNeeded: deleteKeychainIfNeeded,

Sources/ParseCareKit/ParseCareKitConstants.swift

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public enum PCKStoreClass: String {
106106
]
107107

108108
for (key, value) in concreteClasses {
109+
// swiftlint:disable for_where
109110
if !isCorrectType(key, check: value) {
110111
concreteClasses.removeValue(forKey: key)
111112
}

Tests/ParseCareKitTests/EncodingCareKitTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ParseCareKitTests: XCTestCase {
8989
clientKey: "clientKey",
9090
masterKey: "masterKey",
9191
serverURL: url,
92-
allowingCustomObjectIds: true,
92+
requiringCustomObjectIds: true,
9393
usingPostForQuery: true,
9494
testing: true)
9595
do {

0 commit comments

Comments
 (0)