package Ġcom . pre cop ia . data . build logic Ċ Ċ import Ġandroid . app . Application Ċ import Ġcom . pre cop ia . data . dao . Pre scription Dao Ċ import Ġcom . pre cop ia . data . database . Rx Tracker Database Ċ import Ġcom . pre cop ia . data . repository . IP re scription Positions Ċ import Ġcom . pre cop ia . data . repository . Pre scription Positions Ċ import Ġcom . pre cop ia . data . repository . Pre scription Repo Ċ import Ġcom . pre cop ia . domain . repository . IP re scription Repo Contract Ċ Ċ class ĠPre scription Repo Service Locator ( application : ĠApplication ) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġpre scription Repo : ĠI Pre scription Repo Contract Ġ= ĠPre scription Repo ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdao ( application ), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpre scription Positions ( application ) ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġprivate Ġfun Ġdao ( application : ĠApplication ): ĠPre scription Dao Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠRx Tracker Database . getInstance ( application ). pre scription Dao () ĊĊĠĠĠ Ġprivate Ġfun Ġpre scription Positions ( application : ĠApplication ): ĠI Pre scription Positions Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠPre scription Positions ( dao ( application )) ĊĊĊĠĠĠ Ġfun Ġpre scription Repo () Ġ= Ġpre scription Repo Ċ }