Common API to transform classes via Javassist during gradle and maven builds. Works on Android too.
This API allows to create IClassTransfomers that can be used interchangeably in gradle and maven builds.
It introduces a few classes and interfaces in the package name space of Javassist : javassist.build.
Basically, you will define a IClassTransfomer and use Javassist to perform transformations of classes (class files).
public interface IClassTransformer {
void applyTransformations(CtClass ctClass) throws JavassistBuildException;
boolean shouldTransform(CtClass ctClass) throws JavassistBuildException;
}For more instructions to use javassist based transfomations during builds, please refer to :
Some libs that may help to create powerfull transformers :