generateOSVersionString method

String generateOSVersionString(
  1. List<String> versionArray
)

Implementation

String generateOSVersionString(List<String> versionArray) {
  var major = versionArray[0];
  var minor = versionArray[1];
  var majorVersion = int.parse(major).toRadixString(2);
  var minorVersion = int.parse(minor).toRadixString(2);

  var majorString = majorVersion.toAnalyticsString();
  var minorString = minorVersion.toAnalyticsString();

  return '$majorString$minorString';
}