I'd like to make some changes in my code according to some Marketing requires. I thing that the best solution is using preprocessing, like in J2ME. How can I do it? Is there any tool for this task? Thanks, Eyal.
You can find more details under the below link:
http://groups.google.com/group/android-developers/browse_thread/thread/0daee1d93d1f21b3?pli=1
Basically it is said that Android doesn't support preprocessing because Java doesn't support it.
However there are ways to imitate the behaviour of preprocessors using System Properties in Java. And there is already a discussion on it:
#ifdef #ifndef in Java
There are number of preprocessors for Java, I use my own https://github.com/raydac/java-comment-preprocessor it supports Maven, ANT and Gradle The Wiki project page where described the process can be found here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With