package Ġcom . anion code . smo gu . di Ċ Ċ import Ġandroid . app . Application Ċ import Ġcom . anion code . smo gu . adapter . Sensor Adapter Ċ import Ġcom . anion code . smo gu . adapter . Sensor Chart Adapter Ċ import Ġcom . anion code . smo gu . events . Nav Event Ċ import Ġcom . anion code . smo gu . model . Model Sensor Id . Sensor by ID Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . android . components . Application Component Ċ import Ġio . reactivex . rx java 3 . processors . Publish Processor Ċ import Ġjavax . inject . Singleton ĊĊ Ċ @ Module Ċ @ Install In ( Application Component :: class ) Ċ object ĠAdapter Module Ġ{ ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Sensor Adapter ( application : ĠApplication , Ġsensor Event Ġ: ĠPublish Processor < Sensor by ID > Ġ): ĠSensor Adapter Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠSensor Adapter ( application . application Context , Ġobject Ġ: ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSensor Adapter . On ItemClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġoverride Ġfun Ġon Item Click ( model : ĠSensor by ID ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġsensor Event . onNext ( model ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ}) ĊĠĠĠ Ġ} ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Sensor Chart Adapter ( application : ĠApplication ): ĠSensor Chart Adapter Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠSensor Chart Adapter ( application . application Context ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovides Sensor Event (): ĠPublish Processor < Sensor by ID > Ġ= ĠPublish Processor . create () Ċ }