Skip to content

Added Moko Resources#50

Open
JacquesSmuts wants to merge 6 commits intoAndroidDev-social:mainfrom
JacquesSmuts:feature/moko-resources
Open

Added Moko Resources#50
JacquesSmuts wants to merge 6 commits intoAndroidDev-social:mainfrom
JacquesSmuts:feature/moko-resources

Conversation

@JacquesSmuts
Copy link
Copy Markdown

@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
Copy Markdown

@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
@blvckcoded
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

what is the status of this pr?

@Xen4n
Copy link
Copy Markdown

Xen4n commented Jan 24, 2025

Now it's more relevant to use native compose resources instead of Moko

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.

6 participants