Unverified Commit 85aac37c authored by Daco Harkes's avatar Daco Harkes Committed by GitHub

Add more debugging info to android_plugin_example_app_build_test (#101685)

parent 77756d3d
...@@ -91,11 +91,14 @@ void main() { ...@@ -91,11 +91,14 @@ void main() {
} }
// Clean // Clean
processManager.runSync(<String>[ result = processManager.runSync(<String>[
flutterBin, flutterBin,
...getLocalEngineArguments(), ...getLocalEngineArguments(),
'clean', 'clean',
], workingDirectory: exampleAppDir.path); ], workingDirectory: exampleAppDir.path);
if (result.exitCode != 0) {
throw Exception('flutter clean failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}');
}
// Remove Gradle wrapper // Remove Gradle wrapper
fileSystem fileSystem
...@@ -115,13 +118,16 @@ android.enableJetifier=true ...@@ -115,13 +118,16 @@ android.enableJetifier=true
android.enableR8=true'''); android.enableR8=true''');
// Run flutter build apk using AGP 3.3.0 // Run flutter build apk using AGP 3.3.0
processManager.runSync(<String>[ result = processManager.runSync(<String>[
flutterBin, flutterBin,
...getLocalEngineArguments(), ...getLocalEngineArguments(),
'build', 'build',
'apk', 'apk',
'--target-platform=android-arm', '--target-platform=android-arm',
], workingDirectory: exampleAppDir.path); ], workingDirectory: exampleAppDir.path);
if (result.exitCode != 0) {
throw Exception('flutter build failed: ${result.exitCode}\n${result.stderr}\n${result.stdout}');
}
expect(exampleApk, exists); expect(exampleApk, exists);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment