1
A company has had a standardized version of projects for many years and would like to continue using this standard to keep things easy in its environment. This standard that was adopted uses the 4-digit semantics as for example 1.5.16.3
.
I tried applying this pattern to an application I’m working for them and I got an error message on the Vscode console as soon as I changed the pubspec.yaml
by entering the value version: 1.0.0.0+1
:
[AppExemplo] flutter.bat pub get
Running "flutter pub get" in AppExemplo...
Error on line 3, column 10 of pubspec.yaml: Invalid version number: Could not parse "1.0.0.0+1".
╷
3 │ version: "1.0.0.0+1"
│ ^^^^^^^^^^^
╵
pub get failed (65; ╵)
exit code 65
I tried to look up the flutter issues if there was anything I could do but found nothing. I noticed that some applications installed on my phone have this pattern, which made me try to find a way to work.
Is there any way I can get 4 numbers in the name of the version and worth it without doing magic or Herculean efforts?
Good clarification, give me more confidence to continue the development. I really thought I would have to use the
local.properties
how it will change I’m always thinking of creating a.properties
custom use it ingraddle
to control the code and version name. For Ios, which is the file equated tolocal.properties
?– Leonardo Paim
In iOS the equivalent is the file
generated.xcconfig
.– Naslausky
Doubts clarified and now I consider as the valid answer.
– Leonardo Paim