package Ġcom . dark labs . data . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġcom . dark labs . data . local . Database Helper Ċ 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 Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠRo op ar sh ĠK alia Ġon Ġ 1 2 / 0 2 / 2 2 Ċ Ġ*/ Ċ @ Module Ċ @ Install In ( Singleton Component :: class ) Ċ internal Ġobject ĠLocal Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Database (@ ApplicationContext Ġcontext : ĠContext ) Ġ= ĊĠĠĠĠĠĠĠ ĠDatabase Helper . provide Database ( context ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Run Dao ( db : ĠDatabase Helper . Running Database ) Ġ= Ġdb . get Run Dao () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Location Dao ( db : ĠDatabase Helper . Running Database ) Ġ= Ġdb . getLocation Dao () Ċ Ċ }