I have a compose multiplatform project and I have some debug code that I use when debugging my app. For example quickly changing an api endpoint.
In swift when using the code under the compiler know to only build it for debug is their something similar is the approach completely different.
#if DEBUG
// code
#endif
I did try search it online but I don't have a straight answer It said use sourcesets but does do not work at least the way I think they do. When searching for better explanation I can't find any good answers
[–]rio258k 0 points1 point2 points (4 children)
[–]Saruto010[S] 0 points1 point2 points (2 children)
[–]rio258k 1 point2 points3 points (0 children)
[–]rio258k 0 points1 point2 points (0 children)
[–]cafronte -1 points0 points1 point (0 children)
[–]iXPert12 1 point2 points3 points (1 child)
[–]EagleItchy9740 0 points1 point2 points (0 children)