Skip to content

Commit fb61b78

Browse files
cbaker6TomWFox
andauthored
Add combine publishers for all objects and types (#73)
* wip * Update * Update * Need test cases * updates * Update * Update authentication * Update * Fixed deleteAll * Working publishers * Fix Swift 5.2 closures and new cache for jazzy * Add minimum catalyst support, nits, prepare for release * Nit * Update Sources/ParseSwift/Types/ParseFile+combine.swift Co-authored-by: Tom Fox <[email protected]> * Bring Xcode, SPM, and Cocoapods minimum deployments to the same level: [.iOS(.v12), .macOS(.v10_13), .tvOS(.v12), .watchOS(.v5)] Co-authored-by: Tom Fox <[email protected]>
1 parent 48a871e commit fb61b78

File tree

53 files changed

+4996
-1163
lines changed

Some content is hidden

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

53 files changed

+4996
-1163
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ jobs:
109109
uses: actions/cache@v2
110110
with:
111111
path: vendor/bundle
112-
key: ${{ runner.os }}-gem-v2-${{ hashFiles('**/Gemfile.lock') }}
112+
key: ${{ runner.os }}-gem-v3-${{ hashFiles('**/Gemfile.lock') }}
113113
restore-keys: |
114-
${{ runner.os }}-gem-v2
114+
${{ runner.os }}-gem-v3
115115
- name: Install Bundle
116116
run: |
117117
bundle config path vendor/bundle

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
uses: actions/cache@v2
2727
with:
2828
path: vendor/bundle
29-
key: ${{ runner.os }}-gem-v2-${{ hashFiles('**/Gemfile.lock') }}
29+
key: ${{ runner.os }}-gem-v3-${{ hashFiles('**/Gemfile.lock') }}
3030
restore-keys: |
31-
${{ runner.os }}-gem-v2
31+
${{ runner.os }}-gem-v3
3232
- name: Install Bundle
3333
run: |
3434
bundle config path vendor/bundle

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
# Parse-Swift Changelog
22

33
### main
4-
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/1.1.2...main)
4+
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/1.1.3...main)
55
* _Contributing to this repo? Add info about your change here to be included in next release_
66

7+
### 1.1.3
8+
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/1.1.2...1.1.3)
9+
10+
__New features__
11+
- SwiftUI ready! ([#73](https://github.com/parse-community/Parse-Swift/pull/73)), thanks to [Corey Baker](https://github.com/cbaker6).
12+
13+
__Fixes__
14+
- Fixes some issues with `ParseUser.logout` ([#73](https://github.com/parse-community/Parse-Swift/pull/73)), thanks to [Corey Baker](https://github.com/cbaker6).
15+
716
### 1.1.2
817
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/1.1.1...1.1.2)
918

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PackageDescription
44

55
let package = Package(
66
name: "ParseSwift",
7-
platforms: [.iOS(.v11), .macOS(.v10_13), .tvOS(.v11), .watchOS(.v4)],
7+
platforms: [.iOS(.v12), .macOS(.v10_13), .tvOS(.v12), .watchOS(.v5)],
88
products: [
99
.library(
1010
name: "ParseSwift",

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,13 @@ do {
238238
[scoreToFetch, score2ToFetch].deleteAll { result in
239239
switch result {
240240
case .success(let deletedScores):
241-
deletedScores.forEach { error in
242-
guard let error = error else {
243-
print("Successfully deleted scores")
244-
return
241+
deletedScores.forEach { result in
242+
switch result {
243+
case .success:
244+
print("Successfully deleted score")
245+
case .failure(let error):
246+
print("Error deleting: \(error)")
245247
}
246-
print("Error deleting: \(error)")
247248
}
248249
case .failure(let error):
249250
assertionFailure("Error deleting: \(error)")

ParseSwift.playground/Pages/4 - User - Continued.xcplaygroundpage/Contents.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,17 @@ User.current?.signup { result in
101101
}
102102
}
103103

104+
//: Logging out - synchronously.
105+
do {
106+
try User.logout()
107+
print("Successfully logged out")
108+
} catch let error {
109+
print("Error logging out: \(error)")
110+
}
111+
104112
//: Password Reset Request - synchronously.
105113
do {
106-
try User.verificationEmailRequest(email: "[email protected]")
114+
try User.verificationEmail(email: "[email protected]")
107115
print("Successfully requested verification email be sent")
108116
} catch let error {
109117
print("Error requesting verification email be sent: \(error)")

ParseSwift.playground/contents.xcplayground

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<page name='8 - Pointers'/>
1212
<page name='9 - Files'/>
1313
<page name='10 - Cloud Code'/>
14-
<page name='11 - LiveQuery'/>
15-
<page name='12 - Roles and Relations'/>
16-
<page name='13 - Operations'/>
14+
<page name='11 - LiveQuery'/>
15+
<page name='12 - Roles and Relations'/>
16+
<page name='13 - Operations'/>
1717
<page name='14 - Config'/>
1818
</pages>
19-
</playground>
19+
</playground>

ParseSwift.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "ParseSwift"
3-
s.version = "1.1.2"
3+
s.version = "1.1.3"
44
s.summary = "Parse Pure Swift SDK"
55
s.homepage = "https://github.com/parse-community/Parse-Swift"
66
s.authors = {
@@ -10,10 +10,10 @@ Pod::Spec.new do |s|
1010
:git => "#{s.homepage}.git",
1111
:tag => "#{s.version}",
1212
}
13-
s.ios.deployment_target = "11.0"
13+
s.ios.deployment_target = "12.0"
1414
s.osx.deployment_target = "10.13"
15-
s.tvos.deployment_target = "11.0"
16-
s.watchos.deployment_target = "4.0"
15+
s.tvos.deployment_target = "12.0"
16+
s.watchos.deployment_target = "5.0"
1717
s.swift_versions = ['5.1', '5.2', '5.3']
1818
s.source_files = "Sources/ParseSwift/**/*.swift"
1919
s.license = {

ParseSwift.xcodeproj/project.pbxproj

Lines changed: 192 additions & 10 deletions
Large diffs are not rendered by default.

Scripts/jazzy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ bundle exec jazzy \
55
--author_url http://parseplatform.org \
66
--github_url https://github.com/parse-community/Parse-Swift \
77
--root-url http://parseplatform.org/Parse-Swift/api/ \
8-
--module-version 1.1.2 \
8+
--module-version 1.1.3 \
99
--theme fullwidth \
1010
--skip-undocumented \
1111
--output ./docs/api \

0 commit comments

Comments
 (0)