I have read Best way to include debug code for including debug only code in android and was really helpful. what I'm asking and couldn't find answer for is:
Is debug only code suggested by above solutions completely removed from release type apk?
I have read Best way to include debug code for including debug only code in android and was really helpful. what I'm asking and couldn't find answer for is:
Is debug only code suggested by above solutions completely removed from release type apk?
By using the method described in the suggested answer of the link you provided, the debug only code is removed by the compiler from the release type apk when setting DEV_MODE=false.
If you need to have automatic switching between debug and release code without having to remember to set a constant variable, you will have to add a debug folder next to your main folder in your src and re-implement any class you need to modify.