From 8092c4fb1d26417ec5fa0008d80abb03dc7da14f Mon Sep 17 00:00:00 2001 From: Davide Date: Sat, 18 Jan 2025 15:46:11 +0100 Subject: [PATCH] Assume .appleTV to be enough on tvOS (#1074) Eligibility is ensured on iOS/macOS "remote" apps and profiles are not editable on TV. The day they can be edited, this will need a rework, but today it should be fine. Regression due to BuildProducts not being credited on Apple TV. --- .../App/Sources/CommonLibrary/IAP/IAPManager+Verify.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Packages/App/Sources/CommonLibrary/IAP/IAPManager+Verify.swift b/Packages/App/Sources/CommonLibrary/IAP/IAPManager+Verify.swift index d9300751..067ad49b 100644 --- a/Packages/App/Sources/CommonLibrary/IAP/IAPManager+Verify.swift +++ b/Packages/App/Sources/CommonLibrary/IAP/IAPManager+Verify.swift @@ -48,6 +48,10 @@ extension IAPManager { guard isEligible(for: .appleTV) else { throw AppError.ineligibleProfile([.appleTV]) } + // require only .appleTV to cope with BuildProducts + // rely on iOS/macOS eligibility as profiles are not + // editable on tvOS + return #endif let requiredFeatures = features.filter { !isEligible(for: $0)