Skip to content

Update keychains of ParseUser and ParseInstallation #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Dec 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ coverage:
changes: false
project:
default:
target: 71
target: 72
comment:
require_changes: true
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Carthage
run: carthage build --no-skip-current
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_VER }}
run: ./carthage.sh build --no-skip-current
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ results.forEach { (score) in
// Query first asynchronously (preferred way) - Performs work on background
// queue and returns to designated on designated callbackQueue.
// If no callbackQueue is specified it returns to main queue
query.first(callbackQueue: .main) { results in
query.first { results in
switch results {
case .success(let score):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ User.signup(username: "hello", password: "world") { results in
if !currentUser.hasSameObjectId(as: user) {
assertionFailure("Error: these two objects should match")
} else {
print("Succesfully signed up user \(user)")
print("Successfully signed up user \(user)")
}

case .failure(let error):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ User.current?.save { results in

switch results {
case .success(let updatedUser):
print("Succesufully save myCustomKey to ParseServer: \(updatedUser)")
print("Successfully save myCustomKey to ParseServer: \(updatedUser)")
case .failure(let error):
assertionFailure("Failed to update user: \(error)")
}
Expand All @@ -42,7 +42,7 @@ User.current?.save { results in
//: Logging out - synchronously
do {
try User.logout()
print("Succesfully logged out")
print("Successfully logged out")
} catch let error {
assertionFailure("Error logging out: \(error)")
}
Expand All @@ -61,7 +61,7 @@ User.login(username: "hello", password: "world") { results in
return
}
assert(currentUser.hasSameObjectId(as: user))
print("Succesfully logged in as user: \(user)")
print("Successfully logged in as user: \(user)")

case .failure(let error):
assertionFailure("Error logging in: \(error)")
Expand All @@ -71,7 +71,7 @@ User.login(username: "hello", password: "world") { results in
//: Logging out - synchronously
do {
try User.logout()
print("Succesfully logged out")
print("Successfully logged out")
} catch let error {
assertionFailure("Error logging out: \(error)")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ DispatchQueue.main.async {

switch results {
case .success(let updatedInstallation):
print("Succesufully save myCustomInstallationKey to ParseServer: \(updatedInstallation)")
print("Successfully save myCustomInstallationKey to ParseServer: \(updatedInstallation)")
case .failure(let error):
assertionFailure("Failed to update installation: \(error)")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var constraints = [QueryConstraint]()
constraints.append(near(key: "location", geoPoint: pointToFind))

let query = GameScore.query(constraints)
query.find(callbackQueue: .main) { results in
query.find { results in
switch results {
case .success(let scores):

Expand All @@ -80,7 +80,7 @@ Notice the "var", the query has to be mutable since it's a valueType.
*/
var querySorted = query
querySorted.order([.descending("score")])
querySorted.find(callbackQueue: .main) { results in
querySorted.find { results in
switch results {
case .success(let scores):

Expand All @@ -97,7 +97,7 @@ querySorted.find(callbackQueue: .main) { results in
//: If you only want to query for scores > 50, you can add more constraints
constraints.append("score" > 9)
var query2 = GameScore.query(constraints)
query2.find(callbackQueue: .main) { results in
query2.find { results in
switch results {
case .success(let scores):

Expand All @@ -116,7 +116,7 @@ query2.find(callbackQueue: .main) { results in

//: If you want to query for scores > 50 and don't have a GeoPoint
var query3 = GameScore.query("score" > 50, doesNotExist(key: "location"))
query3.find(callbackQueue: .main) { results in
query3.find { results in
switch results {
case .success(let scores):

Expand All @@ -134,7 +134,7 @@ query3.find(callbackQueue: .main) { results in

//: If you want to query for scores > 50 and have a GeoPoint
var query4 = GameScore.query("score" > 10, exists(key: "location"))
query4.find(callbackQueue: .main) { results in
query4.find { results in
switch results {
case .success(let scores):

Expand All @@ -154,7 +154,7 @@ let query5 = GameScore.query("score" == 50)
let query6 = GameScore.query("score" == 200)

var query7 = GameScore.query(or(queries: [query5, query6]))
query7.find(callbackQueue: .main) { results in
query7.find { results in
switch results {
case .success(let scores):

Expand Down
Loading