8000 Extract project writing into a new object. by sebastianv1 · Pull Request #8247 · CocoaPods/CocoaPods · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Extract project writing into a new object. #8247

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

Merged

Conversation

sebastianv1
Copy link
Collaborator

This extracts writing and cleaning up a Project out of PodsProjectGenerator and into its own object called PodsProjectWriter.

@CocoaPodsBarista
Copy link
1 Warning
⚠️ Please include a CHANGELOG entry to credit yourself!
You can find it at CHANGELOG.md.

Here's an example of your CHANGELOG entry:

* Extract project writing into a new object.  
  [sebastianv1](https://github.com/sebastianv1)
  [#issue_number](https://github.com/CocoaPods/CocoaPods/issues/issue_number)

note: There are two invisible spaces after the entry's text.

Generated by 🚫 Danger


def write!
UI.message "- Writing Xcode project file to #{UI.path @sandbox.project_path}" do
@project.pods.remove_from_project if @project.pods.empty?
Copy link
Member

Choose a reason for hiding this comment

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

use methods for access here instead of ivars

@@ -210,7 +210,10 @@ def generate_pods_project(generator = create_generator)
@target_installation_results = pod_project_generation_result.target_installation_results
@pods_project = pod_project_generation_result.project
run_podfile_post_install_hooks
generator.write(@pods_project, @target_installation_results)
project_writer = Xcode::PodsProjectWriter.new(@sandbox, @pods_project,
Copy link
Contributor

Choose a reason for hiding this comment

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

and here no need to use ivars again

@dnkoutso dnkoutso added this to the 1.7.0 milestone Nov 6, 2018
@sebastianv1 sebastianv1 force-pushed the sebastianv1/extract-project-writing branch 3 times, most recently from 05aef52 to 386826a Compare November 6, 2018 19:28
This extracts writing and cleaning up a `Project` out of `PodsProjectGenerator` and into its own object called `PodsProjectWriter`.
@sebastianv1 sebastianv1 force-pushed the sebastianv1/extract-project-writing branch from 386826a to ec164bf Compare November 6, 2018 19:41
@dnkoutso dnkoutso merged commit 47c9a26 into CocoaPods:master Nov 7, 2018
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.

4 participants
0