Android Question b4xlib manifest version numbers are strange

Sandman

Expert
Licensed User
Longtime User
I'm creating a b4xlib and try to set this kind of version in the manifest.txt:

Code: Copy
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...
Code: Copy
Version=12.34567890

...shows as this:
1579775748677.png


Another example, as I tried to understand the limitations:
Code: Copy
Version=1234567890.1234567890

Shows as:
1579776075291.png


Does anyone know what the actual specification for the Version field is?
 
And what is the definition of "a valid number"? Because the ones below apparently aren't.

Code: Copy
Version=12.34567890

Code: Copy
Version=1234567890.1234567890
 
Upvote 0
Looking closer it seems to be <int rounded to 7 figures><dot><int rounded to 2 figures>.

Can that be correct?
 
Upvote 0
Understood, thanks. I'll scrap the idea to add a timestamp and just go with an increasing version number instead.
 
Upvote 0
Back
Top