diff --git a/CHANGELOG.md b/CHANGELOG.md index 35885aaa3..e2fd8be98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## [1.2.58](https://github.com/ably/ably-cocoa/tree/1.2.58) + +### What's Changed + +* Decode and encode extras on presence messages (TP3i) by @AndyTWF in https://github.com/ably/ably-cocoa/pull/2186 + +**Full Changelog**: https://github.com/ably/ably-cocoa/compare/1.2.57...1.2.58 + ## [1.2.57](https://github.com/ably/ably-cocoa/tree/1.2.57) ### What's Changed diff --git a/README.md b/README.md index 71b302568..c78234fd4 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ To install the `ably-cocoa` package in your Xcode project: To install the `ably-cocoa` package in another Swift package, add the following to your `Package.Swift`: ```swift - .package(url: "https://github.com/ably/ably-cocoa", from: "1.2.57"), + .package(url: "https://github.com/ably/ably-cocoa", from: "1.2.58"), ``` See Apple's [adding package dependencies to your app](https://developer.apple.com/documentation/swift_packages/adding_package_dependencies_to_your_app) guide for more detail. diff --git a/Scripts/jazzy.sh b/Scripts/jazzy.sh index d653c69ab..00189cd00 100755 --- a/Scripts/jazzy.sh +++ b/Scripts/jazzy.sh @@ -17,7 +17,7 @@ bundle exec jazzy \ --objc \ --clean \ --author Ably \ - --module-version 1.2.57 \ + --module-version 1.2.58 \ --umbrella-header Source/include/Ably/AblyPublic.h \ --framework-root Source \ --module Ably \ diff --git a/Source/ARTClientInformation.m b/Source/ARTClientInformation.m index 47145e89f..6557a6d2c 100644 --- a/Source/ARTClientInformation.m +++ b/Source/ARTClientInformation.m @@ -6,7 +6,7 @@ #import NSString *const ARTClientInformationAgentNotVersioned = @"ARTClientInformationAgentNotVersioned"; -NSString *const ARTClientInformation_libraryVersion = @"1.2.57"; +NSString *const ARTClientInformation_libraryVersion = @"1.2.58"; static NSString *const _libraryName = @"ably-cocoa"; // NSOperatingSystemVersion has NSInteger as version components for some reason, so mitigate it here. diff --git a/Test/AblyTests/Tests/ARTDefaultTests.swift b/Test/AblyTests/Tests/ARTDefaultTests.swift index 4b3b452a8..daf5ab959 100644 --- a/Test/AblyTests/Tests/ARTDefaultTests.swift +++ b/Test/AblyTests/Tests/ARTDefaultTests.swift @@ -6,6 +6,6 @@ class ARTDefaultTests: XCTestCase { func testVersions() { XCTAssertEqual(ARTDefault.apiVersion(), "5") - XCTAssertEqual(ARTDefault.libraryVersion(), "1.2.57") + XCTAssertEqual(ARTDefault.libraryVersion(), "1.2.58") } } diff --git a/Test/AblyTests/Tests/ClientInformationTests.swift b/Test/AblyTests/Tests/ClientInformationTests.swift index 5b437d161..b10a2957f 100644 --- a/Test/AblyTests/Tests/ClientInformationTests.swift +++ b/Test/AblyTests/Tests/ClientInformationTests.swift @@ -9,7 +9,7 @@ final class ClientInformationTests: XCTestCase { XCTAssertEqual(agents.keys.count, 2) - XCTAssertEqual(agents["ably-cocoa"], "1.2.57") + XCTAssertEqual(agents["ably-cocoa"], "1.2.58") #if os(iOS) XCTAssertTrue(agents.keys.contains("iOS")) @@ -27,7 +27,7 @@ final class ClientInformationTests: XCTestCase { // CR3, CR3b func testAgentIdentifierWithAdditionalAgents_withNilAdditionalAgents() { let expectedIdentifier = [ - "ably-cocoa/1.2.57", + "ably-cocoa/1.2.58", ARTDefault.platformAgent() ].sorted().joined(separator: " ") @@ -42,7 +42,7 @@ final class ClientInformationTests: XCTestCase { ] let expectedIdentifier = [ - "ably-cocoa/1.2.57", + "ably-cocoa/1.2.58", "demolib/0.0.1", "morelib", ARTDefault.platformAgent() diff --git a/Test/AblyTests/Tests/RealtimeClientConnectionTests.swift b/Test/AblyTests/Tests/RealtimeClientConnectionTests.swift index 61f3a221c..65bb6aef5 100644 --- a/Test/AblyTests/Tests/RealtimeClientConnectionTests.swift +++ b/Test/AblyTests/Tests/RealtimeClientConnectionTests.swift @@ -372,7 +372,7 @@ class RealtimeClientConnectionTests: XCTestCase { done() case .connected: if let transport = client.internal.transport as? TestProxyTransport, let query = transport.lastUrl?.query { - expect(query).to(haveParam("agent", hasPrefix: "ably-cocoa/1.2.57")) + expect(query).to(haveParam("agent", hasPrefix: "ably-cocoa/1.2.58")) } else { XCTFail("MockTransport isn't working") } diff --git a/Test/AblyTests/Tests/RestClientTests.swift b/Test/AblyTests/Tests/RestClientTests.swift index 8ab3ac020..b2854d7cb 100644 --- a/Test/AblyTests/Tests/RestClientTests.swift +++ b/Test/AblyTests/Tests/RestClientTests.swift @@ -1767,7 +1767,7 @@ class RestClientTests: XCTestCase { let headerAgent = testHTTPExecutor.requests.first!.allHTTPHeaderFields?["Ably-Agent"] let ablyAgent = ARTClientInformation.agentIdentifier(withAdditionalAgents: options.agents) XCTAssertEqual(headerAgent, ablyAgent) - XCTAssertTrue(headerAgent!.hasPrefix("ably-cocoa/1.2.57")) + XCTAssertTrue(headerAgent!.hasPrefix("ably-cocoa/1.2.58")) done() } } diff --git a/Test/AblyTests/Tests/WrapperSDKProxyTests.swift b/Test/AblyTests/Tests/WrapperSDKProxyTests.swift index 35d34fdd7..b8f2d655d 100644 --- a/Test/AblyTests/Tests/WrapperSDKProxyTests.swift +++ b/Test/AblyTests/Tests/WrapperSDKProxyTests.swift @@ -226,7 +226,7 @@ class WrapperSDKProxyTests: XCTestCase { let request = try XCTUnwrap(testHTTPExecutor.requests.first) let expectedIdentifier = [ - "ably-cocoa/1.2.57", + "ably-cocoa/1.2.58", ARTDefault.platformAgent(), "my-wrapper-sdk/1.0.0" ].sorted().joined(separator: " ") @@ -316,7 +316,7 @@ class WrapperSDKProxyTests: XCTestCase { XCTAssertEqual(testHTTPExecutor.requests.count, 3) // initial `request()`, `first()`, `next()` let expectedIdentifier = [ - "ably-cocoa/1.2.57", + "ably-cocoa/1.2.58", ARTDefault.platformAgent(), "my-wrapper-sdk/1.0.0" ].sorted().joined(separator: " ") @@ -350,7 +350,7 @@ class WrapperSDKProxyTests: XCTestCase { XCTAssertEqual(testHTTPExecutor.requests.count, expectedRequestCount) let expectedIdentifier = [ - "ably-cocoa/1.2.57", + "ably-cocoa/1.2.58", ARTDefault.platformAgent(), "my-wrapper-sdk/1.0.0" ].sorted().joined(separator: " ") diff --git a/Version.xcconfig b/Version.xcconfig index 7a43ae568..1f78474a9 100644 --- a/Version.xcconfig +++ b/Version.xcconfig @@ -1 +1 @@ -CURRENT_PROJECT_VERSION = 1.2.57 +CURRENT_PROJECT_VERSION = 1.2.58