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
kenkyee
03/22/2021, 12:17 PM
If you do
if (someFinalConst)
The compiler won't include that code if the variable is false
k
Karlo Lozovina
03/22/2021, 12:20 PM
the compiler will then remove the if check as well, right?
k
kenkyee
03/22/2021, 4:16 PM
Yep
n
Nikky
04/14/2021, 7:16 PM
you can add additional sourcesets.. but when those are not there and the rest of your code relies on it.. this might be complicated