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

[spaceship] Remove multi_xml dependency #16697

Merged
merged 1 commit into from Jul 6, 2020

Conversation

aried3r
Copy link
Contributor

@aried3r aried3r commented Jun 29, 2020

Checklist

  • I've run bundle exec rspec from the root directory to see all new and existing tests pass
  • I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary.

Motivation and Context

I believe multi_xml is not needed. This PR is what #16664 should have been. Thanks to the feedback by @janpio I took another look.

Description

This was an optional dependency for faraday_middleware when parsing XML responses. As far as I can tell, and from what is being tested with fixtures, that used to be the case but is not any longer, using the App Store Connect API.

There is a custom plist middleware, but that one is in fastlane itself and does not make use of multi_xml. I believe it's used by #provisioning_profiles_via_xcode_api.

https://github.com/fastlane/fastlane/blob/2.150.0.rc4/spaceship/lib/spaceship/portal/portal_client.rb#L653-L674
https://github.com/fastlane/fastlane/blob/2.150.0.rc4/spaceship/lib/spaceship/helper/plist_middleware.rb

The client was introduced in #14888.

Testing Steps

Ran the tests, worked. :)

This was an optional dependency for `faraday_middleware` when parsing
XML responses. As far as I can tell, and from what is being tested with
fixtures, that used to be the case but is not any longer using the App
Store Connect API.

There is a custom plist middleware, but that one is in fastlane itself
and does not make use of `multi_xml`. I believe it's used by
`#provisioning_profiles_via_xcode_api`.

https://github.com/fastlane/fastlane/blob/2.150.0.rc4/spaceship/lib/spaceship/portal/portal_client.rb#L653-L674
https://github.com/fastlane/fastlane/blob/2.150.0.rc4/spaceship/lib/spaceship/helper/plist_middleware.rb
Copy link
Member

@joshdholtz joshdholtz left a comment

Choose a reason for hiding this comment

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

This is great! I ran across this the other day and wasn't actually sure if it was used anymore but it sure doesn't 😇 Thanks for taking the time to do the research!

@joshdholtz joshdholtz merged commit 9650828 into fastlane:master Jul 6, 2020
@fastlane-bot
Copy link

Hey @aried3r 👋

Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉
The code change now lives in the master branch, however it wasn't released to RubyGems yet.
We usually ship about once a week, and your PR will be included in the next one.

Please let us know if this change requires an immediate release by adding a comment here 👍
We'll notify you once we shipped a new release with your changes 🚀

Copy link

@fastlane-bot fastlane-bot left a comment

Choose a reason for hiding this comment

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

Congratulations! 🎉 This was released as part of fastlane 2.151.0 🚀

minuscorp pushed a commit to minuscorp/fastlane that referenced this pull request Jul 18, 2020
This was an optional dependency for `faraday_middleware` when parsing
XML responses. As far as I can tell, and from what is being tested with
fixtures, that used to be the case but is not any longer using the App
Store Connect API.

There is a custom plist middleware, but that one is in fastlane itself
and does not make use of `multi_xml`. I believe it's used by
`#provisioning_profiles_via_xcode_api`.

https://github.com/fastlane/fastlane/blob/2.150.0.rc4/spaceship/lib/spaceship/portal/portal_client.rb#L653-L674
https://github.com/fastlane/fastlane/blob/2.150.0.rc4/spaceship/lib/spaceship/helper/plist_middleware.rb
@fastlane fastlane locked and limited conversation to collaborators Sep 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants