-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add tvos
as a new platform
#4152
Conversation
@@ -66,7 +66,7 @@ class UmbrellaTargetDescription | |||
# | |||
attr_accessor :specs | |||
|
|||
# @return [Symbol] The platform (either `:ios`, `:watchos` or `:osx`). | |||
# @return [Symbol] The platform (either `:ios`, `:watchos`, `:tvos` or `:osx`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oxford comma.
We probably need to override the code sign settings in the validator as well |
@@ -189,7 +189,7 @@ def self.add_developers_frameworks_if_needed(xcconfig, platform) | |||
search_paths = xcconfig.attributes['FRAMEWORK_SEARCH_PATHS'] ||= '' | |||
search_paths_to_add = [] | |||
search_paths_to_add << '$(inherited)' | |||
if platform == :ios || platform == :watchos | |||
if platform == :ios || platform == :watchos || platform == :tvos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At some point one of these becomes prettier imo :)
if [:ios, :watchos, :tvos].include?(platform)
# ...
else
# ...
end
or
case platform
when :ios, :watchos, :tvos
# ...
else
# ...
end
Hot hot hot 👍 |
@@ -84,6 +84,7 @@ def save_as(path) | |||
def generate_platform_import_header | |||
case platform.name | |||
when :ios then "#import <UIKit/UIKit.h>\n" | |||
when :tvos then "#import <UIKit/UIKit.h>\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please no :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but don't think this PR is the right place to change this stuff. Users will be very confused when UIKit symbols are suddenly undefined for just one of the UIKit platforms.
👍 but this needs a rebase |
I've rebased this, will merge once the dependent PRs have all been merged |
🎉 |
No description provided.