checkPlatformSetup method

Map<String, dynamic> checkPlatformSetup()

Check platform-specific setup plus the association files.

iOS and Android sections only appear when that platform's directory exists; the association-files section always runs, since a project can host .well-known/ files without shipping the corresponding Flutter platform folder.

Implementation

Map<String, dynamic> checkPlatformSetup() {
  final config = _loadConfig();
  final platforms = PlatformHelper.detectPlatforms(projectRoot);
  final result = <String, dynamic>{'wiring': checkWiring()};

  if (platforms.contains('ios')) {
    result['ios'] = _checkIosSetup(config);
  }

  if (platforms.contains('android')) {
    result['android'] = _checkAndroidSetup(config);
  }

  result['associations'] = _checkAssociationFiles(config);

  return result;
}