I have a custom library I am using inside a client app as a dependency. The client app has a version code and name such that :
versionCode versionMajor * 1000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
Now the challenge is, i can easily retrieve it within the client app, but I want to be able to retrieve it into the library /dependency aswell to pass on to the server. Anyone has any idea how to go about this?