Skip to content

Commit 1b6dbca

Browse files
committed
Build for tvOS
1 parent e62fb3b commit 1b6dbca

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Sources/HMCharacteristic+Promise.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public enum AccessoryError: Error {
88
case characteristicMissing
99
}
1010

11+
@available(iOS 8.0, tvOS 10.0, *)
1112
extension HMCharacteristic {
1213
/**
1314
A simple typesafe promise wrapper around readValue

Sources/HMHomeManager+Promise.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import Foundation
22
import PromiseKit
33
import HomeKit
44

5+
@available(iOS 8.0, tvOS 10.0, *)
56
public enum HomeKitError: Error {
67
case permissionDeined
78
}
89

10+
@available(iOS 8.0, tvOS 10.0, *)
911
extension HMHomeManager {
1012
public func homes() -> Promise<[HMHome]> {
1113
return HMHomeManagerProxy().promise
@@ -37,6 +39,7 @@ extension HMHomeManager {
3739
#endif
3840
}
3941

42+
@available(iOS 8.0, tvOS 10.0, *)
4043
internal class HMHomeManagerProxy: PromiseProxy<[HMHome]>, HMHomeManagerDelegate {
4144

4245
fileprivate let manager: HMHomeManager

0 commit comments

Comments
 (0)