Skip to content

Releases: GetStream/stream-swift

2.2.2

24 Feb 16:39

Choose a tag to compare

🐞 Fixed

  • ISO8601DateFormatter.Options.withFractionalSeconds option for ISO8601DateFormatter causes an exception in iOS11 (fixed in iOS11.2) #24

2.2.1

20 Dec 13:00
@buh buh

Choose a tag to compare

✅ Added

  • Client.disconnect() will disconnect from Stream and reset the current User.
  • Public Comment.text

2.2.0

20 Dec 12:57
@buh buh

Choose a tag to compare

💥 Breaking Changes

The Client will always work as a shared instance and you can setup it without a user token:

Client.config = .init(apiKey: "<#ApiKey#>", appId: "<#AppId#>")

The user setup is more clear. You can easily manage user login/logout:

Client.shared.setupUser(token: token) { _ in 
    // Do all your requests from here. Reload feeds and etc.
}

No need to send to create a Stream user request for new users.

You can use custom User type with an additional user parameter. For example:

let myUser = MyUser(id: "123", name: "John Doe", avatarURL: avatarURL)
Client.shared.setupUser(myUser, token: token) { _ in 
    print(MyUser.current)
}

✅ Added

  • Custom JSON Encoder/Decoder. You can change JSONDecoder.default and JSONEncoder.default.

🔄 Changed

  • ClientError.parameterInvalid(AnyKeyPath) > ClientError.parameterInvalid(String)

🐞 Fixed

  • Xcode 10 support
  • Cached ISO8601DateFormatter.

2.1.0

12 Nov 17:39
@buh buh

Choose a tag to compare

Added

  • MissingReference a wrapper for activities, users, reactions and collection objects with missing references.
  • Missable protocol to implement a placeholder for missed objects.

2.0.1

12 Nov 17:36
@buh buh

Choose a tag to compare

Added more logs.

2.0.0

10 Sep 15:54
@buh buh

Choose a tag to compare

Support for Swift 5

1.2.2

16 Jul 12:42
@buh buh

Choose a tag to compare

  • Fixed adding an enriched activity to a feed.
  • Made ClientError properties are public.
  • Added originFeedId to the Activity.

1.2.0

21 Jun 11:43
@buh buh

Choose a tag to compare

  • Fixed the Activity endpoint with getting enriched activities by ids

1.1.9

16 Apr 13:03
@buh buh

Choose a tag to compare

1.1.8

16 Apr 12:57
@buh buh

Choose a tag to compare

Fixed dependencies.