import Ġorg . gradle . api . artifacts . Dependency Ċ import Ġorg . gradle . api . artifacts . dsl . Dependency Handler Ċ Ċ fun ĠDependency Handler . add Common Library Dependencies () Ġ{ ĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠKotlin ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġimplementation ( Libraries . kotlin Std Lib ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġandroidx ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġimplementation ( Libraries . android x Core ) ĊĠĠĠ Ġimplementation ( Libraries . android x AppCompat ) ĊĠĠĠ Ġimplementation ( Libraries . android x Constraint Layout ) ĊĠĠĠ Ġimplementation ( Libraries . android X Navigation Ui ) ĊĠĠĠ Ġimplementation ( Libraries . android X Navigation Fragment ) ĊĠĠĠ Ġimplementation ( Libraries . android X Navigation Dynamic Features ) ĊĠĠĠ Ġimplementation ( Libraries . android x Lifecycle ViewModel ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġnetworking ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġimplementation ( Libraries . ret rofit ) ĊĠĠĠ Ġimplementation ( Libraries . ret rofit Gson Converter ) ĊĠĠĠ Ġimplementation ( Libraries . logging Interceptor ) ĊĠĠĠ Ġimplementation ( Libraries . gson ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġutilities ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġimplementation ( Libraries . tim ber ) ĊĠĠĠ Ġimplementation ( Libraries . co il ) ĊĠĠĠ Ġimplementation ( Libraries . play Core ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* Ġdesign ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġimplementation ( Libraries . material ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠDependency Ġinjection ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġimplementation ( Libraries . h ilt ) ĊĠĠĠ Ġimplementation ( Libraries . h ilt ViewModel ) ĊĠĠĠ Ġk apt ( Libraries . h ilt Compiler ) ĊĠĠĠ Ġk apt ( Libraries . d agger H ilt Compiler ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠDatabase ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġimplementation ( Libraries . room ) ĊĠĠĠ Ġimplementation ( Libraries . room K tx ) ĊĠĠĠ Ġk apt ( Libraries . room Compiler ) Ċ Ċ } Ċ Ċ fun ĠDependency Handler . add Common Test Dependencies () Ġ{ ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠJ unit ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġtest Implementation ( Test Dependencies . junit ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠMock ing ĊĠĠĠĠ Ġ**/ ĊĠĠĠ Ġtest Implementation ( Test Dependencies . mock k ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠAndroid ĠX ĊĠĠĠĠ Ġ**/ ĊĠĠĠ Ġtest Implementation ( Test Dependencies . test Runner ) ĊĠĠĠ Ġtest Implementation ( Test Dependencies . arch Core Test ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . fragment Testing ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . test Core ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . test Rules ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . extension J unit ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . extension Truth ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . espress o Core ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . espress o Cont rib ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . espress o Id ling Concurrent ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . espress o Id ling Resource ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠCor outines ĊĠĠĠĠ Ġ**/ ĊĠĠĠ Ġtest Implementation ( Test Dependencies . coroutines Test ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . coroutines Test ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠDI ĊĠĠĠĠ Ġ**/ ĊĠĠĠ Ġtest Implementation ( Test Dependencies . h ilt Testing ) ĊĠĠĠ Ġk apt Test ( Test Dependencies . h ilt Android Compiler ) ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠDatabase ĊĠĠĠĠ Ġ**/ ĊĠĠĠ Ġtest Implementation ( Test Dependencies . room Testing ) ĊĠĠĠ Ġandroid Test Implementation ( Test Dependencies . room Testing ) Ċ } Ċ Ċ private Ġfun ĠDependency Handler . implementation ( dependency Not ation : ĠAny ): ĠDependency ? Ġ= ĊĠĠĠ Ġadd (" implementation ", Ġdependency Not ation ) Ċ Ċ private Ġfun ĠDependency Handler . k apt ( dependency Not ation : ĠAny ): ĠDependency ? Ġ= ĊĠĠĠ Ġadd (" k apt ", Ġdependency Not ation ) Ċ Ċ private Ġfun ĠDependency Handler . test Implementation ( dependency Not ation : ĠAny ): ĠDependency ? Ġ= ĊĠĠĠ Ġadd (" test Implementation ", Ġdependency Not ation ) Ċ Ċ private Ġfun ĠDependency Handler . android Test Implementation ( dependency Not ation : ĠAny ): ĠDependency ? Ġ= ĊĠĠĠ Ġadd (" android Test Implementation ", Ġdependency Not ation ) Ċ Ċ private Ġfun ĠDependency Handler . k apt Test ( dependency Not ation : ĠAny ): ĠDependency ? Ġ= ĊĠĠĠ Ġadd (" k apt Test ", Ġdependency Not ation ) Ċ