bitfireAT/icsx5

Switch to compose state and kotlin flows - 3. iteration

Closed this issue · 1 comments

The 1. Iteration took care of the Database Access Objects. It deprecated LiveData returning methods and added their respective Flow returning variants.

The 2. iteration took care of models and activities, by replacing all LiveData usages in both models and activities, excluding any 1. iteration DAO changes, since the PR would have grown too big otherwise.

This is the 3. iteration and will take care of using the new Flow returning methods in DAOs and remove the last remaining LiveData usages.

  • replace deprecated methods by their counterparts
  • adapt usages accordingly
  • remove deprecated methods

Note: The 2. iteration added the dependency for the collectAsStateWithLifecycle() method, which should be used accordingly, if applicable.

Depends on #278

This PR/issue depends on: