Android Question b4xlib manifest version numbers are strange

Sandman

Well-Known Member
Licensed User
I'm creating a b4xlib and try to set this kind of version in the manifest.txt:

B4X:
Version=2.12-2020-01-23-11-31-19
So, basically, during the automated build process of the b4xlib a timestamp is added to the version number.

This is not appreciated by B4A:
1579775854798.png


(A somewhat vague error message, by the way - took some time figuring out what the problem was.)


While investigating this I found that the version field only allows for <number><dot><number, two figures max>. To make it even more strange, the last number was rounded:

This manifest...
B4X:
Version=12.34567890
...shows as this:
1579775748677.png


Another example, as I tried to understand the limitations:
B4X:
Version=1234567890.1234567890
Shows as:
1579776075291.png


Does anyone know what the actual specification for the Version field is?
 

Sandman

Well-Known Member
Licensed User
And what is the definition of "a valid number"? Because the ones below apparently aren't.

B4X:
Version=12.34567890
B4X:
Version=1234567890.1234567890
 

Sandman

Well-Known Member
Licensed User
Looking closer it seems to be <int rounded to 7 figures><dot><int rounded to 2 figures>.

Can that be correct?
 

Sandman

Well-Known Member
Licensed User
Understood, thanks. I'll scrap the idea to add a timestamp and just go with an increasing version number instead.
 
Top