From fe54ed0bd9e6ad23cc6b4835a13f7d7f2f730072 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 17 Mar 2026 17:21:55 +0000 Subject: [PATCH 1/2] Update dependency com.facebook:ktfmt to v0.62 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 332b8185..fe231957 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -26,4 +26,4 @@ mavenPublishPlugin = "com.vanniktech:gradle-maven-publish-plugin:0.36.0" spotlessPlugin = "com.diffplug.spotless:spotless-plugin-gradle:8.3.0" buildConfigPlugin = "com.github.gmazzo.buildconfig:plugin:6.0.9" pokoPlugin = "dev.drewhamilton.poko:dev.drewhamilton.poko.gradle.plugin:0.22.0" -ktfmt = "com.facebook:ktfmt:0.61" +ktfmt = "com.facebook:ktfmt:0.62" From a23f7b5df81d679b4e27946b1d9a1b8e437f9db7 Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Tue, 17 Mar 2026 15:36:12 -0400 Subject: [PATCH 2/2] Reformat --- .../diffuse/diff/ArchiveFilesDiff.kt | 93 +++++++++---------- 1 file changed, 45 insertions(+), 48 deletions(-) diff --git a/reports/src/main/kotlin/com/jakewharton/diffuse/diff/ArchiveFilesDiff.kt b/reports/src/main/kotlin/com/jakewharton/diffuse/diff/ArchiveFilesDiff.kt index 98b3ef1e..a574787a 100644 --- a/reports/src/main/kotlin/com/jakewharton/diffuse/diff/ArchiveFilesDiff.kt +++ b/reports/src/main/kotlin/com/jakewharton/diffuse/diff/ArchiveFilesDiff.kt @@ -35,59 +35,56 @@ internal class ArchiveFilesDiff( } val changes: List = run { - val added = - newFiles.mapNotNull { (path, newFile) -> - if (path !in oldFiles) { - Change( - path, - newFile.size, - newFile.size, - newFile.uncompressedSize, - newFile.uncompressedSize, - Change.Type.Added, - ) - } else { - null - } + val added = newFiles.mapNotNull { (path, newFile) -> + if (path !in oldFiles) { + Change( + path, + newFile.size, + newFile.size, + newFile.uncompressedSize, + newFile.uncompressedSize, + Change.Type.Added, + ) + } else { + null } - val removed = - oldFiles.mapNotNull { (path, oldFile) -> - if (path !in newFiles) { - Change( - path, - 0.binaryBytes, - -oldFile.size, - 0.binaryBytes, - -oldFile.uncompressedSize, - Change.Type.Removed, - ) - } else { - null - } + } + val removed = oldFiles.mapNotNull { (path, oldFile) -> + if (path !in newFiles) { + Change( + path, + 0.binaryBytes, + -oldFile.size, + 0.binaryBytes, + -oldFile.uncompressedSize, + Change.Type.Removed, + ) + } else { + null } - val changed = - oldFiles.mapNotNull { (path, oldFile) -> - val newFile = - newFiles[path]?.let { - if (includeCompressed) { - it - } else { - it.copy(size = oldFile.size, isCompressed = oldFile.isCompressed) - } + } + val changed = oldFiles.mapNotNull { (path, oldFile) -> + val newFile = + newFiles[path]?.let { + if (includeCompressed) { + it + } else { + it.copy(size = oldFile.size, isCompressed = oldFile.isCompressed) } - if (newFile != null && newFile != oldFile) { - Change( - path, - newFile.size, - newFile.size - oldFile.size, - newFile.uncompressedSize, - newFile.uncompressedSize - oldFile.uncompressedSize, - Change.Type.Changed, - ) - } else { - null } + if (newFile != null && newFile != oldFile) { + Change( + path, + newFile.size, + newFile.size - oldFile.size, + newFile.uncompressedSize, + newFile.uncompressedSize - oldFile.uncompressedSize, + Change.Type.Changed, + ) + } else { + null } + } (added + removed + changed).sortedByDescending { it.sizeDiff.absoluteValue } }