woocommerce-android
woocommerce-android copied to clipboard
Migrate `ThemeModel` to `Room`
Related: #15011
Closes: AINFRA-548: Migrate ThemeModel
Description
This PR migrates ThemeModel from WellSql to Room. As always, these PRs focus on migrations, but in this specific case I also decided to migrate a few classes from Java to Kotlin, to be able to run suspend methods.
Test Steps
Smoke test theme functionality:
- Open the app and navigate to Settings → Site Settings → Themes
- Verify the current theme is displayed correctly
- Browse available themes and verify they load with names and preview images
- Select a different theme and activate it
- Verify the theme activation succeeds and the new theme is shown as active
Images/gif
Before (trunk)
After
- [ ] I have considered if this change warrants release notes and have added them to
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.