package Ġcom . example . mr ak op edi are ader . api Ċ Ċ import Ġandroid . content . Context Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . android . qual ifiers . ApplicationContext Ċ import Ġdagger . h ilt . components . Singleton Component Ċ import Ġjavax . inject . Singleton Ċ Ċ @ Install In ( Singleton Component :: class ) Ċ @ Module Ċ class ĠAPI Module Ġ{ ĊĠĠĠ Ġprivate Ġfun Ġget API And Memo ize ( application Context : ĠContext ): ĠAPI Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠAPI ( application Context ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide API (@ ApplicationContext Ġapplication Context : ĠContext ): ĠAPI Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġget API And Memo ize ( application Context ) ĊĠĠĠ Ġ} Ċ }