diff --git a/packages/flutter_tools/lib/src/shorebird/shorebird_yaml.dart b/packages/flutter_tools/lib/src/shorebird/shorebird_yaml.dart index 9e40f392b7eb8..a741b2683d765 100644 --- a/packages/flutter_tools/lib/src/shorebird/shorebird_yaml.dart +++ b/packages/flutter_tools/lib/src/shorebird/shorebird_yaml.dart @@ -56,6 +56,7 @@ Map compileShorebirdYaml(YamlMap yamlMap, {required String? fla } copyIfSet('base_url'); copyIfSet('auto_update'); + copyIfSet('patch_verification'); final String? shorebirdPublicKeyEnvVar = environment['SHOREBIRD_PUBLIC_KEY']; if (shorebirdPublicKeyEnvVar != null) { compiled['patch_public_key'] = shorebirdPublicKeyEnvVar; diff --git a/packages/flutter_tools/test/general.shard/shorebird/shorebird_yaml_test.dart b/packages/flutter_tools/test/general.shard/shorebird/shorebird_yaml_test.dart index 602de37681555..7e05fec171409 100644 --- a/packages/flutter_tools/test/general.shard/shorebird/shorebird_yaml_test.dart +++ b/packages/flutter_tools/test/general.shard/shorebird/shorebird_yaml_test.dart @@ -52,6 +52,7 @@ flavors: foo: 2-a bar: 3-a base_url: https://example.com +patch_verification: strict '''; final YamlDocument input = loadYamlDocument(yamlContents); final YamlMap yamlMap = input.contents as YamlMap; @@ -61,6 +62,7 @@ base_url: https://example.com 'app_id': '1-a', 'auto_update': false, 'base_url': 'https://example.com', + 'patch_verification': 'strict', }); final Map compiled2 = compileShorebirdYaml(yamlMap, flavor: 'foo', environment: {'SHOREBIRD_PUBLIC_KEY': '4-a'}); @@ -68,6 +70,7 @@ base_url: https://example.com 'app_id': '2-a', 'auto_update': false, 'base_url': 'https://example.com', + 'patch_verification': 'strict', 'patch_public_key': '4-a', }); });