having enabledForRelease = false does not imply that the library will not be bundled for the…

If you are using annotations only and don’t want library to be bundled in the apk, then you can simple use it as a debugCompile dependency. The only dependency you need for release build is annotations.

   compile 'com.nikitakozlov.pury:annotations:1.0.1'
debugCompile 'com.nikitakozlov.pury:pury:1.0.2'

But if you want to use direct method calls, then you need a “no-op” version. It is not ready right now, I’m planning to release it in a couple of weeks. Once it is available I will tweet about that.

Like what you read? Give Nikita Kozlov a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.