Skip to content

Commit

Permalink
feat: add 'vcs-browser' and 'contribute' url types
Browse files Browse the repository at this point in the history
  • Loading branch information
d-loose committed Jun 4, 2024
1 parent b7151fe commit 53797c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/src/collection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,9 @@ AppstreamUrlType _parseUrlType(String typeName) {
'help': AppstreamUrlType.help,
'donation': AppstreamUrlType.donation,
'translate': AppstreamUrlType.translate,
'contact': AppstreamUrlType.contact
'contact': AppstreamUrlType.contact,
'vcs-browser': AppstreamUrlType.vcsBrowser,
'contribute': AppstreamUrlType.contribute
}[typeName];
if (type == null) {
throw FormatException("Unknown url type '$typeName'");
Expand Down
4 changes: 3 additions & 1 deletion lib/src/url.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ enum AppstreamUrlType {
help,
donation,
translate,
contact
contact,
vcsBrowser,
contribute
}

/// A URL for more information about an Appstream component.
Expand Down

0 comments on commit 53797c2

Please sign in to comment.