DodoForMastodon icon indicating copy to clipboard operation
DodoForMastodon copied to clipboard

Added Moko Resources

Open JacquesSmuts opened this issue 1 year ago โ€ข 2 comments

๐Ÿ“‘ What does this PR do?

This PR adds Moko Resources to the repo, as well as a small sample to showcase its use.

This includes;

  • Accessing a string with possible localization
  • Accessing an image file by name, with fallback image
  • Accessing a color, with potential theming (this probably won't be used?)
  • Accessing a .json file for mocking network test responses

โœ… Checklist

  • [ ] My pull request adheres to the code style of this project
  • [ ] My code requires changes to the documentation
  • [ ] I have updated the documentation as required
  • [x] All the tests (that I touched) have passed

๐Ÿงช How can this PR been tested?

The tests I added should indicate that things are working to some degree, at least for the API tests, but I did not add a test to check the contents of the resource being accessed. Please let me know if you need me to do that.

๐Ÿงพ Tasks Remaining: (List of tasks remaining to be implemented)

I don't have a MacBook and we don't have a ci up yet, so someone will please have to help make sure it works for iOS/mac.

I would just like feedback on this, please :)

JacquesSmuts avatar Nov 11 '22 11:11 JacquesSmuts