Android Question #Full / #Free ??

ilan

Expert
Licensed User
Longtime User
hi,

i have several apps where i use the Build Configuration to change between the #Free version and the #Full version.

on my free version i am using Admob or any other ad service my question is can i compile the app for the full version without using admob libs?

i have read somewhere that only if i declare a view that lib will be included but even if i put all
dim adview1 as adview in #If Free ... #end if
my apk file is still big.

what should i do if i don't want unused libs to be included in the apk.

thanx, ilan
 
Last edited:
I have already asked to add
Separate library lists for different build configurations
It will allow developers to add/remove automatically libs like adMob, based on selected build configuration.

Another approach based on conditional compilation requested in
Activate / deactivate the Lib-Admob per code

Right now I use mixed approach. I put code related to AdMOB like
Code: Copy
 Dim AdView1 As AdView
under conditional compilation linked to corresponding build configuration.

After I change build configuration to AdMOB I manually off AdMOB from the list of the libs list included into the project.
After I change build configuration to AdMOB_NO I manually on AdMOB from the list of the libs list included into the project.
 
Upvote 0
After you decrease google play services size it will be about 2mb. With this size you can probably ignore it.

Thank you for your answer erel.

But i agree with @b4auser1

A different lib list for each build would be a great addition. I have no clue how difficult it would be for you to add it but this is a much better solution then start zipping google play service folders.

(Simplicity is the main reason for b4x success)
 
Upvote 0
#ExcludeLib: admob - this would be an ideal solution? Perhaps at compile, this command omits the mentioned lib.
 
Upvote 0
Back
Top