swiftPmStatus function
Implementation
Status swiftPmStatus(PluginEntry plugin) {
if (plugin.errors.isNotEmpty) return Status.notChecked;
// A plugin with no native iOS code has nothing to migrate off CocoaPods
// (SPEC e2-s1 rework), so it can't be blocked by the CocoaPods deadline.
if (plugin.swiftpm.nativeIos == false) return Status.green;
final tag = plugin.swiftpm.tag;
final archive = plugin.swiftpm.archive;
if (tag == null || archive == null) return Status.notChecked;
if (tag && archive) return Status.green;
if (tag != archive) return Status.amber;
return Status.red;
}