Skip to content

Commit

Permalink
- Bumped swift-tools to swift 5.9.
Browse files Browse the repository at this point in the history
 - Enabled `StrictConcurrency=complete` mode in order to be prepared for upcoming Swift 6. Implemented `Sendable` support for Flagsmith client and friends.
 - Enabled `ExistentialAny` feature in order to be prepared for upcoming Swift 6. Code adjustments
 - adjusted tests for `StrictConcurrency=complete` mode .
  • Loading branch information
3a4oT committed Mar 12, 2024
1 parent e78bd04 commit b79283e
Show file tree
Hide file tree
Showing 11 changed files with 589 additions and 495 deletions.
2 changes: 1 addition & 1 deletion FlagsmithClient/Classes/Feature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public struct Feature: Codable, Sendable {
self.description = description
}

public func encode(to encoder: Encoder) throws {
public func encode(to encoder: any Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(self.name, forKey: .name)
try container.encodeIfPresent(self.type, forKey: .type)
Expand Down
2 changes: 1 addition & 1 deletion FlagsmithClient/Classes/Flag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public struct Flag: Codable, Sendable {
self.enabled = enabled
}

public func encode(to encoder: Encoder) throws {
public func encode(to encoder: any Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(self.feature, forKey: .feature)
try container.encode(self.value, forKey: .value)
Expand Down
Loading

0 comments on commit b79283e

Please sign in to comment.