package Ġru . use desk . common _ sdk . di Ċ Ċ import Ġandroid . content . Content Resolver Ċ import Ġandroid . content . Context Ċ import Ġcom . google . gson . Gson Ċ import Ġcom . google . gson . Gson Builder Ċ import Ġio . reactivex . Scheduler Ċ import Ġio . reactivex . schedul ers . Schedulers Ċ import Ġru . use desk . common _ sdk . api . Api Factory Ċ import Ġru . use desk . common _ sdk . api . I Use desk Api Factory Ċ import Ġru . use desk . common _ sdk . api . Use desk Ok HttpClient Factory Ċ import Ġtoo th pick . config . Module Ċ Ċ class ĠUse desk Common Module ( ĊĠĠĠ Ġapp Context : ĠContext Ċ ) Ġ: ĠModule () Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġbind ( Context :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. to Instance ( app Context ) ĊĊĠĠĠĠĠĠĠ Ġbind ( Content Resolver :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. to Instance ( app Context . content Resolver ) ĊĊĠĠĠĠĠĠĠ Ġbind ( Scheduler :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// . to Instance ( Schedulers . from ( Executors . new Fixed ThreadPool ( 6 4 ))) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. to Instance ( Schedulers . io ()) ĊĊĠĠĠĠĠĠĠ Ġbind ( Gson :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. to Instance ( Gson Builder (). create ()) ĊĊĠĠĠĠĠĠĠ Ġbind ( Use desk Ok HttpClient Factory :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. to Instance ( Use desk Ok HttpClient Factory ( app Context )) ĊĊĠĠĠĠĠĠĠ Ġbind ( I Use desk Api Factory :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. to ( Api Factory :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. singleton () ĊĠĠĠ Ġ} Ċ }