import Ġcom . google . common . base . Charsets Ċ import Ġjava . io . FileInputStream Ċ import Ġjava . io . InputStream Reader Ċ import Ġjava . util .* Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġid (" com . android . application ") ĊĠĠĠ Ġid (" d agger . h ilt . android . plugin ") ĊĠĠĠ Ġkotlin (" android ") ĊĠĠĠ Ġkotlin (" k apt ") ĊĠĠĠ Ġkotlin (" plugin . serialization ") Ġversion Ġ" 1 . 5 . 0 " Ċ } Ċ Ċ android Ġ{ ĊĠĠĠ Ġsigning Configs Ġ{ ĊĠĠĠĠĠĠĠ Ġcreate (" release ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġkey Alias Ġ= Ġ" release " ĊĠĠĠĠĠĠĠĠĠĠĠ Ġkey Password Ġ= Ġget App Property (" KEY STORE _ KEY _ PASSWORD ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġstore File Ġ= Ġfile ("../ keystore . j ks ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġstore Password Ġ= Ġget App Property (" KEY STORE _ STORE _ PASSWORD ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġcompile Sdk Ġ= Ġ 3 0 ĊĠĠĠ Ġbuild Tools Version Ġ= Ġ" 3 0 . 0 . 3 " ĊĊĠĠĠ Ġdefault Config Ġ{ ĊĠĠĠĠĠĠĠ Ġapplication Id Ġ= Ġ" com . al var om r . mar vel " ĊĠĠĠĠĠĠĠ Ġmin Sdk Ġ= Ġ 2 1 ĊĠĠĠĠĠĠĠ Ġtarget Sdk Ġ= Ġ 3 0 ĊĠĠĠĠĠĠĠ Ġversion Code Ġ= Ġ 1 ĊĠĠĠĠĠĠĠ Ġversion Name Ġ= Ġ" 1 . 0 " ĊĊĠĠĠĠĠĠĠ Ġtest Instrumentation Runner Ġ= Ġ" android x . test . runner . Android JUnit Runner " ĊĠĠĠĠĠĠĠ Ġvector Draw ables Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġuse Support Library Ġ= Ġtrue ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġbuild Config Field (" String ", Ġ" API _ KEY ", Ġget App Property (" API _ KEY ")) ĊĠĠĠĠĠĠĠ Ġbuild Config Field (" String ", Ġ" BASE _ URL ", Ġ"\" https :// gateway . mar vel . com : 4 4 3 / v 1 / public / \" ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġbuild Types Ġ{ ĊĠĠĠĠĠĠĠ Ġrelease Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġis Min ify Enabled Ġ= Ġfalse ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpro guard Files ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠgetDefault Pro guard File (" pro guard - android - optimize . txt "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" pro guard - rules . pro " ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsigning Config Ġ= Ġsigning Configs . get ByName (" release ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġcompile Options Ġ{ ĊĠĠĠĠĠĠĠ Ġsource Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 ĊĠĠĠĠĠĠĠ Ġtarget Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 ĊĠĠĠ Ġ} ĊĠĠĠ Ġkotlin Options Ġ{ ĊĠĠĠĠĠĠĠ Ġj vm Target Ġ= Ġ" 1 . 8 " ĊĠĠĠ Ġ} ĊĠĠĠ Ġbuild Features Ġ{ ĊĠĠĠĠĠĠĠ Ġcompose Ġ= Ġtrue ĊĠĠĠ Ġ} ĊĠĠĠ Ġcompose Options Ġ{ ĊĠĠĠĠĠĠĠ Ġkotlin Compiler Extension Version Ġ= Ġroot Project . extra [" compose Version "] Ġas ĠString ĊĠĠĠ Ġ} Ċ } Ċ Ċ dependencies Ġ{ ĊĊĠĠĠ Ġimplementation (" android x . core : core - k tx : 1 . 5 . 0 ") ĊĠĠĠ Ġimplementation (" android x . appcompat : appcompat : 1 . 3 . 0 ") ĊĠĠĠ Ġimplementation (" com . google . android . material : material : 1 . 3 . 0 ") ĊĊĠĠĠ Ġimplementation (" com . google . d agger : h ilt - android :${ root Project . extra [" h ilt Core Version "] }") ĊĠĠĠ Ġk apt (" com . google . d agger : h ilt - compiler :${ root Project . extra [" h ilt Core Version "] }") ĊĠĠĠ Ġk apt (" android x . h ilt : h ilt - compiler :${ root Project . extra [" h ilt Version "] }") ĊĠĠĠ Ġandroid Test Implementation (" com . google . d agger : h ilt - android - testing :${ root Project . extra [" h ilt Core Version "] }") ĊĠĠĠ Ġk apt Android Test (" com . google . d agger : h ilt - compiler :${ root Project . extra [" h ilt Core Version "] }") ĊĊĠĠĠ Ġimplementation (" android x . h ilt : h ilt - navigation - compose :${ root Project . extra [" h ilt Compose Navigation "] }") ĊĊĠĠĠ Ġimplementation (" android x . compose . ui : ui :${ root Project . extra [" compose Version "] }") ĊĠĠĠ Ġimplementation (" android x . compose . material : material :${ root Project . extra [" compose Version "] }") ĊĠĠĠ Ġimplementation (" android x . compose . ui : ui - tool ing :${ root Project . extra [" compose Version "] }") ĊĠĠĠ Ġimplementation (" android x . compose . runtime : runtime :${ root Project . extra [" compose Version "] }") ĊĠĠĠ Ġimplementation (" android x . compose . runtime : runtime - li ved ata :${ root Project . extra [" compose Version "] }") ĊĠĠĠ Ġimplementation (" android x . navigation : navigation - compose :${ root Project . extra [" compose Nav Version "] }") ĊĊĠĠĠ Ġimplementation (" io . ktor : ktor - client - core :${ root Project . extra [" ktor Version "] }") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - client - serialization :${ root Project . extra [" ktor Version "] }") ĊĠĠĠ Ġimplementation (" io . ktor : ktor - client - okhttp :${ root Project . extra [" ktor Version "] }") ĊĊĠĠĠ Ġimplementation (" org . jetbrains . kotlin x : kotlin x - serialization - json : 1 . 2 . 1 ") ĊĊĠĠĠ Ġimplementation (" com . google . ac comp an ist : ac comp an ist - co il : 0 . 1 2 . 0 ") ĊĊĠĠĠ Ġimplementation (" android x . room : room - runtime :${ root Project . extra [" room Version "] }") ĊĠĠĠ Ġk apt (" android x . room : room - compiler :${ root Project . extra [" room Version "] }") ĊĠĠĠ Ġimplementation (" android x . room : room - k tx :${ root Project . extra [" room Version "] }") ĊĊĠĠĠ Ġtest Implementation (" junit : junit : 4 . 1 3 . 2 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . test . ext : junit : 1 . 1 . 2 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . test . espress o : espress o - core : 3 . 3 . 0 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . compose . ui : ui - test - junit 4 :${ root Project . extra [" compose Version "] }") ĊĠĠĠ Ġtest Implementation (" org . jetbrains . kotlin x : kotlin x - coroutines - test : 1 . 5 . 0 ") ĊĠĠĠ Ġtest Implementation (" org . mockito . kotlin : mockito - kotlin : 3 . 2 . 0 ") ĊĊĠĠĠ Ġdebug Implementation (" com . facebook . so loader : so loader : 0 . 1 0 . 1 ") ĊĠĠĠ Ġdebug Implementation (" com . facebook . flip per : flip per - network - plugin : 0 . 9 5 . 0 ") ĊĠĠĠ Ġdebug Implementation (" com . facebook . flip per : flip per : 0 . 9 5 . 0 ") Ċ } Ċ Ċ fun Ġget App Properties (): ĠProperties Ġ{ ĊĠĠĠ Ġval Ġproperties Ġ= ĠProperties () ĊĠĠĠ Ġval Ġlocal Properties Ġ= ĠFile (" app . properties ") ĊĊĠĠĠ Ġif Ġ( local Properties . isFile ) Ġ{ ĊĠĠĠĠĠĠĠ ĠInputStreamReader ( FileInputStream ( local Properties ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠChar sets . UTF _ 8 ). use Ġ{ Ġreader Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġproperties . load ( reader ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠĠĠ Ġreturn Ġproperties Ċ } Ċ Ċ fun Ġget App Property ( key : ĠString ) Ġ= Ġtry Ġ{ ĊĠĠĠ Ġget App Properties ()[ key ] Ġas ĠString Ċ } Ġcatch Ġ( e : ĠException ) Ġ{ ĊĠĠĠ Ġ"\" $ key ĠIS ĠNOT ĠIN ĠVERSION ĠCONT ROL , ĠUSE ĠYOUR ĠO WN \"" . also (:: println ) Ċ }