package Ġcom . ade sso . move e . internal . injection . module Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . SharedPreferences Ċ import Ġandroidx . preference . Preference Manager Ċ import Ġcom . ade sso . move e . internal . injection . D agger Application Ċ import Ġcom . ade sso . move e . internal . util . Resource Provider Ċ import Ġcom . ade sso . move e . internal . util . Resource Provider Impl Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Module ( includes Ġ= Ġ[ M oshi Module :: class ]) Ċ internal Ġclass ĠApp Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġinternal Ġfun Ġprovide ApplicationContext ( application : ĠD agger Application ): ĠContext Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġapplication . application Context ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġinternal Ġfun Ġprovide Application ( application : ĠD agger Application ): ĠApplication Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġapplication ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide SharedPreferences ( application : ĠApplication ): ĠSharedPreferences Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠPreference Manager . getDefault SharedPreferences ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġapplication . application Context ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Resource Provider ( application : ĠApplication ): ĠResource Provider Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠResource Provider Impl ( application . application Context ) ĊĠĠĠ Ġ} Ċ } Ċ