package Ġorg . jetbrains . dok ka . gradle Ċ Ċ import Ġorg . gradle . api . Project Ċ import Ġorg . gradle . api . Unknown Domain Object Exception Ċ import Ġorg . jetbrains . kotlin . gradle . dsl . Kotlin Multi platform Extension Ċ import Ġorg . jetbrains . kotlin . gradle . plugin . Kotlin Platform Type Ċ import Ġorg . jetbrains . kotlin . gradle . plugin . Kotlin Target ĊĊ Ċ fun ĠProject . is Android Project () Ġ= Ġtry Ġ{ ĊĠĠĠ Ġproject . extensions . get ByName (" android ") ĊĠĠĠ Ġtrue Ċ } Ġcatch ( e : ĠUnknown Domain Object Exception ) Ġ{ ĊĠĠĠ Ġfalse Ċ } Ġcatch ( e : ĠClass NotFoundException ) Ġ{ ĊĠĠĠ Ġfalse Ċ } Ċ Ċ fun ĠProject . is Multi platform Project () Ġ= Ġtry Ġ{ ĊĠĠĠ Ġproject . extensions . getBy Type ( Kotlin Multi platform Extension :: class . java ) ĊĠĠĠ Ġtrue Ċ } Ġcatch ( e : ĠUnknown Domain Object Exception ) Ġ{ ĊĠĠĠ Ġfalse Ċ } Ġcatch Ġ( e : ĠNo Class Def Found Error ){ ĊĠĠĠ Ġfalse Ċ } Ġcatch ( e : ĠClass NotFoundException ) Ġ{ ĊĠĠĠ Ġfalse Ċ } Ċ Ċ fun ĠKotlin Target . is Android Target () Ġ= Ġthis . platform Type Ġ== ĠKotlin Platform Type . android Jvm Ċ fun ĠD ok ka Task . is Multi platform Project () Ġ= Ġthis . multi platform . isNotEmpty ()