package Ġio . github . hur shi . sample _ architecture _ components . modules Ċ Ċ import Ġandroidx . lifecycle . ViewModel Provider Ċ import Ġdagger . Bind s Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġio . github . hur shi . sample _ architecture _ components . entity . Dao Session Sim ulate Ċ import Ġio . github . hur shi . sample _ architecture _ components . scopes . App Scope Ċ import Ġio . github . hur shi . sample _ architecture _ components . vm _ factory . VM Factory Ċ Ċ @ Module ( includes Ġ= Ġ[ App Module . Abstract App Module :: class ]) Ċ class ĠApp Module Ġ{ ĊĠĠĠ Ġ@ App Scope ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġinternal Ġfun Ġprovider Dao (): ĠDao Session Sim ulate Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠDao Session Sim ulate (" Hello , ĠI Ġam Ġa ĠDB ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Module ĊĠĠĠ Ġabstract Ġclass ĠAbstract App Module Ġ{ ĊĠĠĠĠĠĠĠ Ġ@ App Scope ĊĠĠĠĠĠĠĠ Ġ@ Bind s ĊĠĠĠĠĠĠĠ Ġabstract Ġfun Ġbind Factory ( factory : ĠVM Factory ): ĠViewModel Provider . Factory ĊĠĠĠ Ġ} Ċ }