package Ġcom . tf and k usu . template . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġcom . tf and k usu . template . data . local . pref . My Preference Builder Ċ import Ġcom . tf and k usu . template . data . local . pref . My Preference Manager Ċ import Ġcom . tf and k usu . template . data . local . pref . My Preference ManagerImpl Ċ 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 ĠPreference Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Preferences ( ĊĠĠĠĠĠĠĠ Ġ@ ApplicationContext Ġcontext : ĠContext ĊĠĠĠ Ġ): ĠMy Preference Manager Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠMy Preference ManagerImpl ( My Preference Builder . build ( context )) ĊĠĠĠ Ġ} Ċ } Ċ