Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 851 Bytes

File metadata and controls

28 lines (18 loc) · 851 Bytes

Example of creating Debug DAO's

A debug DAO is a room DAO that is only available in the debug sourceset.

https://blog.blundellapps.co.uk/room-debug-daos-in-android-streamlining-your-workflow/

This allows you to separate database actions that are used for debugging & developer tools from database actions that are required for user facing features.

Taking influence from the official example code:

And then augmenting with:

app/src/debug/java/com/blundell/tut/daoshop/DaoExtensions.kt
app/src/debug/java/com/blundell/tut/daoshop/DebugItemDao.kt

&

app/src/release/java/com/blundell/tut/daoshop/DaoExtensions.kt