Skip to content

Commit 3c3a6e8

Browse files
authored
fix: move score property into ParseQueryScorable (#319)
* fix: move score property into ParseQueryScorable * add change log * disable pointer thread test on Linux
1 parent 08882d0 commit 3c3a6e8

File tree

84 files changed

+56
-160
lines changed

Some content is hidden

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

84 files changed

+56
-160
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22

33
### main
44

5-
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/3.1.1...main)
5+
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/3.1.2...main)
66
* _Contributing to this repo? Add info about your change here to be included in the next release_
77

8+
### 3.1.2
9+
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/3.1.1...3.1.2)
10+
11+
__Fixes__
12+
- Allowing building of the Swift SDK for Swift 5.5.0 and 5.5.1 re-enabling builds for Xcode 13.0 and 13.1. Note that async/await functionality is only available for Swift 5.5.2+ and Xcode 13.2+ ([#320](https://github.com/parse-community/Parse-Swift/pull/320)), thanks to [Corey Baker](https://github.com/cbaker6).
13+
- Move the var score: Double? to a protocol named ParseQueryScorable. When developers want to sort by score using a matchesText QueryConstraint, they just conform their ParseObject's to ParseQueryScorable ([#319](https://github.com/parse-community/Parse-Swift/pull/319)), thanks to [Corey Baker](https://github.com/cbaker6).
14+
815
### 3.1.1
916
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/3.1.0...3.1.1)
1017

ParseSwift.playground/Pages/1 - Your first Object.xcplaygroundpage/Contents.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ struct GameScore: ParseObject, ParseObjectMutable {
3636
var createdAt: Date?
3737
var updatedAt: Date?
3838
var ACL: ParseACL?
39-
var score: Double?
4039

4140
//: Your own properties.
4241
var points: Int = 0
@@ -61,7 +60,6 @@ struct GameData: ParseObject {
6160
var createdAt: Date?
6261
var updatedAt: Date?
6362
var ACL: ParseACL?
64-
var score: Double?
6563

6664
//: Your own properties.
6765
var polygon: ParsePolygon?

ParseSwift.playground/Pages/10 - Cloud Code.xcplaygroundpage/Contents.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ struct GameScore: ParseObject {
106106
var createdAt: Date?
107107
var updatedAt: Date?
108108
var ACL: ParseACL?
109-
var score: Double?
110109

111110
//: Your own properties.
112111
var points: Int = 0

ParseSwift.playground/Pages/11 - LiveQuery.xcplaygroundpage/Contents.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ struct GameScore: ParseObject {
1616
var createdAt: Date?
1717
var updatedAt: Date?
1818
var ACL: ParseACL?
19-
var score: Double?
2019

2120
//: Your own properties.
2221
var points: Int = 0

ParseSwift.playground/Pages/12 - Roles and Relations.xcplaygroundpage/Contents.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ struct User: ParseUser {
1919
var createdAt: Date?
2020
var updatedAt: Date?
2121
var ACL: ParseACL?
22-
var score: Double?
2322

2423
//: These are required by `ParseUser`.
2524
var username: String?
@@ -39,7 +38,6 @@ struct Role<RoleUser: ParseUser>: ParseRole {
3938
var createdAt: Date?
4039
var updatedAt: Date?
4140
var ACL: ParseACL?
42-
var score: Double?
4341

4442
//: Provided by Role.
4543
var name: String
@@ -56,7 +54,6 @@ struct GameScore: ParseObject, ParseObjectMutable {
5654
var createdAt: Date?
5755
var updatedAt: Date?
5856
var ACL: ParseACL?
59-
var score: Double?
6057

6158
//: Your own properties.
6259
var points: Int = 0

ParseSwift.playground/Pages/13 - Operations.xcplaygroundpage/Contents.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ struct GameScore: ParseObject {
1919
var createdAt: Date?
2020
var updatedAt: Date?
2121
var ACL: ParseACL?
22-
var score: Double?
2322

2423
//: Your own properties.
2524
var points: Int? = 0

ParseSwift.playground/Pages/15 - Custom ObjectId.xcplaygroundpage/Contents.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ struct GameScore: ParseObject, ParseObjectMutable {
2727
var createdAt: Date?
2828
var updatedAt: Date?
2929
var ACL: ParseACL?
30-
var score: Double?
3130

3231
//: Your own properties.
3332
var points: Int = 0

ParseSwift.playground/Pages/17 - SwiftUI - Finding Objects.xcplaygroundpage/Contents.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ struct GameScore: ParseObject {
2525
var createdAt: Date?
2626
var updatedAt: Date?
2727
var ACL: ParseACL?
28-
var score: Double?
2928

3029
//: Your own properties.
3130
var points: Int = 0

ParseSwift.playground/Pages/18 - SwiftUI - Finding Objects With Custom ViewModel.xcplaygroundpage/Contents.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ struct GameScore: ParseObject {
2626
var createdAt: Date?
2727
var updatedAt: Date?
2828
var ACL: ParseACL?
29-
var score: Double?
3029

3130
//: Your own properties.
3231
var points: Int = 0

ParseSwift.playground/Pages/19 - SwiftUI - LiveQuery.xcplaygroundpage/Contents.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ struct GameScore: ParseObject {
2424
var createdAt: Date?
2525
var updatedAt: Date?
2626
var ACL: ParseACL?
27-
var score: Double?
2827

2928
//: Your own properties.
3029
var points: Int = 0

0 commit comments

Comments
 (0)