Closed RohanNagar closed 3 years ago
Hey @cegredev, thanks for the feedback. I just pushed an update to rename OS.MAC
to OS.MAC_UNKNOWN
.
As for your other questions:
Are you sure that the version number for Big Sur is 10.16 instead of 11 like shown in the Wikipedia article (l. 176, OS.java)?
I am running Big Sur (version 11.2.3) locally and I get 10.16 for os.version
, as you can see:
How can you confirm that the versions actually come in this format? If you just have one Mac machine and it's formatted like that, it's probably fair to assume the rest is as well, but it's important to me that you aren't just guessing. ;)
Yes, I have two Mac machines, one on Big Sur and one on Catalina. Big Sur returns 10.16 for the version, and Catalina returns 10.15.7.
Also, I found this old stack overflow post where os.version
returned 10.7.4 on Lion.
Hope that helps!
If you look at the JDK source code, it looks like they also will/do report 11.x versions. I'm sure for some time they also report 10.16 but you should handle both.
@dbwiddis I opened #4 to address this.
Hi! Really awesome library, I love how lightweight it is.
I wanted to contribute to adding specific versions of Mac OS.
From this doc, I found the
os.version
property. For Mac, this returns a string in the form10.x.x
. I matched that up to the version names from here.Please let me know what you think!