package Ġcom . ash ish . imgur search demo . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . android . components . Application Component Ċ import Ġdagger . h ilt . android . qual ifiers . ApplicationContext Ċ import Ġjava . io . File Ċ import Ġjavax . inject . Singleton Ċ Ċ /** Ċ Ġ* ĠAdd Ġanything Ġwe Ġneed Ġto Ġget Ġfrom ĠAndroid Ġframework Ġhere . Ċ Ġ*/ Ċ @ Module Ċ @ Install In ( Application Component :: class ) Ċ object ĠApplication Context Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġfun Ġprovide Cache File (@ ApplicationContext Ġcontext : ĠContext ): ĠFile Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠFile ( context . cacheDir , Ġ" okhttp _ cache ") ĊĠĠĠ Ġ} Ċ }