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

issue/34-refactor-mediapickerviewmodel #48

Merged
merged 12 commits into from
Jul 27, 2021

Conversation

anitaa1990
Copy link
Contributor

This PR partially works on #34 by cleaning up the MediaPickerViewModel class.

Changes

  • Removes references to SiteModel, MediaModel and MediaStore from the class.
  • Added methods needed to MimeTypeSupportProvider.
  • Added a lot of helper classes such as LiveDataUtils, PermissionsHandler, ResourceProvider, Event and supported strings.

The idea is to first clean up the classes so that the library can build and then work on improving the code base, similar to @wzieba's work on creating modules in #47

Copy link
Contributor

@wzieba wzieba left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @anitaa1990!

Yeah, there's a lot of references to FluxC in view models. I hope that we'll refactor it to state where there will be no any mention of WordPress-specific API in the whole presentation layer of the library.

@wzieba wzieba merged commit bec507b into trunk Jul 27, 2021
@wzieba wzieba deleted the issue/34-refactor-mediapickerviewmodel branch July 27, 2021 08:37
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.

2 participants