From cbdf0034629f52dac2b037215195d49b1eede250 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Jan 2026 19:13:09 +0530 Subject: [PATCH] chore(deps): bump kotlin from 2.2.21 to 2.3.0 (#648) * chore(deps): bump kotlin from 2.2.21 to 2.3.0 Bumps `kotlin` from 2.2.21 to 2.3.0. Updates `org.jetbrains.kotlin.android` from 2.2.21 to 2.3.0 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md) - [Commits](https://github.com/JetBrains/kotlin/compare/v2.2.21...v2.3.0) Updates `org.jetbrains.kotlin.plugin.serialization` from 2.2.21 to 2.3.0 - [Release notes](https://github.com/JetBrains/kotlin/releases) - [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md) - [Commits](https://github.com/JetBrains/kotlin/compare/v2.2.21...v2.3.0) --- updated-dependencies: - dependency-name: org.jetbrains.kotlin.android dependency-version: 2.3.0 dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.jetbrains.kotlin.plugin.serialization dependency-version: 2.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix: specify type explicitly --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Naveen Singh --- .../org/fossify/messages/helpers/AttachmentPreviews.kt | 7 ++++--- gradle/libs.versions.toml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/org/fossify/messages/helpers/AttachmentPreviews.kt b/app/src/main/kotlin/org/fossify/messages/helpers/AttachmentPreviews.kt index a2267fee..41d680f7 100644 --- a/app/src/main/kotlin/org/fossify/messages/helpers/AttachmentPreviews.kt +++ b/app/src/main/kotlin/org/fossify/messages/helpers/AttachmentPreviews.kt @@ -2,6 +2,7 @@ package org.fossify.messages.helpers import android.app.Activity import android.net.Uri +import android.view.View import org.fossify.commons.extensions.* import org.fossify.commons.helpers.SimpleContactsHelper import org.fossify.commons.helpers.ensureBackgroundThread @@ -51,7 +52,7 @@ fun ItemAttachmentDocumentBinding.setupDocumentPreview( fileSize.beVisible() fileSize.text = size.formatSize() } - } catch (e: Exception) { + } catch (_: Exception) { root.post { fileSize.beGone() } @@ -116,7 +117,7 @@ fun ItemAttachmentVcardBinding.setupVCardPreview( vcardTitle.setTextColor(textColor) vcardSubtitle.setTextColor(textColor) - arrayOf(vcardPhoto, vcardTitle, vcardSubtitle, viewContactDetails).forEach { + arrayOf(vcardPhoto, vcardTitle, vcardSubtitle, viewContactDetails).forEach { it.beGone() } @@ -135,7 +136,7 @@ fun ItemAttachmentVcardBinding.setupVCardPreview( null } - arrayOf(vcardPhoto, vcardTitle).forEach { + arrayOf(vcardPhoto, vcardTitle).forEach { it.beVisible() } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index f6d712d8..ef6af975 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] #jetbrains -kotlin = "2.2.21" +kotlin = "2.3.0" kotlinxSerializationJson = "1.9.0" #KSP ksp = "2.3.4"