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

Add the ability to add custom Run Script build phases #120

Closed
wants to merge 9 commits into from
Closed

Add the ability to add custom Run Script build phases #120

wants to merge 9 commits into from

Conversation

mikaelbartlett
Copy link
Contributor

No description provided.

@@ -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

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
Copy link
Member

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.

@gfontenot gfontenot changed the title fixes #118 Add the ability to add custom Run Script build phases Mar 19, 2014

def add_script_phases(scripts)
if scripts
scripts.each do |script|

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
Copy link
Member

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:
Copy link
Member

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
Copy link

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?

Copy link
Member

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.

@tonyd256
Copy link
Contributor

this is cool 👍

@JoelQ
Copy link

JoelQ commented Mar 19, 2014

👍

@gfontenot
Copy link
Member

Rebased, squashed, and merged as a8cef3e

@gfontenot gfontenot closed this Mar 20, 2014
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.

5 participants