plugin Management Ġ{ ĊĠĠĠ Ġrepositories Ġ{ ĊĠĠĠĠĠĠĠ Ġgradle Plugin Portal () ĊĠĠĠĠĠĠĠ Ġj center () ĊĠĠĠĠĠĠĠ Ġgoogle () ĊĠĠĠĠĠĠĠ Ġmaven (" https :// dl . bin tray . com / kotlin / kotlin - dev ") ĊĠĠĠĠĠĠĠ Ġmaven (" https :// dl . bin tray . com / kotlin / kotlin - e ap ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġresolution Strategy Ġ{ ĊĠĠĠĠĠĠĠ Ġeach Plugin Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠAllow Ġapplying Ġandroid Ġplugin Ġusing Ġthe ĠPlugin ĠDSL Ġin Ġk ts . ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( requested . id . id Ġ== Ġ" com . android . application ") Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġuse Module (" com . android . tools . build : gradle :${ requested . version }") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ root Project . name Ġ= Ġ" kotlin - native - demo " Ċ Ċ // ĠAllow Ġusing Ġa ĠK / N Ġdistribution Ġbuilt Ġlocally Ġfrom Ġsources . Ċ gradle . start Parameter . project Properties [" kon an . build "] ?. let Ġ{ Ġkon an Build Path Ġ-> ĊĠĠĠ Ġgradle . all projects Ġ{ ĊĠĠĠĠĠĠĠ Ġextensions . extra Properties . set (" org . jetbrains . kotlin . native . home ", Ġ"$ kon an Build Path / dist ") ĊĠĠĠ Ġ} Ċ } Ċ Ċ // ĠDisable ĠAndroid Ġif ĠSDK Ġisn 't Ġconfigured . Ċ val Ġdisable Android Ġ= Ġgradle . start Parameter . project Properties [" disable . android "] Ċ if Ġ( disable Android Ġ== Ġnull Ġ|| Ġdisable Android . toLowerCase () Ġ!= Ġ" true ") Ġ{ ĊĠĠĠ Ġif Ġ( System . getenv (" ANDROID _ HOME ") Ġ!= Ġnull Ġ|| Ġroot Project . project Dir . resolve (" local . properties "). isFile ()) Ġ{ ĊĠĠĠĠĠĠĠ Ġinclude (": clients : android ") ĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . warn (" WARN . ĠAndroid ĠSDK Ġmay Ġnot Ġbe Ġconfigured , Ġexcluding ĠAndroid Ġproject ...") ĊĠĠĠ Ġ} Ċ } Ċ Ċ include (": clients : cli ") Ċ include (": clients : ios ") Ċ // include (": clients : web assembly ") Ċ include (": clients : shared ") Ċ include (": clients : audio ") Ċ include (": common ") Ċ include (": getopt ") Ċ include (": http server ") Ċ include (": json ") Ċ include (": k url ") Ċ include (": sql ") Ċ include (": utils ") Ċ Ċ enable Feature Preview (" GRAD LE _ METADATA ") Ċ