package Ġcom . m ert ce y han . bitcoin market . features . market . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . SharedPreferences Ċ import Ġandroidx . room . Room Ċ import Ġcom . m ert ce y han . bitcoin market . features . market . data . local . Market 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 ĠLocal Data Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Market Database ( ĊĠĠĠĠĠĠĠ Ġ@ ApplicationContext Ġcontext : ĠContext ĊĠĠĠ Ġ): ĠMarket Database Ġ= ĊĠĠĠĠĠĠĠ ĠRoom . database Builder ( context , ĠMarket Database :: class . java , ĠMarket Database . DB _ NAME ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide SharedPreferences ( ĊĠĠĠĠĠĠĠ Ġ@ ApplicationContext Ġcontext : ĠContext ĊĠĠĠ Ġ): ĠSharedPreferences Ġ= Ġcontext . get SharedPreferences ( ĊĠĠĠĠĠĠĠ Ġ" Market Preferences ", ĠContext . MODE _ PRIVATE ĊĠĠĠ Ġ) Ċ }