0

I have two different app in one android project, as they both use similar components. One is client app and other is admin app. I also have an base module which constis of common util classes, ui components and other shared code. Let say App1, App2 and BaseModule. Now I want to access BuildConfig.VERSION_CODE of App1 or App2 depending on which app is build, in base module. How to access it. Do I need some gradle script to transfer current app version_code to base mode?

I am trying to use shared preferances to share version code. But is there any to use it like BuildConfig.VERSION_CODE

Ansab
  • 11
  • 3

0 Answers0