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 getFileElement #175

Merged
merged 3 commits into from
Dec 5, 2017
Merged

Add getFileElement #175

merged 3 commits into from
Dec 5, 2017

Conversation

yonaskolb
Copy link
Collaborator

@yonaskolb yonaskolb commented Dec 2, 2017

  • make XCVersionGroup subclass PBXFileElement
  • add PBXProj.Objects.getFileElement
  • use getFileElement in func fileName(fileReference: String) -> String?

This change is Reviewable

return nil
}
return fileElement.name ?? fileElement.path
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will this cause any issues? Before only the fileReference was returning the path if no name was present. If so it can be changed @pepibumur

Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIK it shouldn't @yonaskolb. I think groups, variant groups and version groups they should all have a name so the path wouldn't be returned in those cases.

@pepicrft
Copy link
Contributor

pepicrft commented Dec 3, 2017

Awesome cleanup @yonaskolb 👌

Sent with GitHawk

@pepicrft pepicrft merged commit db1e225 into master Dec 5, 2017
@pepicrft pepicrft deleted the file_element_getter branch December 5, 2017 12:46
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

2 participants