package Ġcom . lo z an ov . vir id um . di Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . net . Connectivity Manager Ċ import Ġcom . lo z an ov . vir id um . V ir id um H ilt Application Ċ import Ġcom . lo z an ov . vir id um . api . V ir id um API Ċ 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 Ċ Ċ @ Module Ċ @ Install In ( Singleton Component :: class ) Ċ object ĠNetwork Module Ġ{ ĊĠĠĠ Ġ@ Singleton ĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġfun Ġprovide API ( ĊĠĠĠĠĠĠĠ Ġ@ ApplicationContext Ġapplication : ĠContext ĊĠĠĠ Ġ): ĠV ir id um API Ġ= ĠV ir id um API ( application . getSystem Service ( ĊĠĠĠĠĠĠĠ ĠContext . CONNECT IVITY _ SERVICE ) Ġas ĠConnect ivity Manager ) Ċ }