You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dartDefineConfigJsonMap:<String, Object>{'DART_DEFINES':'Define a variable, but it occupies the variable name of the system'},
308
-
dartObfuscation:true,
309
-
);
310
-
buildInfo.toEnvironmentConfig();
311
-
expect(testLogger.warningText, contains('The key: [DART_DEFINES] already exists, you cannot use environment variables that have been used by the system'));
312
-
});
313
-
314
-
testUsingContext('toEnvironmentConfig repeated variable with DART_DEFINES not set', () async {
315
-
// Simulate operation flutterCommand.getBuildInfo with `dart-define-from-file` set dartDefines
dartDefines:<String>['DART_DEFINES=Define a variable, but it occupies the variable name of the system'],
319
-
trackWidgetCreation:true,
320
-
dartDefineConfigJsonMap:<String, Object>{ 'DART_DEFINES':'Define a variable, but it occupies the variable name of the system'},
321
-
dartObfuscation:true,
322
-
);
323
-
buildInfo.toEnvironmentConfig();
324
-
expect(testLogger.warningText, contains('The key: [DART_DEFINES] already exists, you cannot use environment variables that have been used by the system'));
expect(testLogger.warningText, contains('The key: [applicationId] already exists, you cannot use gradle variables that have been used by the system'));
0 commit comments