@@ -145,8 +145,8 @@ final RegExp _deprecationPattern4 = RegExp(r'^ *\)$');
145
145
/// the regexp just above...)
146
146
const String _ignoreDeprecation = ' // ignore: flutter_deprecation_syntax (see analyze.dart)' ;
147
147
148
- /// Some deprecation notices are grand-fathered in for now . They must have an issue listed.
149
- final RegExp _grandfatheredDeprecation = RegExp (r' // ignore: flutter_deprecation_syntax, https://github.com/flutter/flutter/issues/[0-9]+$' );
148
+ /// Some deprecation notices are exempt for historical reasons . They must have an issue listed.
149
+ final RegExp _legacyDeprecation = RegExp (r' // ignore: flutter_deprecation_syntax, https://github.com/flutter/flutter/issues/[0-9]+$' );
150
150
151
151
Future <void > verifyDeprecations (String workingDirectory, { int minimumMatches = 2000 }) async {
152
152
final List <String > errors = < String > [];
@@ -157,7 +157,7 @@ Future<void> verifyDeprecations(String workingDirectory, { int minimumMatches =
157
157
for (final String line in lines) {
158
158
if (line.contains (_findDeprecationPattern) &&
159
159
! line.endsWith (_ignoreDeprecation) &&
160
- ! line.contains (_grandfatheredDeprecation )) {
160
+ ! line.contains (_legacyDeprecation )) {
161
161
linesWithDeprecations.add (lineNumber);
162
162
}
163
163
lineNumber += 1 ;
@@ -691,7 +691,7 @@ class Hash256 {
691
691
// If you are adding/changing template images, use the flutter_template_images
692
692
// package and a .img.tmpl placeholder instead.
693
693
// If you have other binaries to add, please consult Hixie for advice.
694
- final Set <Hash256 > _grandfatheredBinaries = < Hash256 > {
694
+ final Set <Hash256 > _legacyBinaries = < Hash256 > {
695
695
// DEFAULT ICON IMAGES
696
696
697
697
// packages/flutter_tools/templates/app/android.tmpl/app/src/main/res/mipmap-hdpi/ic_launcher.png
@@ -1046,18 +1046,18 @@ final Set<Hash256> _grandfatheredBinaries = <Hash256>{
1046
1046
const Hash256 (0x63D2ABD0041C3E3B , 0x4B52AD8D382353B5 , 0x3C51C6785E76CE56 , 0xED9DACAD2D2E31C4 ),
1047
1047
};
1048
1048
1049
- Future <void > verifyNoBinaries (String workingDirectory, { Set <Hash256 > grandfatheredBinaries }) async {
1050
- // Please do not add anything to the _grandfatheredBinaries set above.
1049
+ Future <void > verifyNoBinaries (String workingDirectory, { Set <Hash256 > legacyBinaries }) async {
1050
+ // Please do not add anything to the _legacyBinaries set above.
1051
1051
// We have a policy of not checking in binaries into this repository.
1052
1052
// If you are adding/changing template images, use the flutter_template_images
1053
1053
// package and a .img.tmpl placeholder instead.
1054
1054
// If you have other binaries to add, please consult Hixie for advice.
1055
1055
assert (
1056
- _grandfatheredBinaries
1056
+ _legacyBinaries
1057
1057
.expand <int >((Hash256 hash) => < int > [hash.a, hash.b, hash.c, hash.d])
1058
1058
.reduce ((int value, int element) => value ^ element) == 0x606B51C908B40BFA // Please do not modify this line.
1059
1059
);
1060
- grandfatheredBinaries ?? = _grandfatheredBinaries ;
1060
+ legacyBinaries ?? = _legacyBinaries ;
1061
1061
if (! Platform .isWindows) { // TODO(ianh): Port this to Windows
1062
1062
final EvalResult evalResult = await _evalCommand (
1063
1063
'git' , < String > ['ls-files' , '-z' ],
@@ -1087,7 +1087,7 @@ Future<void> verifyNoBinaries(String workingDirectory, { Set<Hash256> grandfathe
1087
1087
utf8.decode (bytes);
1088
1088
} on FormatException catch (error) {
1089
1089
final Digest digest = sha256.convert (bytes);
1090
- if (! grandfatheredBinaries .contains (Hash256 .fromDigest (digest)))
1090
+ if (! legacyBinaries .contains (Hash256 .fromDigest (digest)))
1091
1091
problems.add ('${file .path }:${error .offset }: file is not valid UTF-8' );
1092
1092
}
1093
1093
}
0 commit comments