We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae48205 commit 8c2b7fcCopy full SHA for 8c2b7fc
pkgs/native_assets_cli/lib/src/config.dart
@@ -78,7 +78,7 @@ sealed class HookConfig {
78
HookConfig(this.json)
79
: version = switch (Version.parse(json.string(_versionKey))) {
80
final Version version => (version.major != latestVersion.major ||
81
- version < latestVersion)
+ version < latestParsableVersion)
82
? throw FormatException(
83
'Only compatible versions with $latestVersion are supported '
84
'(was: $version).')
@@ -562,3 +562,6 @@ extension EncodedAssetLinkOutputBuilder on LinkOutputBuilder {
562
563
// The latest supported config version.
564
final latestVersion = Version(1, 6, 0);
565
+
566
+// The parser can deal with configs down to this version.
567
+final latestParsableVersion = Version(1, 5, 0);
0 commit comments