Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
⚡ Relase 2.2.3 (#144)
Browse files Browse the repository at this point in the history
* ⚡ Release 2.2.3

* Fixes swift demo project
  • Loading branch information
flovilmart authored Jan 8, 2018
1 parent 0d23a52 commit e04adfe
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# ParseLiveQuery-iOS-OSX Changelog

# 2.2.3

- Bumps Parse SDK to 1.15.4 and Bolts to 1.9.0, thanks to [marcgovi](https://github.com/marcgovi)
- Updates logging strategy for websockets, thanks to [Joe Szymanski](https://github.com/JoeSzymanski)
- Ensures unsubscribed queries are removed from subscriptions list, thanks to [Joe Szymanski](https://github.com/JoeSzymanski)
- Do not attempt to reconnect if a connection is already in progress, thanks to [Joe Szymanski](https://github.com/JoeSzymanski)

# 2.2.2

- Adds ability to set the clientKey on the connect message, thanks to [bryandel](https://github.com/bryandel)
Expand Down
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "BoltsFramework/Bolts-Swift"
github "ParsePlatform/Parse-SDK-iOS-OSX" == 1.15.0
github "ParsePlatform/Parse-SDK-iOS-OSX" == 1.15.4
github "daltoniam/Starscream" == 2.1.1
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "BoltsFramework/Bolts-ObjC" "1.8.4"
github "BoltsFramework/Bolts-ObjC" "1.9.0"
github "BoltsFramework/Bolts-Swift" "1.3.0"
github "ParsePlatform/Parse-SDK-iOS-OSX" "1.15.4"
github "daltoniam/Starscream" "2.1.1"
github "ParsePlatform/Parse-SDK-iOS-OSX" "1.15.0"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Bolts-ObjC
Submodule Bolts-ObjC updated 43 files
+29 −7 .gitignore
+1 −1 .gitmodules
+17 −9 .travis.yml
+4 −4 Bolts.podspec
+19 −37 Bolts.xcodeproj/project.pbxproj
+0 −30 Bolts.xcodeproj/project.xcworkspace/xcshareddata/Bolts.xcscmblueprint
+1 −1 Bolts.xcodeproj/xcshareddata/xcschemes/Bolts-iOS-Dynamic.xcscheme
+1 −1 Bolts.xcodeproj/xcshareddata/xcschemes/Bolts-iOS.xcscheme
+1 −1 Bolts.xcodeproj/xcshareddata/xcschemes/Bolts-macOS.xcscheme
+1 −1 Bolts.xcodeproj/xcshareddata/xcschemes/Bolts-tvOS-Dynamic.xcscheme
+1 −1 Bolts.xcodeproj/xcshareddata/xcschemes/Bolts-tvOS.xcscheme
+1 −1 Bolts.xcodeproj/xcshareddata/xcschemes/Bolts-watchOS-Dynamic.xcscheme
+1 −1 Bolts.xcodeproj/xcshareddata/xcschemes/Bolts-watchOS.xcscheme
+1 −1 Bolts/Common/BFCancellationToken.h
+2 −2 Bolts/Common/BFExecutor.h
+10 −10 Bolts/Common/BFExecutor.m
+25 −0 Bolts/Common/BFGeneric.h
+0 −32 Bolts/Common/BFTask+Exceptions.h
+0 −24 Bolts/Common/BFTask+Exceptions.m
+28 −55 Bolts/Common/BFTask.h
+10 −108 Bolts/Common/BFTask.m
+5 −25 Bolts/Common/BFTaskCompletionSource.h
+0 −12 Bolts/Common/BFTaskCompletionSource.m
+1 −1 Bolts/Common/Bolts.h
+1 −1 Bolts/Common/Bolts.m
+1 −0 Bolts/iOS/BFAppLinkNavigation.h
+1 −1 Bolts/iOS/BFAppLinkResolving.h
+1 −0 Bolts/iOS/BFAppLinkReturnToRefererController.h
+1 −0 Bolts/iOS/BFAppLinkReturnToRefererView.h
+13 −22 Bolts/iOS/BFWebViewAppLinkResolver.m
+4 −2 BoltsTests/AppLinkTests.m
+2 −164 BoltsTests/TaskTests.m
+468 −209 CHANGELOG.md
+2 −0 Configurations/Bolts-iOS-Dynamic.xcconfig
+3 −1 Configurations/Bolts-iOS.xcconfig
+2 −0 Configurations/Bolts-macOS.xcconfig
+2 −0 Configurations/Bolts-tvOS-Dynamic.xcconfig
+2 −0 Configurations/Bolts-tvOS.xcconfig
+2 −2 Configurations/Bolts-watchOS-Dynamic.xcconfig
+2 −2 Configurations/Bolts-watchOS.xcconfig
+1 −1 Configurations/BoltsTests-iOS.xcconfig
+1 −1 Configurations/Version.xcconfig
+1 −1 Vendor/xctoolchain
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Parse-SDK-iOS-OSX
9 changes: 6 additions & 3 deletions Examples/LiveQueryDemo/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class ChatRoomManager {
disconnectFromChatRoom()
}

Room.query()?.whereKey("name", equalTo: room).getFirstObjectInBackground().continue({ task in
Room.query()?.whereKey("name", equalTo: room).getFirstObjectInBackground()
.continueOnSuccessWith(block: { task -> Any? in
self.currentChatRoom = task.result as? Room
print("Connected to room \(self.currentChatRoom?.name ?? "null")")

Expand All @@ -64,7 +65,8 @@ class ChatRoomManager {
}

func printPriorMessages() {
messagesQuery.findObjectsInBackground().continue({ task in
messagesQuery.findObjectsInBackground()
.continueOnSuccessWith(block: { task -> Any? in
(task.result as? [Message])?.forEach(self.printMessage)

return nil
Expand Down Expand Up @@ -123,7 +125,8 @@ let password = "Enter password for \(username): ".withCString {
let chatManager = ChatRoomManager()
let inputManager = InputManager(chatManager: chatManager)

PFUser.logInWithUsername(inBackground: username, password: password).continue({ task in
PFUser.logInWithUsername(inBackground: username, password: password)
.continueOnSuccessWith(block: { task -> Any? in
print("Enter chat room to connect to: ")
return nil
})
Expand Down
2 changes: 1 addition & 1 deletion ParseLiveQuery.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ParseLiveQuery'
s.version = '2.2.2'
s.version = '2.2.3'
s.license = { :type => 'BSD' }
s.summary = 'Allows for subscriptions to queries in conjunction with parse-server.'
s.homepage = 'http://parseplatform.org'
Expand Down
6 changes: 3 additions & 3 deletions Sources/ParseLiveQuery/Internal/BoltsHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ func objcTask<T>(_ task: Task<T>) -> BFTask<T> where T: AnyObject {
taskCompletionSource.trySetCancelled()
} else if task.faulted {
let error = (task.error as NSError?) ?? NSError(domain: unknownDomain, code: -1, userInfo: nil)
taskCompletionSource.trySetError(error)
taskCompletionSource.trySet(error: error)
} else {
taskCompletionSource.trySetResult(task.result)
taskCompletionSource.trySet(result: task.result)
}
}
return taskCompletionSource.task
}

func swiftTask(_ task: BFTask<AnyObject>) -> Task<AnyObject> {
let taskCompletionSource = TaskCompletionSource<AnyObject>()
task.continue({ task in
task.continueWith(block: { task in
if task.isCancelled {
taskCompletionSource.tryCancel()
} else if let error = task.error , task.isFaulted {
Expand Down

0 comments on commit e04adfe

Please sign in to comment.