Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
647c57da
Unverified
Commit
647c57da
authored
Apr 26, 2018
by
Devon Carew
Committed by
GitHub
Apr 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update the build complete message to not include APK sizes for debug builds (#16931)
parent
38d5d461
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
gradle.dart
packages/flutter_tools/lib/src/android/gradle.dart
+8
-3
No files found.
packages/flutter_tools/lib/src/android/gradle.dart
View file @
647c57da
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment