package Ġcom . vod ol az sk iy . forecast application . core . di . modules . view model Ċ Ċ import Ġandroidx . fragment . app . Fragment Activity Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġandroidx . lifecycle . ViewModel Providers Ċ import Ġdagger . Bind s Ċ import Ġdagger . Module Ċ Ċ @ Module Ċ interface ĠViewModel Factory Module Ġ{ ĊĊĠĠĠ Ġ@ Bind s ĊĠĠĠ Ġfun Ġbind ViewModel Factory ( factory : ĠViewModel Factory ): ĠViewModel Provider . Factory Ċ } Ċ Ċ inline Ġfun Ġ< re ified ĠT Ġ: ĠViewModel > ĠFragment Activity . inject ViewModel ( factory : ĠViewModel Provider . Factory ): ĠT Ġ{ ĊĠĠĠ Ġreturn ĠViewModel Providers . of ( this , Ġfactory )[ T :: class . java ] Ċ } Ċ