package Ġcom . ak sh ay . random quotes . di . modules Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . room . Room Ċ import Ġcom . ak sh ay . random quotes . database . Quote Dao Ċ import Ġcom . ak sh ay . random quotes . database . Quotes Database Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module Ċ class ĠRoom Module Ġ{ ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Quotes Database ( application : ĠApplication ): ĠQu otes Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRoom . database Builder ( application , ĠQu otes Database :: class . java , Ġ" quotes - db "). build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovides Quotes Dao ( quotes Database : ĠQu otes Database ) Ġ: ĠQuote Dao Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġquotes Database . get Quote Dao () ĊĠĠĠ Ġ} Ċ }