package Ġcom . max im erous sy . f iz zh ub . database Ċ Ċ import Ġandroid . content . Context Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjavax . inject . Singleton Ċ import Ġandroid . arch . persistence . room . Room Ċ Ċ @ Module Ċ class ĠDatabase Module Ġ{ ĊĠ Ġ@ Singleton ĊĠ Ġ@ Provides ĊĠ Ġfun Ġgithub Repository Database ( context : ĠContext ): ĠGithub Repository Database Ġ{ ĊĠĠĠ Ġreturn ĠRoom . database Builder ( context , ĠGithub Repository Database :: class . java , Ġ" f iz zh ub - db "). build () ĊĠ Ġ} ĊĊĠ Ġ@ Singleton ĊĠ Ġ@ Provides ĊĠ Ġfun Ġgithub Repository Dao ( github Repository Database : ĠGithub Repository Database ): ĠGithub Repository Dao Ġ{ ĊĠĠĠ Ġreturn Ġgithub Repository Database . github Repository Dao () ĊĠ Ġ} Ċ } Ċ