Skip to content

Commit

Permalink
Allow version config skew again!
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Dec 6, 2024
1 parent ae48205 commit 8c2b7fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/native_assets_cli/lib/src/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ sealed class HookConfig {
HookConfig(this.json)
: version = switch (Version.parse(json.string(_versionKey))) {
final Version version => (version.major != latestVersion.major ||
version < latestVersion)
version < latestParsableVersion)
? throw FormatException(
'Only compatible versions with $latestVersion are supported '
'(was: $version).')
Expand Down Expand Up @@ -562,3 +562,6 @@ extension EncodedAssetLinkOutputBuilder on LinkOutputBuilder {

// The latest supported config version.
final latestVersion = Version(1, 6, 0);

// The parser can deal with configs down to this version.
final latestParsableVersion = Version(1, 5, 0);

0 comments on commit 8c2b7fc

Please sign in to comment.