import Ġcom . ap ol log raph ql . apollo 3 . gradle . api . A pol lo Extension Ċ import Ġcom . android . build . gradle . Base Extension Ċ Ċ build script Ġ{ ĊĠ Ġapply ( from Ġ= Ġ"../../ test Projects / build script . gradle . k ts ") Ċ } Ċ Ċ apply ( plugin Ġ= Ġ" com . android . library ") Ċ apply ( plugin Ġ= Ġ" org . jetbrains . kotlin . android ") Ċ apply ( plugin Ġ= Ġ" com . ap ol log raph ql . apollo 3 ") Ċ Ċ dependencies Ġ{ ĊĠ Ġadd (" implementation ", Ġgro ovy . util . Eval . x ( project , Ġ" x . dep . apollo . api ")) Ċ } Ċ Ċ configure < Base Extension > Ġ{ ĊĠ Ġcompile Sdk Version ( groovy . util . Eval . x ( project , Ġ" x . android Config . compile Sdk Version "). toString (). toInt ()) ĊĊĠ Ġdefault Config Ġ{ ĊĠĠĠ Ġmin Sdk Version ( groovy . util . Eval . x ( project , Ġ" x . android Config . min Sdk Version "). toString ()) ĊĠĠĠ Ġtarget Sdk Version ( groovy . util . Eval . x ( project , Ġ" x . android Config . target Sdk Version "). toString ()) ĊĠ Ġ} ĊĊĠ Ġ// ĠThis Ġdoesn 't Ġreally Ġmake Ġsense Ġfor Ġa Ġlibrary Ġproject , Ġbut Ġstill Ġallows Ġto Ġcompile Ġflavor Ġsource Ġsets ĊĠ Ġflavor Dimensions (" version ") ĊĠ Ġproduct Fl avors Ġ{ ĊĠĠĠ Ġcreate (" demo ") Ġ{ ĊĠĠĠĠĠ Ġversion Name Suffix Ġ= Ġ"- demo " ĊĠĠĠ Ġ} ĊĠĠĠ Ġcreate (" full ") Ġ{ ĊĠĠĠĠĠ Ġversion Name Suffix Ġ= Ġ"- full " ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ Ċ configure < A pol lo Extension > Ġ{ ĊĠ Ġservice (" test ") Ġ{ ĊĠĠĠ Ġsrc Dir (" src / test / graphql ") ĊĠĠĠ ĠpackageName . set (" com . example ") ĊĠĠĠ Ġoutput Dir Connection Ġ{ ĊĠĠĠĠĠ Ġconnect To Android Source Set (" test ") ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ