I'm trying to customize the bundling of a dependency in a gradle build by "shadowing" all the class files as a different package.
The library is set up as an android library project and has the package name
com.example.lib.*
I plan to bundle it wiht the package:
shadow.com.example.lib.*
I'm able generate an AAR (and jar) with the package name shadowed but the generated BuildConfig.java is still being created with the class name
com.example.lib.BuildConfig
Where does the BuildConfig's package name come from? I've tried modifying the applicationId in the library's build.gradle but still see BuildConfig generated with the original package name.