AcademyCraft

AcademyCraft

1M Downloads

[Code Enhancement] DEBUG flag should not be hard-coded

WeAthFoLD opened this issue ยท 0 comments

commented

Currently, the DEBUG flag is hardcoded in AcademyCraft class:

public class AcademyCraft {
    public static final boolean DEBUG = <???>;
}

This causes problem in development. When we are developing it's natural to have that flag on, but when release that flag should be off. Manually changing it is tedious and error-prone.

Some alternatives:

  • Specified through the execution parameter. That will make this flag not inlined and slow down things a little bit, but I don't think that really matters much.
  • Set that flag off when using gradle build, but on when in developement env. I don't know if this is even approachable.