package Ġcom . ct ech . eat y . ui . profile . di Ċ Ċ import Ġandroid . support . v 7 . widget . Toolbar Ċ import Ġcom . ct ech . eat y . base . redux . Store Ċ import Ġcom . ct ech . eat y . di . Activity Scope Ċ import Ġcom . ct ech . eat y . repository . AppSettings Manager Ċ import Ġcom . ct ech . eat y . repository . UserRepository Ċ import Ġcom . ct ech . eat y . ui . profile . epic . Submit Epic Ċ import Ġcom . ct ech . eat y . ui . profile . reducer . Profile Reducer Ċ import Ġcom . ct ech . eat y . ui . profile . state . Profile State Ċ import Ġcom . ct ech . eat y . ui . profile . view . Profile Activity Ċ import Ġcom . ct ech . eat y . ui . profile . view model . Profile ViewModel Ċ import Ġcom . ct ech . eat y . util . rx . Thread Scheduler Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġio . reactivex . android . schedul ers . Android Schedulers Ċ import Ġkotlinx . android . synt hetic . main . activity _ profile .* ĊĊ Ċ @ Module Ċ class ĠProfile Module Ġ{ ĊĊĊĠĠĠ Ġ@ Activity Scope ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Toolbar ( activity : ĠProfile Activity ): ĠToolbar Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġactivity . toolbar ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Activity Scope ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Profile Store ( user Repository : ĠUser Repository , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġapp Settings Manager : ĠApp Settings Manager , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġthread Scheduler : ĠThread Scheduler ): ĠStore < Profile State > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠStore < Profile State >( Profile State (), ĠProfile Reducer (), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf ( Submit Epic ( user Repository , Ġapp Settings Manager , Ġthread Scheduler ))) ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Profile ViewModel ( store : ĠStore < Profile State >): ĠProfile ViewModel Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġstate Ġ= Ġstore . state ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. observe On ( Android Schedulers . main Thread ()) ĊĠĠĠĠĠĠĠ Ġreturn ĠProfile ViewModel ( state ) ĊĠĠĠ Ġ} Ċ Ċ }