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

Add tvos as a new platform #4152

Merged
merged 8 commits into from
Sep 27, 2015
Merged

Add tvos as a new platform #4152

merged 8 commits into from
Sep 27, 2015

Conversation

neonichu
Copy link
Member

No description provided.

neonichu added a commit that referenced this pull request Sep 10, 2015
@@ -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`).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oxford comma.

@segiddins
Copy link
Member

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
Copy link
Member

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

@alloy
Copy link
Member

alloy commented Sep 10, 2015

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please no :(

Copy link
Member Author

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.

@segiddins
Copy link
Member

👍 but this needs a rebase

@segiddins
Copy link
Member

I've rebased this, will merge once the dependent PRs have all been merged

neonichu added a commit that referenced this pull request Sep 27, 2015
Add `tvos` as a new platform
@neonichu neonichu merged commit a120404 into master Sep 27, 2015
@neonichu neonichu deleted the tvos branch September 27, 2015 11:17
@orta
Copy link
Member

orta commented Sep 27, 2015

🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants