major

val major: Int

The major version number.

This is extracted from the part before the first dot in the version string. If parsing fails, defaults to 1.

Example: For "2.1.3", returns 2