is there a way to exclude specific modules and specific selected libraries based on a custom build.
For example:
I am adding in-app purchases for a specific build, but I don't want to link the corresponding library for other builds. Is there a solution?
Currently no. You can however exclude all of the modules code based on the configurations (you will need to keep Class_Globals and Initialize but you can exclude their code).
Thanks for your reply. Here is my next question:
Since one of the builds require the In-App Billing library, will all other builds include this library (if checked)?
In other words, would other builds show in the store as if the app offers In App purchases (even though it doesn't)
The library itself will do no harm. Make sure that no permission is added (com.android.vending.BILLING). It will not be added if you are not declaring a BillingManager variable.
Just double checking one thing in here
if I understood you correctly: com.android.vending.BILLING, will be automatically added to the manifest file if BillingManger is declared (unless already exists). Is this true?
if so, should this solve the issue (provided BUILD_2 doesn't declare BillingManager
B4X:
#if BUILD_1
AddPermission(com.android.vending.BILLING)
#else
'Something else in here
#end if