package Ġio . github . del r 3 ves . dot to . di Ċ Ċ import Ġandroid . app . Application Ċ import Ġandroid . content . Context Ċ import Ġandroid . hardware . camera 2 . Camera Manager Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġjavax . inject . Singleton ĊĊ Ċ @ Module Ċ class ĠApplication Module ( application : ĠApplication ) Ġ{ ĊĊĠĠĠ Ġval Ġapplication Ġ= Ġapplication ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Context (): ĠContext Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġapplication ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide Camera Manager (): ĠCamera Manager Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġapplication . getSystem Service ( Context . CAMERA _ SERVICE ) Ġas ĠCamera Manager ĊĠĠĠ Ġ} Ċ Ċ }