FlutterEngineGroup memory test: added precache before executing gradle. (#75793)

This commit is contained in:
gaaclarke 2021-02-10 17:16:04 -08:00 committed by GitHub
parent 2ed2857301
commit eefe4a7650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,8 @@ Future<TaskResult> _doTest() async {
final String gradlewExecutable =
Platform.isWindows ? '.\\$gradlew' : './$gradlew';
final String flutterPath = path.join(flutterDirectory, 'bin', 'flutter');
await utils.eval(flutterPath, <String>['precache', '--android'],
workingDirectory: modulePath);
await utils.eval(flutterPath, <String>['pub', 'get'],
workingDirectory: modulePath);
_copyGradleFromModule(modulePath, androidPath);