https://kotlinlang.org logo
#gradle
Title
t

tylerwilson

08/05/2023, 8:15 PM
I have a KMP library, and after adding compose mp I had to disable watchOS (compose has to be define in common and they have no watchOS implementation or stubs). Is there a cradle way to something like a #define for WITH_COMPOSE or without and then build twice - once for compose included and once without?
v

Vampire

08/05/2023, 10:26 PM
If I got you right, you could just check some project property you define. Build scripts are fully turing completed, so you can just use
if
for example.
2 Views