package Ġcom . guru . compose cookbook . movies app . data Ċ Ċ import Ġandroid . content . Context Ċ import Ġcom . guru . compose cookbook . movies app . data . api . Movie Api Ċ import Ġcom . guru . compose cookbook . movies app . data . db . Movies Database Ċ import Ġcom . guru . compose cookbook . movies app . data . repositories . Movie Repository Ċ import Ġcom . guru . compose cookbook . movies app . data . repositories . Movie Repository Impl Ċ import Ġcom . guru . compose cookbook . movies app . data . repositories . Movies Lane Repository Impl Ċ import Ġcom . guru . compose cookbook . movies app . data . repositories . Movies Lan es Repository Ċ Ċ object ĠMovie DIG raph Ġ{ ĊĠĠĠ Ġ// Ġcreate Ġretrofit ĊĠĠĠ Ġprivate Ġval Ġmovie Api Ġ= ĠMovie Api . invoke () ĊĊĠĠĠ Ġfun Ġcreate Movie Repository ( context : ĠContext ): ĠMovie Repository Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdb Ġ= ĠMov ies Database . getInstance ( context ) ĊĠĠĠĠĠĠĠ Ġreturn ĠMovie Repository Impl ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmovie Api Ġ= Ġmovie Api , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmovies Dao Ġ= Ġdb . movies Dao (), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġgenre Dao Ġ= Ġdb . genre Dao () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcreate Movies Lane Repository ( context : ĠContext ): ĠMov ies Lan es Repository Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdb Ġ= ĠMov ies Database . getInstance ( context ) ĊĠĠĠĠĠĠĠ Ġreturn ĠMov ies Lane Repository Impl ( movie Api Ġ= Ġmovie Api ) ĊĠĠĠ Ġ} Ċ }