-
Notifications
You must be signed in to change notification settings - Fork 105
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 the ability to add custom Run Script build phases #120
Conversation
@@ -58,6 +59,10 @@ def treat_warnings_as_errors | |||
def add_todo_script_phase | |||
xcode_helper.add_todo_script_phase(@config.install_todo_script) | |||
end | |||
|
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.
Trailing whitespace detected.
@@ -9,6 +9,9 @@ | |||
configure_git: true | |||
warnings_as_errors: true | |||
install_todo_script: true | |||
install_build_scripts: | |||
- OverlayVersionIcon | |||
- IncreaseBuildNumber |
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.
We aren't going to want these as the defaults.
|
||
def add_script_phases(scripts) | ||
if scripts | ||
scripts.each do |script| |
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.
Line is too long. [111/80]
Prefer single-quoted strings when you don't need string interpolation or special symbols.
@@ -1,6 +1,6 @@ | |||
module Liftoff | |||
class ProjectConfiguration | |||
attr_accessor :project_name, :company, :prefix, :configure_git, :warnings_as_errors, :install_todo_script, :enable_static_analyzer, :indentation_level, :warnings, :application_target_groups, :unit_test_target_groups, :use_cocoapods | |||
attr_accessor :project_name, :company, :prefix, :configure_git, :warnings_as_errors, :install_todo_script, :enable_static_analyzer, :indentation_level, :warnings, :application_target_groups, :unit_test_target_groups, :use_cocoapods, :install_build_scripts |
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.
install_todo_script
should be removed here.
@@ -8,7 +8,9 @@ | |||
|
|||
configure_git: true | |||
warnings_as_errors: true | |||
install_todo_script: true | |||
install_build_scripts: |
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.
Lets rename this key to run_script_phases
. That will match the format with warnings
better.
@@ -8,7 +8,8 @@ | |||
|
|||
configure_git: true | |||
warnings_as_errors: true | |||
install_todo_script: true | |||
run_script_phases: | |||
- todo.sh: Warn for TODO and FIXME comments |
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.
Is "Warn for TODO and FIXME comments" a comment?
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.
That will end up being the name of the script phase. There will be some documentation changes for this PR that I'm going to do later.
this is cool 👍 |
👍 |
Rebased, squashed, and merged as a8cef3e |
No description provided.