Skip to content

Commit

Permalink
Update lib/src/report/multi_platform.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Finnemann Jensen <jopsen@gmail.com>
  • Loading branch information
sigurdm and jonasfj authored Oct 25, 2024
1 parent d75a366 commit e10b24c
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions lib/src/report/multi_platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -206,27 +206,26 @@ Future<Subsection?> _createSwiftPackageManagerSubSection(
0,
ReportStatus.passed,
);
} else {
final explanation = tr.explanations
.where((e) => e.tag == PanaTags.isSwiftPmPlugin)
.firstOrNull;
if (explanation != null) {
return Subsection(
description,
[
explanationToIssue(explanation),
RawParagraph(
'This package for iOS or MacOs does not support the Swift Package Manager. '
'It will not receive full points in a future version of the scoring model.',
),
RawParagraph(
'See https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors for details.'),
],
0,
0,
ReportStatus.failed,
);
}
}
final explanation = tr.explanations
.where((e) => e.tag == PanaTags.isSwiftPmPlugin)
.firstOrNull;
if (explanation != null) {
return Subsection(
description,
[
explanationToIssue(explanation),
RawParagraph(
'This package for iOS or MacOs does not support the Swift Package Manager. '
'It will not receive full points in a future version of the scoring model.',
),
RawParagraph(
'See https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors for details.'),
],
0,
0,
ReportStatus.failed,
);
}
// Don't complain if this is not an ios/macos plugin.
return null;
Expand Down

0 comments on commit e10b24c

Please sign in to comment.