code: async function getAndroidPlatformAndPath () {
    const androidHome = process.env.ANDROID_HOME;
    if (!_.isString(androidHome)) {
      throw new Error('ANDROID_HOME environment variable was not exported');
    }
  
    let propsPaths = await fs.glob(path.resolve(androidHome, 'platforms', '*', 'build.prop'), {
      absolute: true
    });
    const platformsMapping = {};
    for (const propsPath of propsPaths) {
      const propsContent = await fs.readFile(propsPath, 'utf-8');
      const platformPath = path.dirname(propsPath);
      const platform = path.basename(platformPath);
      const match = /ro\.build\.version\.sdk=(\d+)/.exec(propsContent);
      if (!match) {
        log.warn(`Cannot read the SDK version from '${propsPath}'. Skipping '${platform}'`);
        continue;
      }
      platformsMapping[parseInt(match[1], 10)] = {
        platform,
        platformPath,
      };
    }
    if (_.isEmpty(platformsMapping)) {
      log.warn(`Found zero platform folders at '${path.resolve(androidHome, 'platforms')}'. ` +
        `Do you have any Android SDKs installed?`);
      return {
        platform: null,
        platformPath: null,
      };
    }
  
    const recentSdkVersion = _.keys(platformsMapping).sort().reverse()[0];
    const result = platformsMapping[recentSdkVersion];
    log.debug(`Found the most recent Android platform: ${JSON.stringify(result)}`);
    return result;
  }
docs: @typedef {Object} PlatformInfo
  @property {?string} platform - The platform name, for example `android-24`
  or `null` if it cannot be found
  @property {?string} platformPath - Full path to the platform SDK folder
  or `null` if it cannot be found
   
  Retrieve the path to the recent installed Android platform.
  
  @return {PlatformInfo} The resulting path to the newest installed platform.