package Ġcom . m hack s . android . d agger . component Ċ Ċ import Ġandroid . app . Activity Ċ import Ġandroid . app . Application Ċ import Ġcom . m hack s . android . d agger . module . App Module Ċ import Ġcom . m hack s . android . d agger . module . Auth Interceptor Ċ import Ġcom . m hack s . android . d agger . module . Auth Module Ċ import Ġcom . m hack s . android . d agger . module . Ret rofit Module Ċ import Ġdagger . Component Ċ import Ġokhttp 3 . Ok HttpClient Ċ import Ġretrofit 2 . Ret rofit Ċ import Ġjavax . inject . Singleton Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġj eff rey ch ang Ġon Ġ 9 / 2 / 1 7 . Ċ Ġ*/ Ċ Ċ @ Singleton Ċ @ Component ( modules Ġ= ĠarrayOf ( App Module :: class , ĠAuth Module :: class , ĠRet rofit Module :: class )) Ċ interface ĠNet Component Ġ{ ĊĊĠĠĠ Ġval Ġapp : ĠApplication ĊĠĠĠ Ġval Ġretrofit : ĠRet rofit ĊĠĠĠ Ġval Ġauth Interceptor : ĠAuth Interceptor ĊĊĠĠĠ Ġfun Ġok HttpClient (): ĠOk HttpClient ĊĊĠĠĠ Ġfun Ġinject ( activity : ĠActivity ) Ċ Ċ }