import Ġorg . jetbrains . kotlin . gradle . tasks . Kotlin Compile Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġid (" com . android . application ") ĊĠĠĠ Ġkotlin (" android ") ĊĠĠĠ Ġid (" com . get keep safe . dex count ") ĊĠĠĠ Ġkotlin (" k apt ") Ċ } Ċ Ċ android Ġ{ ĊĊĠĠĠ Ġuse Library (" org . apache . http . legacy ") ĊĊĠĠĠ Ġcompile Sdk Version ( Versions . Target Sdk ) ĊĊĠĠĠ Ġcompile Options Ġ{ ĊĠĠĠĠĠĠĠ Ġsource Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 ĊĠĠĠĠĠĠĠ Ġtarget Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġdefault Config Ġ{ ĊĠĠĠĠĠĠĠ Ġmin Sdk Version ( Versions . Min Sdk RX ) ĊĠĠĠĠĠĠĠ Ġtarget Sdk Version ( Versions . Target Sdk ) ĊĠĠĠĠĠĠĠ Ġversion Code Ġ= Ġ 1 ĊĠĠĠĠĠĠĠ Ġversion Name Ġ= Ġ" 1 . 0 " ĊĠĠĠĠĠĠĠ Ġtest Instrumentation Runner Ġ= Ġ" android x . test . runner . Android JUnit Runner " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġpackaging Options Ġ{ ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / services / javax . annotation . processing . Processor ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / rx java . properties ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / DEPEND ENCI ES ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / LICENSE ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / LICENSE . txt ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / license . txt ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / NOTICE ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / NOTICE . txt ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / notice . txt ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / AL 2 . 0 ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF / L GPL 2 . 1 ") ĊĠĠĠĠĠĠĠ Ġexclude (" META - INF /*. kotlin _ module ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġsource Sets Ġ{ ĊĠĠĠĠĠĠĠ Ġget ByName (" main "). java . src Dirs (" src / main / kotlin ") ĊĠĠĠ Ġ} Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation (" android x . appcompat : appcompat : 1 . 2 . 0 ") ĊĠĠĠ Ġimplementation ( project (": lib ")) ĊĠĠĠ Ġimplementation ( project (": sql cipher ")) ĊĠĠĠ Ġimplementation ( project (": reactive - streams ")) ĊĠĠĠ Ġimplementation ( project (": content provider ")) ĊĠĠĠ Ġimplementation ( project (": coroutines ")) ĊĠĠĠ Ġimplementation ( project (": paging ")) ĊĠĠĠ Ġimplementation ( project (": li ved ata ")) ĊĊĠĠĠ Ġk apt Android Test ( project (": processor ")) ĊĊĠĠĠ Ġandroid Test Implementation ( Dependencies . Java X Annotation ) ĊĠĠĠ Ġandroid Test Implementation (" com . n ha ar man . mock it ok otlin 2 : mockito - kotlin : 2 . 2 . 0 ") Ġ{ ĊĠĠĠĠĠĠĠ Ġexclude ( group Ġ= Ġ" org . jetbrains . kotlin ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġandroid Test Implementation (" org . mockito : mockito - android : 2 . 2 3 . 0 ") ĊĊĠĠĠ Ġandroid Test Implementation (" org . jetbrains . kotlin x : kotlin x - coroutines - test : 1 . 4 . 2 ") ĊĠĠĠ Ġandroid Test Implementation ( Dependencies . JUnit ) ĊĠĠĠ Ġandroid Test Implementation (" android x . test : core : 1 . 3 . 0 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . test : runner : 1 . 3 . 0 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . test : rules : 1 . 3 . 0 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . arch . core : core - testing : 2 . 1 . 0 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . test . ext : junit : 1 . 1 . 2 ") Ċ Ċ } Ċ Ċ dex count Ġ{ ĊĠĠĠ Ġinclude Classes Ġ= Ġtrue ĊĠĠĠ ĠorderBy Method Count Ġ= Ġtrue Ċ } Ċ Ċ tasks . with Type < Kotlin Compile >(). all Ġ{ ĊĠĠĠ Ġkotlin Options . free Compiler Args Ġ+= ĠlistOf ("- XX Language :+ Inline Classes ", Ġ"- X opt - in = kotlin x . coroutines . Experimental Cor outines Api ") Ċ }