Skip to content

Commit

Permalink
Merge pull request #1809 from ably/release/1.2.21
Browse files Browse the repository at this point in the history
Release/1.2.21
  • Loading branch information
maratal authored Sep 25, 2023
2 parents 33e0aa0 + 4be243d commit 9c6c44e
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Ably.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Ably"
s.version = '1.2.21-beta.1'
s.version = `Scripts/get-version.sh`
s.summary = "iOS, tvOS and macOS Objective-C and Swift client for Ably"
s.description = <<-DESC
iOS, tvOS and macOS Objective-C and Swift client library for ably.com, the realtime messaging service.
Expand Down
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# Change Log

## [1.2.21-beta.1](https://github.com/ably/ably-cocoa/tree/1.2.21-beta.1)
## [1.2.21](https://github.com/ably/ably-cocoa/tree/1.2.21)

[Full Changelog](https://github.com/ably/ably-cocoa/compare/1.2.20...1.2.21-beta.1)
[Full Changelog](https://github.com/ably/ably-cocoa/compare/1.2.20...1.2.21)

**Implemented features:**

- A preview of an implementation of the location pushes [\#1771](https://github.com/ably/ably-cocoa/issues/1771)
- Location pushes [\#1771](https://github.com/ably/ably-cocoa/issues/1771)
- Incremental backoff and jitter [\#1431](https://github.com/ably/ably-cocoa/issues/1431)
- Handle os connectivity event while CONNECTING [\#1626](https://github.com/ably/ably-cocoa/issues/1626)

**Closed issues:**

- Compiler warning "Non-portable path to file..." [\#1757](https://github.com/ably/ably-cocoa/issues/1757)
- App crash and dyld error message "AblyDeltaCodec cannot be loaded, image not found" [\#1183](https://github.com/ably/ably-cocoa/issues/1183)
- Compatibility with Xcode 15 [\#1803](https://github.com/ably/ably-cocoa/issues/1803)

## [1.2.20](https://github.com/ably/ably-cocoa/tree/1.2.20)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ You can install Ably for iOS and macOS through Package Manager, CocoaPods, Carth
- [This apple guide](https://developer.apple.com/documentation/swift_packages/adding_package_dependencies_to_your_app) explains the steps in more detail.
- To install the `ably-cocoa` package in another **Swift Package**, then add the following to your `Package.Swift`:
```swift
.package(url: "https://github.com/ably/ably-cocoa", from: "1.2.21-beta.1"),
.package(url: "https://github.com/ably/ably-cocoa", from: "1.2.21"),
```
### Installing through [CocoaPods](https://cocoapods.org/)

Expand Down Expand Up @@ -101,7 +101,7 @@ If you see, for example, a `dyld: Library not loaded: @rpath/AblyDeltaCodec.fram

### Manual installation

1. Get the code from GitHub [from the release page](https://github.com/ably/ably-cocoa/releases/tag/1.2.21-beta.1), or clone it to get the latest, unstable and possibly underdocumented version: `git clone [email protected]:ably/ably-cocoa.git`
1. Get the code from GitHub [from the release page](https://github.com/ably/ably-cocoa/releases/tag/1.2.21), or clone it to get the latest, unstable and possibly underdocumented version: `git clone [email protected]:ably/ably-cocoa.git`
2. Drag the directory `ably-cocoa/ably-cocoa` into your project as a group.
3. Ably depends on our [MessagePack Fork](https://github.com/ably-forks/msgpack-objective-C) 0.2.0; get it [from the releases page](https://github.com/ably-forks/msgpack-objective-C/releases/tag/0.2.0-ably-1) and link it into your project.

Expand Down
2 changes: 1 addition & 1 deletion Scripts/jazzy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jazzy \
--objc \
--clean \
--author Ably \
--module-version 1.2.21-beta.1 \
--module-version 1.2.21 \
--umbrella-header Source/include/Ably/Ably.h \
--framework-root Source \
--module Ably \
Expand Down
2 changes: 1 addition & 1 deletion Source/ARTClientInformation.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#import <sys/utsname.h>

NSString *const ARTClientInformationAgentNotVersioned = @"ARTClientInformationAgentNotVersioned";
NSString *const ARTClientInformation_libraryVersion = @"1.2.21-beta.1";
NSString *const ARTClientInformation_libraryVersion = @"1.2.21";
static NSString *const _libraryName = @"ably-cocoa";

// NSOperatingSystemVersion has NSInteger as version components for some reason, so mitigate it here.
Expand Down
2 changes: 1 addition & 1 deletion Test/Tests/ARTDefaultTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ class ARTDefaultTests: XCTestCase {

func testVersions() {
XCTAssertEqual(ARTDefault.apiVersion(), "1.2")
XCTAssertEqual(ARTDefault.libraryVersion(), "1.2.21-beta.1")
XCTAssertEqual(ARTDefault.libraryVersion(), "1.2.21")
}
}
6 changes: 3 additions & 3 deletions Test/Tests/ClientInformationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ final class ClientInformationTests: XCTestCase {

XCTAssertEqual(agents.keys.count, 2)

XCTAssertEqual(agents["ably-cocoa"], "1.2.21-beta.1")
XCTAssertEqual(agents["ably-cocoa"], "1.2.21")

#if os(iOS)
XCTAssertTrue(agents.keys.contains("iOS"))
Expand All @@ -27,7 +27,7 @@ final class ClientInformationTests: XCTestCase {
// CR3, CR3b
func testAgentIdentifierWithAdditionalAgents_withNilAdditionalAgents() {
let expectedIdentifier = [
"ably-cocoa/1.2.21-beta.1",
"ably-cocoa/1.2.21",
ARTDefault.platformAgent()
].sorted().joined(separator: " ")

Expand All @@ -42,7 +42,7 @@ final class ClientInformationTests: XCTestCase {
]

let expectedIdentifier = [
"ably-cocoa/1.2.21-beta.1",
"ably-cocoa/1.2.21",
"demolib/0.0.1",
"morelib",
ARTDefault.platformAgent()
Expand Down
2 changes: 1 addition & 1 deletion Test/Tests/RealtimeClientConnectionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,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.21-beta.1"))
expect(query).to(haveParam("agent", hasPrefix: "ably-cocoa/1.2.21"))
} else {
XCTFail("MockTransport isn't working")
}
Expand Down
2 changes: 1 addition & 1 deletion Test/Tests/RestClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,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.21-beta.1"))
XCTAssertTrue(headerAgent!.hasPrefix("ably-cocoa/1.2.21"))
done()
}
}
Expand Down

0 comments on commit 9c6c44e

Please sign in to comment.