File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
app-sizer/src/main/kotlin/com/grab/sizer Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,8 @@ internal class BasicApkAnalyzer @Inject constructor(
6363 val assetDownloadSize = flatMap { it.assets }.sumOf { it.downloadSize }
6464 val otherDownloadSize = flatMap { it.others }.sumOf { it.downloadSize }
6565 val dexDownloadFile = flatMap { it.dexes }.sumOf { it.downloadSize }
66- val classDownloadSize = flatMap { it.dexes }.flatMap { it.classes }.sumOf { it.downloadSize }
6766 val total =
68- resourceDownloadSize + nativeLibDownloadSize + assetDownloadSize + otherDownloadSize + classDownloadSize
67+ resourceDownloadSize + nativeLibDownloadSize + assetDownloadSize + otherDownloadSize + dexDownloadFile
6968
7069 return listOf (
7170 createRow(
Original file line number Diff line number Diff line change @@ -36,8 +36,9 @@ internal fun Set<ApkFileInfo>.apksSizeReport(): ReportItem {
3636 val assetDownloadSize = flatMap { it.assets }.sumOf { it.downloadSize }
3737 val otherDownloadSize = flatMap { it.others }.sumOf { it.downloadSize }
3838 val classDownloadSize = flatMap { it.dexes }.flatMap { it.classes }.sumOf { it.downloadSize }
39+ val dexDownloadSize = flatMap { it.dexes }.sumOf { it.downloadSize }
3940 val total =
40- resourceDownloadSize + nativeLibDownloadSize + assetDownloadSize + otherDownloadSize + classDownloadSize
41+ resourceDownloadSize + nativeLibDownloadSize + assetDownloadSize + otherDownloadSize + dexDownloadSize
4142
4243 return ReportItem (
4344 id = " apk" ,
@@ -57,9 +58,9 @@ internal fun Set<ApkFileInfo>.toReportField(): List<Field> {
5758 val nativeLibDownloadSize = flatMap { it.nativeLibs }.sumOf { it.downloadSize }
5859 val assetDownloadSize = flatMap { it.assets }.sumOf { it.downloadSize }
5960 val otherDownloadSize = flatMap { it.others }.sumOf { it.downloadSize }
60- val classDownloadSize = flatMap { it.dexes }.flatMap { it.classes }.sumOf { it.downloadSize }
61+ val dexDownloadSize = flatMap { it.dexes }.sumOf { it.downloadSize }
6162 val total =
62- resourceDownloadSize + nativeLibDownloadSize + assetDownloadSize + otherDownloadSize + classDownloadSize
63+ resourceDownloadSize + nativeLibDownloadSize + assetDownloadSize + otherDownloadSize + dexDownloadSize
6364 return listOf (
6465 TagField (
6566 name = FIELD_KEY_CONTRIBUTOR ,
You can’t perform that action at this time.
0 commit comments