[flutter_tools] add flag for sound-null-safety, unify with experiments (#58533)
Also combines experiments into extraGenSnapshot/ExtraFrontEndOptions. Allows providing --no-sound-null-safety to allow out of order migration and running.
This commit is contained in:
@@ -310,10 +310,10 @@ Future<void> buildGradleApp({
|
||||
command.add('-Ptrack-widget-creation=${buildInfo.trackWidgetCreation}');
|
||||
|
||||
if (buildInfo.extraFrontEndOptions != null) {
|
||||
command.add('-Pextra-front-end-options=${buildInfo.extraFrontEndOptions.join(',')}');
|
||||
command.add('-Pextra-front-end-options=${encodeDartDefines(buildInfo.extraFrontEndOptions)}');
|
||||
}
|
||||
if (buildInfo.extraGenSnapshotOptions != null) {
|
||||
command.add('-Pextra-gen-snapshot-options=${buildInfo.extraGenSnapshotOptions.join(',')}');
|
||||
command.add('-Pextra-gen-snapshot-options=${encodeDartDefines(buildInfo.extraGenSnapshotOptions)}');
|
||||
}
|
||||
if (buildInfo.fileSystemRoots != null && buildInfo.fileSystemRoots.isNotEmpty) {
|
||||
command.add('-Pfilesystem-roots=${buildInfo.fileSystemRoots.join('|')}');
|
||||
|
||||
Reference in New Issue
Block a user