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

Refactor XCScheme API to enable multiple targets #95

Merged
merged 1 commit into from
Sep 25, 2013
Merged

Refactor XCScheme API to enable multiple targets #95

merged 1 commit into from
Sep 25, 2013

Conversation

jasonprado
Copy link
Contributor

This is my first time writing Ruby, so please let me know if I've done anything that's not idiomatic. Also this is a breaking API change, let me know if there's a way to handle that.

With the changes to the API, all existing specs still pass. I added a spec for a project that explicitly builds and tests multiple targets.

Thanks!

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling ffbb9ef on jasonprado:master into * on CocoaPods:master*.


if (build_target.product_type == 'com.apple.product-type.application') then
buildable_product_runnable = profile_action.add_element 'BuildableProductRunnable'
if build_target.product_type == 'com.apple.product-type.application' then
Copy link
Member

Choose a reason for hiding this comment

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

Can you reuse the constant PRODUCT_TYPE_UTI[:application] here?

@alloy
Copy link
Member

alloy commented Sep 23, 2013

Ruby-wise this looks very good!

We follow SemVer and as we’re still pre v1, API breaking changes may be introduced.

As I/we haven’t used the scheme code for anything yet, I would like to ask @heyzooi to inspect the API changes and see if he’s missing anything, as he is probably using it in a real-world script/app. @heyzooi Can you take a look at that?

@heyzooi
Copy link
Contributor

heyzooi commented Sep 24, 2013

Sure! I will take a look and answer as soon as I can.

@fabiopelosin fabiopelosin merged commit ffbb9ef into CocoaPods:master Sep 25, 2013
@fabiopelosin
Copy link
Member

I needed to toy around with the Schemes implementation and the patch looked good! I've also added some other minor improvements.

Glad to see that the support for the schemes is maturing 🍻
Thanks for the contribution

@heyzooi
Copy link
Contributor

heyzooi commented Sep 25, 2013

Looks fine for me. The only feature that I needed was share a scheme.

@alloy
Copy link
Member

alloy commented Sep 25, 2013

@heyzooi Thanks!

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.

None yet

5 participants