checkFeaturesByHost method

CheckResult checkFeaturesByHost()

Implementation

CheckResult checkFeaturesByHost() {
  final host = properties['Host']?.toString().toLowerCase();
  if (host == null) return CheckResult(RESULT_UNKNOWN, null);

  final known = ['dev', 'build2', 'buildbot', 'google_sdk', 'android-build'];
  return known.contains(host)
      ? CheckResult(RESULT_EMULATOR, host)
      : CheckResult(RESULT_UNKNOWN, host);
}