Wish Selection of used libraries as a #ModuleOption

Alessandro71

Well-Known Member
Licensed User
Longtime User
Currently, libraries must be manually selected in the Libraries Manager tab of the IDE
A module options like #Library could be useful for these use cases:
1) after downloading a project, you must actually guess which libraries are required to compile it: it's a guesswork until all errors vanish from the Logs
2) selecting libraries based on build configuration with #if statements, where different versions of the same source are used to build different apps with different capabilities
example:
B4X:
#if Lite
    #Library "iMedia"
#End If
#Library "XUI Views"
 

AnandGupta

Expert
Licensed User
Longtime User
If you open the .b4a file in text editor/viewer, then it shows the library names, used in the project.
B4X:
Build1=Default,b4a.example
File1=b4a.png
File2=b4i.png
File3=b4j.png
File4=Chinook.db
File5=InvoiceInfo.bal
File6=MainCV.bal
FileGroup1=Logos
FileGroup2=Logos
FileGroup3=Logos
FileGroup4=Database
FileGroup5=Layouts
FileGroup6=Layouts
Group=Default Group
Library1=core
Library2=runtimepermissions
Library3=sql
Library4=xcustomlistview
Library5=xui
Library6=richstring

See Library? above.
 

Alexander Stolte

Expert
Licensed User
Longtime User
Very Useful, i try to keep the effort for my CustomViews small for the user with a listing of all libraries that are needed. But you have to check them all yourself.
1623759097453.png
 
Top