-
Notifications
You must be signed in to change notification settings - Fork 465
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
Change return value of adding system framework #466
Conversation
It doesn't look like CP uses the return value from this function anywhere, so no other changes are required. But this is a breaking change so I'm not sure if we want to do this or not. If we do I'll add a CHANGELOG entry. |
If this behavior is desired I'll have to update the docstrings as well |
@keith why is this a breaking change? |
I guess it's not, I thought that it was intentionally returning the input array of strings, but that's actually just a side effect from ruby I guess, according to the docstring. |
I got tricked by the |
👍🏻 with a changelog entry |
@@ -308,7 +308,7 @@ def new_shell_script_build_phase(name = nil) | |||
# @return [void] |
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.
The documented return type was void
, so nobody should have been expecting a stable return value before. So this is not a breaking change 👍
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.
🎉
It looks like the |
@keith please update documentation return type |
Previously it looked like this function was intending to return a file reference of the newly created framework, but instead it was returning the original array of strings. This change returns the array of file references so consumers can manipulate them as needed.
0b9116b
to
af8c79d
Compare
Updated. Would love a second look! |
Previously it looked like this function was intending to return a file
reference of the newly created framework, but instead it was returning
the original array of strings. This change returns the array of file
references so consumers can manipulate them as needed.