Skip to content

Commit

Permalink
fix tvOS compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Dec 22, 2024
1 parent 9e016b1 commit fcf5b50
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions Examples/Examples.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
BC912A7A2D12F0600077EFF3 /* MoQTHaishinKit in Frameworks */ = {isa = PBXBuildFile; productRef = BC912A792D12F0600077EFF3 /* MoQTHaishinKit */; };
BC912A7E2D12F06F0077EFF3 /* SRTHaishinKit in Frameworks */ = {isa = PBXBuildFile; productRef = BC912A7D2D12F06F0077EFF3 /* SRTHaishinKit */; };
BC912A812D12F10C0077EFF3 /* libc++.1.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = BC912A802D12F0900077EFF3 /* libc++.1.tbd */; };
BC912DDD2D185D360077EFF3 /* MoQTHaishinKit in Frameworks */ = {isa = PBXBuildFile; productRef = BC912DDC2D185D360077EFF3 /* MoQTHaishinKit */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -252,6 +253,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
BC912DDD2D185D360077EFF3 /* MoQTHaishinKit in Frameworks */,
BC33A1232CDF525B0016EEA0 /* SRTHaishinKit in Frameworks */,
BC33A1212CDF525B0016EEA0 /* HaishinKit in Frameworks */,
);
Expand Down Expand Up @@ -1394,6 +1396,11 @@
package = BC9128822D12E7AD0077EFF3 /* XCLocalSwiftPackageReference "../../HaishinKit.swift" */;
productName = SRTHaishinKit;
};
BC912DDC2D185D360077EFF3 /* MoQTHaishinKit */ = {
isa = XCSwiftPackageProductDependency;
package = BC9128822D12E7AD0077EFF3 /* XCLocalSwiftPackageReference "../../HaishinKit.swift" */;
productName = MoQTHaishinKit;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 2945CBB41B4BE66000104112 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Network

@available(iOS 16.0, macOS 13.0, *)
@available(iOS 16.0, macOS 13.0, tvOS 16.0, *)
extension NWProtocolQUIC.Options {
func verifySelfCert() -> NWProtocolQUIC.Options {
let securityProtocolOptions: sec_protocol_options_t = self.securityProtocolOptions
Expand Down
2 changes: 1 addition & 1 deletion MoQTHaishinKit/Sources/MoQTConnection.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

@available(iOS 16.0, macOS 13.0, *)
@available(iOS 16.0, macOS 13.0, tvOS 16.0, *)
public actor MoQTConnection {
public static let defaultPort = 4433
/// The supported protocols are moqt.
Expand Down
4 changes: 2 additions & 2 deletions MoQTHaishinKit/Sources/MoQTSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation
import HaishinKit
import Network

@available(iOS 16.0, macOS 13.0, *)
@available(iOS 16.0, macOS 13.0, tvOS 16.0, *)
final actor MoQTSocket {
static let alpn = ["moq-00"]
static let defaultWindowSizeC = Int(UInt8.max)
Expand Down Expand Up @@ -199,7 +199,7 @@ final actor MoQTSocket {
}
}

@available(iOS 16.0, macOS 13.0, *)
@available(iOS 16.0, macOS 13.0, tvOS 16.0, *)
extension MoQTSocket: NetworkTransportReporter {
// MARK: NetworkTransportReporter
func makeNetworkMonitor() async -> NetworkMonitor {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
Do you need additional support? Technical support on Issues and Discussions is provided only to contributors and academic researchers of HaishinKit. By becoming a sponsor, we can provide the support you need.

Sponsor: $50 per month: Technical support via GitHub Issues with priority response.
* If you want to support e-mail based communication without GitHub.
- Consulting fee is [$50](https://www.paypal.me/shogo4405/50USD)/1 incident. I'm able to response a few days.

## 💬 Communication
* GitHub Issues and Discussions are open spaces for communication among users and are available to everyone as long as [the code of conduct](https://github.com/shogo4405/HaishinKit.swift?tab=coc-ov-file) is followed.
* The author focuses on responding to contributors and academic researchers of HaishinKit, so please do not expect a reply.
* Whether someone is a contributor to HaishinKit is mainly determined by their GitHub profile icon. If you are using the default icon, there is a chance your input might be overlooked, so please consider setting a custom one. It could be a picture of your pet, for example. Personally, I like cats.
* If you want to support e-mail based communication without GitHub.
* Consulting fee is [$50](https://www.paypal.me/shogo4405/50USD)/1 incident. I'm able to response a few days.

## 🌏 Related projects
Project name |Notes |License
Expand Down

0 comments on commit fcf5b50

Please sign in to comment.