package Ġcom . se b ast ians oko low ski . health guard . di Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroid . content . Content Resolver Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . SharedPreferences Ċ import Ġandroid . preference . Preference Manager Ċ import Ġcom . se b ast ians oko low ski . health guard . client . W ear able Client Ċ import Ġcom . se b ast ians oko low ski . health guard . db . entity . My Object Box Ċ import Ġcom . se b ast ians oko low ski . health guard . model .* Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġio . object box . Box Store Ċ import Ġjavax . inject . Singleton Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠSeb astian ĠS oko ÅĤ owski Ġon Ġ 0 8 . 0 7 . 1 8 . Ċ Ġ*/ Ċ @ Module ( includes Ġ= Ġ[ ViewModel Module :: class ]) Ċ class ĠApp Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Context ( app : ĠApplication ): ĠContext Ġ= Ġapp ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Shared Preference ( app : ĠApplication ): ĠSharedPreferences Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠPreference Manager . getDefault SharedPreferences ( app ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Content Resolver ( context : ĠContext ): ĠContent Resolver Ġ= Ġcontext . content Resolver ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide W ear able Client ( context : ĠContext ): ĠW ear able Client Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠW ear able Client ( context ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Box Store ( context : ĠContext ): ĠBox Store Ġ= ĠMy Object Box . builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. android Context ( context ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Settings Model ( app : ĠApplication ): ĠSettings Model Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġshared Preferences Ġ= ĠPreference Manager . getDefault SharedPreferences ( app ) ĊĠĠĠĠĠĠĠ Ġreturn ĠSettings Model ( shared Preferences ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Location Model ( context : ĠContext ): ĠLocation Model Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠLocation Model ( context ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Notification Model ( context : ĠContext , Ġsettings Model : ĠSettings Model , Ġlocation Model : ĠLocation Model ): ĠNotification Model Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠNotification Model ( context , Ġsettings Model , Ġlocation Model ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Sensor DataModel ( context : ĠContext , Ġnotification Model : ĠNotification Model , Ġbox Store : ĠBox Store ): ĠSensor DataModel Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSensor DataModel ( context , Ġnotification Model , Ġbox Store ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Measurement Model ( context : ĠContext , Ġwe arable Client : ĠW ear able Client , Ġbox Store : ĠBox Store , Ġsettings Model : ĠSettings Model , Ġsensor DataModel : ĠSensor DataModel ): ĠMeasurement Model Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMeasurement Model ( context , Ġwe arable Client , Ġbox Store , Ġsettings Model , Ġsensor DataModel ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Setup Model ( we arable Client : ĠW ear able Client , Ġmeasurement Model : ĠMeasurement Model , Ġsettings Model : ĠSettings Model ): ĠSetup Model Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSetup Model ( we arable Client , Ġmeasurement Model , Ġsettings Model ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Share DataModel ( context : ĠContext , Ġbox Store : ĠBox Store ): ĠShare DataModel Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠShare DataModel ( context , Ġbox Store ) Ċ Ċ }