We have set allowMainThreadQueries() when creating the AppDatabase instance, which is not a good practice in Room.
This ticket is to:
- Remove allowMainThreadQueries from the AppDatabase.
- Update DAO functions with a proper suspend, which means we will need to wrap the functions with either another suspend function or a coroutine block.
Note for QA
This ticket does not change any database-related behaviors in the app, and since it is mostly related to the reading list behaviors, please make sure to run tests through reading list functions such as add, rename, move and delete reading lists/articles .