package Ġcom . dav ion . jet pack . my gps . di Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroidx . room . Room Ċ import Ġcom . dav ion . jet pack . my gps . Location Tracking Repository Ċ import Ġcom . dav ion . jet pack . my gps . database . Location Tracking Dao Ċ import Ġcom . dav ion . jet pack . my gps . database . Location Tracking Database Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . components . Singleton Component Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Install In ( Singleton Component :: class ) Ċ @ Module Ċ class ĠDatabase Module Ġ{ ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Database ( application : ĠApplication ): ĠLocation Tracking Database Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRoom . database Builder ( application , ĠLocation Tracking Database :: class . java , Ġ" location _ tracking _ database ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Location Tracking Dao ( database : ĠLocation Tracking Database ): ĠLocation Tracking Dao Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġdatabase . location Tracking Dao ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Repository ( database : ĠLocation Tracking Dao ): ĠLocation Tracking Repository Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠLocation Tracking Repository ( database ) ĊĠĠĠ Ġ} Ċ }