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

Added Moko Resources #50

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

JacquesSmuts
Copy link

@JacquesSmuts JacquesSmuts commented Nov 11, 2022

📑 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
  • 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 :)

- Added SharedResources.kt with some samples for how to use Moko
- Added SharedResourcesTest.kt
- Fixed MastodonApiTests.kt and made it use .json files as resources.
Copy link

@bitPogo bitPogo left a comment

Choose a reason for hiding this comment

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

This is blocked right now - see here

rafsanjani and others added 2 commits November 12, 2022 18:24
# Conflicts:
#	data/network/build.gradle.kts
#	data/network/src/desktopTest/kotlin/social/androiddev/common/network/MastodonApiTests.kt
#	ui/common/build.gradle.kts
@crocsandcoffee
Copy link
Member

@JacquesSmuts I apologize - I missed this PR. Can you please update and fix merge conflicts then request review from me? I can test this out locally as well as I have a Mac. Thanks!

@digitalbuddha
Copy link
Contributor

what is the status of this pr?

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

5 participants