package Ġcom . this a ay . yout uber . di . module ĊĊ Ċ import Ġandroidx . lifecycle . ViewModel Providers Ċ import Ġcom . this a ay . yout uber . data . remote . Network Service Ċ import Ġcom . this a ay . yout uber . ui . MainActivity Ċ import Ġcom . this a ay . yout uber . ui . Main ViewModel Ċ import Ġcom . this a ay . yout uber . utils . ViewModel Provider Factory Ċ import Ġcom . this a ay . yout uber . utils . common . Resource Ċ import Ġcom . this a ay . yout uber . utils . log . Logger Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġio . reactivex . dis pos ables . Composite Disposable Ċ Ċ @ Module Ċ class ĠActivity Module ( private Ġval Ġactivity : ĠMainActivity ) Ġ{ ĊĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Main ViewModel ( composite Disposable : ĠComposite Disposable , Ġnetwork Service : ĠNetwork Service ): ĠMain ViewModel Ġ= ĊĠĠĠĠĠĠĠ ĠViewModel Providers . of ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġactivity , ĠViewModel Provider Factory ( Main ViewModel :: class ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠMain ViewModel ( composite Disposable , Ġnetwork Service ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ}). get ( Main ViewModel :: class . java ) ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Res () Ġ: ĠResource < String > Ġ{ ĊĊĠĠĠĠĠĠĠ Ġreturn ĠResource . success (" AA Y ") ĊĠĠĠ Ġ} Ċ } Ċ