Search code examples
androidbuild-processbuild-automationjenkinsrelease-management

Set release mode (Java boolean variable) in Jenkins


We are using Jenkins to make our builds. We would like to switch boolean value in release build. Is it possible? Maybe it's better option to do this?

In C you could just define a value by passing -D and you call gcc -DUSE_ASD=1 asd.c

#ifdef USE_ASD
int debug = 0;
#else
int debug = 1;
#endif 

Solution

  • This is not a problem anymore. With update of Android platform tools this type of flag was added.