Unverified Commit 647c57da authored by Devon Carew's avatar Devon Carew Committed by GitHub

update the build complete message to not include APK sizes for debug builds (#16931)

parent 38d5d461
......@@ -330,8 +330,7 @@ Future<Null> _buildGradleProjectV1(String gradle) async {
if (exitCode != 0)
throwToolExit('Gradle build failed: $exitCode', exitCode: exitCode);
final File apkFile = fs.file(gradleAppOutV1);
printStatus('Built $gradleAppOutV1 (${getSizeAsMB(apkFile.lengthSync())}).');
printStatus('Built $gradleAppOutV1.');
}
Future<Null> _buildGradleProjectV2(String gradle, BuildInfo buildInfo, String target) async {
......@@ -409,7 +408,13 @@ Future<Null> _buildGradleProjectV2(String gradle, BuildInfo buildInfo, String ta
final File apkShaFile = fs.file(fs.path.join(project.apkDirectory, 'app.apk.sha1'));
apkShaFile.writeAsStringSync(calculateSha(apkFile));
printStatus('Built ${fs.path.relative(apkFile.path)} (${getSizeAsMB(apkFile.lengthSync())}).');
String appSize;
if (buildInfo.mode == BuildMode.debug) {
appSize = '';
} else {
appSize = ' (${getSizeAsMB(apkFile.lengthSync())})';
}
printStatus('Built ${fs.path.relative(apkFile.path)}$appSize.');
}
File _findApkFile(GradleProject project, BuildInfo buildInfo) {
......
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