Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tvOS 15.4 #111

Merged
merged 1 commit into from
Jul 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/NetworkInjector+URLSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ extension NetworkInjector {
func _swizzleURLSessionDataTaskDidReceiveResponse(baseClass: AnyClass) {
// For iOS 16 and later, it uses the same method as iOS 12 and later
// https://github.com/ProxymanApp/Proxyman/issues/1271
if #available(iOS 16.0, *) {
if #available(iOS 16.0, tvOS 16.0, *) {
_swizzleURLSessionDataTaskDidReceiveResponseWithoutRewrite(baseClass: baseClass)
} else if #available(iOS 13.0, *) {
} else if #available(iOS 13.0, tvOS 13.0, *) {
// Except for the iOS 13, iOS 14, iOS 15, it has a slightly different method
_swizzleURLSessionDataTaskDidReceiveResponseWithRewrite(baseClass: baseClass)
} else {
Expand Down