Android Question Setting version of a library

msali

Member
Licensed User
Longtime User
Hi,
Simple and silly question.
I have just created a library of my own. Once i add this library to my actual project, it shows
(Version: 1.00) in front of it.

In my library, i have added comments on top which maintain the version number and change log assuming it will pickup version number from there, but it does not.

How can i set the version number so that when added to another project it shows the latest version number.

regards & thanks in adv.
 

klaus

Expert
Licensed User
Longtime User
How did you make the library ?
If you compile B4A Classes or Modules as a library you should add following parameters at the beginning of the Main module in the #Region Project Attributes.
B4X:
#Region  Project Attributes
   #LibraryName: xxx
   #LibraryAuthor: xxx
   #LibraryVersion: x.y
 
Upvote 0

msali

Member
Licensed User
Longtime User
I am using B4A IDE. Under Projects menu added a Class Module and wrote my program.

Then compiled it using "Library Compile To Library" option under Project menu.

All goes well and it generates a library successfully.

Now when i am adding your recommended #Region and then try to compile it gives me following error in compile window:


Parsing code. Error
Error parsing program.
Error description: Attribute not supported: libraryname
Occurred on line: 3
#LibraryName: TableDraw


regards,
 
Upvote 0

msali

Member
Licensed User
Longtime User
in the class TableDraw module where all my code for TableDraw resides.

B4A version 3.82 (latest)
 
Upvote 0
Top