I use maven to package my app. Now I want integrate leakcanary only in debug version. So I need to add a <dependency>
node to my pom.xml. But I want to remove it from release version. How Can I do that? I have a solution that a pom.xml for debug version and another pom for release version. Another solution is use shell to modify pom.xml before package. Any better idea?
maven:3.3.9
com.simpligility.maven.plugins:android-maven-plugin:4.4.3