Skip to content

Commit 8c5e606

Browse files
authored
Merge pull request #82 from ably/updateReadme
[ECO-5530] update readme + unpin ably-cocoa version
2 parents 81105e3 + 403d1c0 commit 8c5e606

File tree

4 files changed

+50
-44
lines changed

4 files changed

+50
-44
lines changed

AblyLiveObjects.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ let package = Package(
2020
dependencies: [
2121
.package(
2222
url: "https://github.com/ably/ably-cocoa",
23-
// TODO: Unpin before launch (https://github.com/ably/ably-liveobjects-swift-plugin/issues/75)
24-
revision: "b0c2ecf9da993736297b6986be5610b375440a3f",
23+
from: "1.2.44",
2524
),
2625
.package(
2726
url: "https://github.com/ably/ably-cocoa-plugin-support",

README.md

Lines changed: 43 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,47 @@
1-
# Ably LiveObjects plugin for ably-cocoa SDK
1+
+[![SPM Swift Compatibility](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fably%2Fably-liveobjects-swift-plugin%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/ably/ably-liveobjects-swift-plugin)
2+
[![License](https://badgen.net/github/license/ably/ably-liveobjects-swift-plugin)](https://github.com/ably/ably-liveobjects-swift-plugin/blob/main/LICENSE)
23

3-
This is a work in progress plugin that enables LiveObjects functionality in the [ably-cocoa](https://github.com/ably/ably-cocoa/) SDK. It is not yet ready to be used.
4+
---
45

5-
## Supported Platforms
6+
# Ably LiveObjects Swift Plugin
67

7-
- macOS 11 and above
8-
- iOS 14 and above
9-
- tvOS 14 and above
8+
The Ably LiveObjects plugin enables real-time collaborative data synchronization for the [ably-cocoa](https://github.com/ably/ably-cocoa/) SDK. LiveObjects provides a simple way to build collaborative applications with synchronized state across multiple clients in real-time. Built on [Ably's](https://ably.com/) core service, it abstracts complex details to enable efficient collaborative architectures.
109

11-
## Requirements
10+
> [!WARNING]
11+
> This plugin is currently experimental and the public API may change.
1212
13-
Xcode 16.3 or later.
13+
---
1414

15-
## Installation
15+
## Getting started
1616

17-
For now, here is a code snippet demonstrating how, after installing this package and ably-cocoa using Swift Package Manager, you can set up the LiveObjects plugin and access its functionality.
17+
Everything you need to get started with Ably LiveObjects:
1818

19-
```swift
20-
import Ably
21-
import AblyLiveObjects
19+
- [Learn about Ably LiveObjects.](https://ably.com/docs/liveobjects)
20+
- [Getting started with LiveObjects in Swift.](https://ably.com/docs/liveobjects/quickstart/swift)
21+
- Explore the [example app](Example) to see LiveObjects in action.
2222

23-
let clientOptions = ARTClientOptions(key: /* <insert your Ably API key here> */)
24-
clientOptions.plugins = [.liveObjects: AblyLiveObjects.Plugin.self]
23+
---
2524

26-
let realtime = ARTRealtime(options: clientOptions)
25+
## Supported platforms
2726

28-
// Fetch a channel, specifying the `.objectPublish` and `.objectSubscribe` modes
29-
let channelOptions = ARTRealtimeChannelOptions()
30-
channelOptions.modes = [.objectPublish, .objectSubscribe]
31-
let channel = realtime.channels.get("myChannel", options: channelOptions)
27+
Ably aims to support a wide range of platforms. If you experience any compatibility issues, open an issue in the repository or contact [Ably support](https://ably.com/support).
3228

33-
// Attach the channel
34-
try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<Void, Error>) in
35-
channel.attach { error in
36-
if let error {
37-
continuation.resume(throwing: error)
38-
} else {
39-
continuation.resume()
40-
}
41-
}
42-
}
29+
This plugin supports the following platforms:
4330

44-
// You can now access LiveObjects functionality via the channel's `objects` property:
45-
let rootObject = try await channel.objects.getRoot()
46-
// …and so on
47-
```
31+
| Platform | Support |
32+
| -------- | ------- |
33+
| iOS | >= 14.0 |
34+
| macOS | >= 11.0 |
35+
| tvOS | >= 14.0 |
36+
37+
> [!NOTE]
38+
> Xcode 16.3 or later is required.
39+
40+
---
4841

4942
## Example app
5043

51-
This repository contains an example app, written using SwiftUI, which demonstrates how to use the SDK. The code for this app is in the [`Example`](Example) directory.
44+
This repository contains an example app, written using SwiftUI, which demonstrates how to use the plugin. The code for this app is in the [`Example`](Example) directory.
5245

5346
In order to allow the app to use modern SwiftUI features, it supports the following OS versions:
5447

@@ -60,8 +53,20 @@ To run the app:
6053

6154
1. Open the `AblyLiveObjects.xcworkspace` workspace in Xcode.
6255
2. Follow the instructions inside the `Secrets.example.swift` file to add your Ably API key to the example app.
63-
3. Run the `AblyLiveObjectsExample` target. If you wish to run it on an iOS or tvOS device, you’ll need to set up code signing.
56+
3. Run the `AblyLiveObjectsExample` target. If you wish to run it on an iOS or tvOS device, you'll need to set up code signing.
57+
58+
---
59+
60+
## Releases
61+
62+
The [CHANGELOG.md](./CHANGELOG.md) contains details of the latest releases for this plugin. You can also view all Ably releases on [changelog.ably.com](https://changelog.ably.com).
63+
64+
---
65+
66+
## Contribute
67+
68+
Read the [CONTRIBUTING.md](./CONTRIBUTING.md) guidelines to contribute to Ably or [share feedback or request a new feature](https://forms.gle/mBw9M53NYuCBLFpMA).
6469

65-
## Contributing
70+
## Support, feedback and troubleshooting
6671

67-
For guidance on how to contribute to this project, see the [contributing guidelines](CONTRIBUTING.md).
72+
For help or technical support, visit Ably's [support page](https://ably.com/support). You can also view the [community reported GitHub issues](https://github.com/ably/ably-liveobjects-swift-plugin/issues) or raise one yourself.

0 commit comments

Comments
 (0)