does Kotlin have some sort of conditional compilat...
# announcements
k
does Kotlin have some sort of conditional compilation? i have some code (scattered around) that would like to have present while developing, but not be there in final releases, is there a way to do that?
k
If you do if (someFinalConst) The compiler won't include that code if the variable is false
k
the compiler will then remove the if check as well, right?
k
Yep
n
you can add additional sourcesets.. but when those are not there and the rest of your code relies on it.. this might be complicated
107 Views