[flutter_tools] Allow flutter build aar to know the null safety mode ahead of time (#80000)

This commit is contained in:
Jonah Williams
2021-04-08 15:22:55 -07:00
committed by GitHub
parent a3e66b3967
commit ac770423ec
3 changed files with 15 additions and 7 deletions

View File

@@ -185,6 +185,7 @@ void main() {
expect(buildInfo.splitDebugInfoPath, '/project-name/v1.2.3/');
expect(buildInfo.dartObfuscation, isTrue);
expect(buildInfo.dartDefines.contains('foo=bar'), isTrue);
expect(buildInfo.nullSafetyMode, NullSafetyMode.sound);
}, overrides: <Type, Generator>{
AndroidBuilder: () => fakeAndroidBuilder,
});