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 a list of acknowledgements #11

Merged
merged 2 commits into from Jun 10, 2015
Merged

Add a list of acknowledgements #11

merged 2 commits into from Jun 10, 2015

Conversation

kylef
Copy link
Member

@kylef kylef commented Jun 9, 2015

This pull request changes the settings screen to include acknowledgements (the open source components it depends on) along with the applications version number.

resources = File.read('Pods/Target Support Files/Pods-Polls/Pods-Polls-resources.sh').split("\n")
rsync_index = resources.index { |line| line =~ /^rsync/ }
resources.insert(rsync_index, 'install_resource "Target Support Files/Pods-Polls/Pods-Polls-acknowledgements.plist"')
File.write('Pods/Target Support Files/Pods-Polls/Pods-Polls-resources.sh', resources.join("\n"))
Copy link
Contributor

Choose a reason for hiding this comment

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

hah what a trick!

Copy link
Contributor

Choose a reason for hiding this comment

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

looks brittle but I bet it works :)

Copy link
Member Author

Choose a reason for hiding this comment

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

It certainly is brittle and tied to implementation details of CocoaPods, it will be replaced with a CocoaPods plugin sometime which allows this to work better: CocoaPods/CocoaPods#2465

@zdne
Copy link
Contributor

zdne commented Jun 10, 2015

👍

zdne added a commit that referenced this pull request Jun 10, 2015
@zdne zdne merged commit c817327 into master Jun 10, 2015
@zdne zdne deleted the kylef/acknowledgements branch June 10, 2015 16: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