I have noticed that building the app in release mode (cocos run -p android -j 4 -m release) does in fact leave COCOS2D_DEBUG defined. This is a problem in my code because COCOS2D_DEBUG should only be defined for debug builds, to leave out test code etc from release builds… where can this be fixed?
This behaviour of Android builds is also INCONSISTENT with iOS builds and should definitely be fixed.
Yes, this is definitely an issue. Any hints on how to enable/disable COCOS2D_DEBUG for release builds without having to manually touch the proj.android/jni/Application.mk file each time we change the deploy target?