Skip to content

Repository files navigation

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

About

how to create Room DAOs specifically for your Android debug build. These debug-only DAOs enable you to implement developer-centric features without affecting your production app.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages