-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Project] Change config defines to be prefixed #4702
Conversation
452dccd
to
2631403
Compare
# @return [String] The preprocessor definition to set for the configuration. | ||
# | ||
def define_for_build_configuration(name) | ||
"POD_CONFIGURATION_#{name}".gsub(/[^a-zA-Z0-9_]/, '_').upcase |
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.
Let's prefix that with .underscore
, so that camelcase configuration names will yield to a nicer output.
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.
done
This is a breaking change, please review? |
# | ||
# @return [String] The preprocessor definition to set for the configuration. | ||
# | ||
def define_for_build_configuration(name) |
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.
As this method doesn't have any side-effect, I don't think it should be named by the leading verb convention. I'd prefer definition_for_…
here.
👍 LGTM beside my last comment |
LGTM |
[Project] Change config defines to be prefixed
Closes #4143.
Closes #4148.
\c @mrackwitz