woocommerce-android icon indicating copy to clipboard operation
woocommerce-android copied to clipboard

Migrate `ThemeModel` to `Room`

Open wzieba opened this issue 2 weeks ago • 4 comments

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:

  1. Open the app and navigate to SettingsSite SettingsThemes
  2. Verify the current theme is displayed correctly
  3. Browse available themes and verify they load with names and preview images
  4. Select a different theme and activate it
  5. Verify the theme activation succeeds and the new theme is shown as active

Images/gif

Before (trunk)

Screenshot 2025-12-05 at 14 04 47

After

Screenshot 2025-12-05 at 13 24 28
  • [ ] I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

wzieba avatar Dec 01 '25 15:12 wzieba