getVersion static method

String getVersion()

Implementation

static String getVersion() {
  if(!isWeb()) {
    try {
      return Platform.version.split(" ")[0];
    } catch(e) {
      return '0';
    }
  }
  return '';
}