package Ġcom . kal ai . zen od ora . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . room . Room Ċ import Ġcom . kal ai . zen od ora . data . Session Database Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . android . qual ifiers . ApplicationContext Ċ import Ġdagger . h ilt . components . Singleton Component Ċ import Ġjavax . inject . Singleton ĊĊ Ċ @ Module Ċ @ Install In ( Singleton Component :: class ) Ċ object ĠApp Module Ġ{ ĊĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Session Database (@ ApplicationContext Ġcontext : Context ) Ġ= ĊĠĠĠĠĠĠĠ ĠRoom ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. database Builder ( context , ĠSession Database :: class . java ," session _ database ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Session Dao ( database : ĠSession Database ) Ġ= Ġdatabase . session Dao () ĊĊ Ċ }