package Ġio . zero 8 8 . gradle . q we . app Ċ Ċ import Ġorg . gradle . api . file . Directory Ċ import Ġorg . gradle . api . file . Project Layout Ċ import Ġorg . gradle . api . model . ObjectFactory Ċ import Ġorg . gradle . api . provider . Provider Ċ import Ġorg . gradle . kotlin . dsl . map Property Ċ Ċ @ Suppress (" Un stable Api Usage ") Ċ open Ġclass ĠGenerated Layout Extension ( objects : ĠObject Factory , Ġlayout : ĠProject Layout ) Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġconst Ġval ĠCONF Ġ= Ġ" conf " ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠSERVICE Ġ= Ġ" service " ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠJAVA Ġ= Ġ" java " ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠK OT LIN Ġ= Ġ" kotlin " ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠRES O URCES Ġ= Ġ" resources " ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠTEST _ JAVA Ġ= Ġ" test Java " ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠTEST _ K OT LIN Ġ= Ġ" test Kotlin " ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠTEST _ RESOURCES Ġ= Ġ" test Resources " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval Ġgenerated Dir Ġ= Ġobjects . directory Property (). convention ( layout . build Directory . dir (" generated ")) ĊĠĠĠ Ġprivate Ġval Ġgenerated Src Dir Ġ= Ġobjects . directory Property (). convention ( generated Dir . dir (" main ")) ĊĠĠĠ Ġprivate Ġval Ġgenerated Test Dir Ġ= Ġobjects . directory Property (). convention ( generated Dir . dir (" test ")) ĊĠĠĠ Ġprivate Ġval Ġdefault Layout Ġ= Ġmap Of ( ĊĠĠĠĠĠĠĠ ĠCONF Ġto ĠLayout ( Layout Mode . AR TI FACT , Ġgenerated Dir . dir ( CONF )), ĊĠĠĠĠĠĠĠ ĠSERVICE Ġto ĠLayout ( Layout Mode . AR TI FACT , Ġgenerated Dir . dir ( SERVICE )), ĊĠĠĠĠĠĠĠ ĠJAVA Ġto ĠLayout ( Layout Mode . SOURCE , Ġgenerated Src Dir . dir ( JAVA )), ĊĠĠĠĠĠĠĠ ĠK OT LIN Ġto ĠLayout ( Layout Mode . SOURCE , Ġgenerated Src Dir . dir ( K OT LIN )), ĊĠĠĠĠĠĠĠ ĠRES O URCES Ġto ĠLayout ( Layout Mode . RESOURCES , Ġgenerated Src Dir . dir ( RESOURCES )), ĊĠĠĠĠĠĠĠ ĠTEST _ JAVA Ġto ĠLayout ( Layout Mode . TEST _ SOURCE , Ġgenerated Test Dir . dir ( JAVA )), ĊĠĠĠĠĠĠĠ ĠTEST _ K OT LIN Ġto ĠLayout ( Layout Mode . TEST _ SOURCE , Ġgenerated Test Dir . dir ( K OT LIN )), ĊĠĠĠĠĠĠĠ ĠTEST _ RESOURCES Ġto ĠLayout ( Layout Mode . TEST _ RESOURCES , Ġgenerated Test Dir . dir ( RESOURCES )) ĊĠĠĠ Ġ) ĊĠĠĠ Ġval Ġgenerated Layout Ġ= Ġobjects . map Property < String , ĠLayout >(). convention ( default Layout ) ĊĊĠĠĠ Ġfun Ġfind ( key : ĠString ): ĠLayout ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġgenerated Layout . get ()[ key ] Ġ?: Ġdefault Layout [ key ] ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġenum Ġclass ĠLayout Mode Ġ{ ĊĠĠĠĠĠĠĠ ĠSOURCE , ĠRES O URCES , ĠAR TI FACT , ĠTEST _ SOURCE , ĠTEST _ RESOURCES , ĠTMP ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġclass ĠLayout ( val Ġmode : ĠLayout Mode , Ġval Ġdirectory : ĠProvider < Directory >) Ċ } Ċ