Skip to content

Commit

Permalink
🩹 Fix build issues on tvOS and watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ftchirou committed May 13, 2023
1 parent 6729efa commit b6c7f46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PredicateKit/Predicate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public func == <E: Expression, T: Equatable & Primitive> (lhs: E, rhs: T) -> Pre
.comparison(.init(lhs, .equal, rhs))
}

@available(iOS 13.0, *)
@available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
public func == <E: Expression, T: Identifiable> (lhs: E, rhs: T) -> Predicate<E.Root> where E.Value == T, T.ID: Primitive {
.comparison(.init(ObjectIdentifier<E, T.ID>(root: lhs), .equal, rhs.id))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ final class NSFetchRequestBuilderTests: XCTestCase {
XCTAssertEqual(comparison.comparisonPredicateModifier, .direct)
}

@available(iOS 13.0, *)
@available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
func testEqualityWithIdentifiable() throws {
guard let identifiable = makeIdentifiable() else {
XCTFail("could not initialize IdentifiableData")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ final class NSManagedObjectContextExtensionsTests: XCTestCase {
XCTAssertNil(texts.first?["creationDate"])
}

@available(iOS 13.0, *)
@available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
func testFetchWithObjectComparison() throws {
let attachment1 = try container.viewContext.insertAttachment("1")
let attachment2 = try container.viewContext.insertAttachment("2")
Expand Down
2 changes: 1 addition & 1 deletion PredicateKitTests/OperatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ final class OperatorTests: XCTestCase {
XCTAssertEqual(value, 42)
}

@available(iOS 13.0, *)
@available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
func testKeyPathEqualIdentifiable() throws {
struct Data {
let identifiable: IdentifiableData
Expand Down

0 comments on commit b6c7f46

Please sign in to comment.