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.
This commit is contained in:
Davide 2025-01-18 15:46:11 +01:00 committed by GitHub
parent d42b336908
commit 8092c4fb1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)