mirror of
https://github.com/flutter/flutter
synced 2024-10-02 22:44:13 +00:00
Add more debugging info to android_plugin_example_app_build_test (#101685)
This commit is contained in:
parent
77756d3d46
commit
85aac37ccf
|
@ -91,11 +91,14 @@ void main() {
|
|||
}
|
||||
|
||||
// Clean
|
||||
processManager.runSync(<String>[
|
||||
result = processManager.runSync(<String>[
|
||||
flutterBin,
|
||||
...getLocalEngineArguments(),
|
||||
'clean',
|
||||
], workingDirectory: exampleAppDir.path);
|
||||
if (result.exitCode != 0) {
|
||||
throw Exception('flutter clean failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}');
|
||||
}
|
||||
|
||||
// Remove Gradle wrapper
|
||||
fileSystem
|
||||
|
@ -115,13 +118,16 @@ android.enableJetifier=true
|
|||
android.enableR8=true''');
|
||||
|
||||
// Run flutter build apk using AGP 3.3.0
|
||||
processManager.runSync(<String>[
|
||||
result = processManager.runSync(<String>[
|
||||
flutterBin,
|
||||
...getLocalEngineArguments(),
|
||||
'build',
|
||||
'apk',
|
||||
'--target-platform=android-arm',
|
||||
], workingDirectory: exampleAppDir.path);
|
||||
if (result.exitCode != 0) {
|
||||
throw Exception('flutter build failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}');
|
||||
}
|
||||
expect(exampleApk, exists);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue