Skip to content

Commit 8c2b7fc

Browse files
committed
Allow version config skew again!
1 parent ae48205 commit 8c2b7fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/native_assets_cli/lib/src/config.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ sealed class HookConfig {
7878
HookConfig(this.json)
7979
: version = switch (Version.parse(json.string(_versionKey))) {
8080
final Version version => (version.major != latestVersion.major ||
81-
version < latestVersion)
81+
version < latestParsableVersion)
8282
? throw FormatException(
8383
'Only compatible versions with $latestVersion are supported '
8484
'(was: $version).')
@@ -562,3 +562,6 @@ extension EncodedAssetLinkOutputBuilder on LinkOutputBuilder {
562562

563563
// The latest supported config version.
564564
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

Comments
 (0)