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 before_headers and after_headers execution position DSL #686

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

dnkoutso
Copy link
Contributor

@dnkoutso dnkoutso commented Jul 19, 2021

@dnkoutso dnkoutso added this to the 1.11.0 milestone Jul 19, 2021
@dnkoutso dnkoutso requested a review from amorde July 19, 2021 21:22
@@ -1047,7 +1047,7 @@ def dependency=(args)
SCRIPT_PHASE_OPTIONAL_KEYS = [:shell_path, :input_files, :output_files, :input_file_lists, :output_file_lists,
:show_env_vars_in_log, :execution_position, :dependency_file].freeze

EXECUTION_POSITION_KEYS = [:before_compile, :after_compile, :any].freeze
EXECUTION_POSITION_KEYS = [:before_compile, :after_compile, :before_headers, :after_headers, :any].freeze
Copy link
Contributor Author

@dnkoutso dnkoutso Jul 19, 2021

Choose a reason for hiding this comment

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

if these are added and serialized an older version of cocoapods will not be able to parse them, I think that is OK and the author should use s.cocoapods_version dsl to specify >=. 1.11.0. treating it as :any will make consumption of a pod to be broken anyway.

Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we could expose that in the docs somehow to clarify that if you use those keys you need X version of CocoaPods

@dnkoutso dnkoutso merged commit a74cd59 into CocoaPods:master Jul 20, 2021
@dnkoutso dnkoutso deleted the copy_headers_script_phase branch July 20, 2021 06:15
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.

None yet

3 participants