public static int versionStringToInt(String version) {
        // Split the version string by '.' and '-'
        // example 1.1.1-dev would converted to 10101
        String[] parts = version.split("[.\\-]");

        // Version calculation taken from
        // https://cordova.apache.org/docs/en/12.x-2025.01/guide/platforms/android/index.html#setting-the-version-code
        return Integer.parseInt(parts[0]) * 10000 + Integer.parseInt(parts[1]) * 100 + Integer.parseInt(parts[2]);
    }
Converts a version string to an int.
@param version
@return
src/android/Options.java