Skip to content

Commit

Permalink
fix: detect tvos for adhoc, development
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Jun 25, 2024
1 parent 677cfbf commit 4ce0dd6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

> List all changes before release a new version.
## [3.1.1] (2024-06-25)
## [3.1.2] (2024-06-25)

### Fixed

Expand Down Expand Up @@ -342,8 +342,8 @@ Dropped Ruby 2.5 ~ 3.0 support (no changes required.).

- Updated dependency of CFPropertly list be a range between 2.3.4. (thanks @[cschroed](https://github.com/cschroed))

[Unreleased]: https://github.com/icyleaf/app-info/compare/v3.1.1..HEAD
[3.1.1]: https://github.com/icyleaf/app-info/compare/v3.1.0...v3.1.1
[Unreleased]: https://github.com/icyleaf/app-info/compare/v3.1.2..HEAD
[3.1.2]: https://github.com/icyleaf/app-info/compare/v3.1.0...v3.1.2
[3.1.0]: https://github.com/icyleaf/app-info/compare/v3.0.0...v3.1.0
[3.0.0]: https://github.com/icyleaf/app-info/compare/v2.8.5...v3.0.0
[3.0.0.beta4]: https://github.com/icyleaf/app-info/compare/v3.0.0.beta3...v3.0.0.beta4
Expand Down
6 changes: 4 additions & 2 deletions lib/app_info/mobile_provision.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def certificates
# @return [Boolea]
def development?
case platform
when Platform::IOS
when Platform::IOS, Platform::APPLETV
entitlements['get-task-allow'] == true
when Platform::MACOS
!devices.nil?
Expand All @@ -130,7 +130,7 @@ def development?
# @return [Boolea]
def appstore?
case platform
when Platform::IOS
when Platform::IOS, Platform::APPLETV
!development? && entitlements.key?('beta-reports-active')
when Platform::MACOS
!development?
Expand Down Expand Up @@ -218,6 +218,8 @@ def enabled_capabilities
capabilities << 'Low Latency HLS'
when 'com.apple.developer.associated-domains.mdm-managed'
capabilities << 'MDM Managed Associated Domains'
when 'keychain-access-groups'
capabilities << 'Keychain Sharing'
# macOS Only
when 'com.apple.developer.maps'
capabilities << 'Maps'
Expand Down
2 changes: 1 addition & 1 deletion lib/app_info/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module AppInfo
VERSION = '3.1.1'
VERSION = '3.1.2'
end

0 comments on commit 4ce0dd6

Please sign in to comment.