-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Get Data representation for Writable
#787
Conversation
✅ Deploy Preview for xcodeproj ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing this @Ibrahimhass and for outlining the motivation behind it.
My initial impression is, while this achieves the desired goal it seems a bit ad-hoc - PBXProj
is one of many types that get serialised to disk.
Perhaps a more wholistic approach would be to update Writable
to include stringRepresentation()
method such that all writable types behave consistently?
@kwridan Thanks for the suggestion :) Something similar to this:
|
Thanks for the suggestion. Yes, this could work, we modify Writable to something like:
The representation can be used to get the string representation of any of the file if required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Ibrahimhass, one small correction needed.
Writable
Writable
Writable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Ibrahimhass
@all-contributors add @Ibrahimhass for code |
I've put up a pull request to add @Ibrahimhass! 🎉 |
…#798) Resolves #793 - Add the ability to instantiate `PBXProj` from `Data` representation - This complements #787 where projects can now be serialised to `Data` representation rather than to disk Notes: - `PBXProj.name` isn't serialised as part of the serialised data representation and will need to be manually updated
Resolves #786
Short description 📝
Solution 📦
Implementation 👩💻👨💻