I can programmatically get my app\'s version name like this:
String versionName = BuildConfig.VERSION_NAME; // 1.0
However, I have a demo app f
Use String libVersionName = your.lib.package.name.BuildConfig.VERSION_NAME;
String libVersionName = your.lib.package.name.BuildConfig.VERSION_NAME;
or in your library, just use BuildConfig.VERSION_NAME to get it.
BuildConfig.VERSION_NAME
NB: BuildConfig.VERSION_NAME in app module is your.app.package.name.BuildConfig.VERSION_NAME
your.app.package.name.BuildConfig.VERSION_NAME