diff --git a/app/src/main/java/org/slf4j/impl/StaticLoggerBinder.kt b/app/src/main/java/org/slf4j/impl/StaticLoggerBinder.kt index 476ac05eb9..1b35897568 100644 --- a/app/src/main/java/org/slf4j/impl/StaticLoggerBinder.kt +++ b/app/src/main/java/org/slf4j/impl/StaticLoggerBinder.kt @@ -13,7 +13,7 @@ import org.slf4j.spi.LoggerFactoryBinder class StaticLoggerBinder : LoggerFactoryBinder { private val loggerFactory: ILoggerFactory = LogcatLoggerFactory() - private val loggerFactoryClassStr = LogcatLoggerFactory::javaClass.name + private val loggerFactoryClassStr = LogcatLoggerFactory::class.java.name override fun getLoggerFactory(): ILoggerFactory { return loggerFactory diff --git a/build-logic/src/main/kotlin/app/passwordstore/gradle/LintConfig.kt b/build-logic/src/main/kotlin/app/passwordstore/gradle/LintConfig.kt index 68a2fd1a49..628f77c175 100644 --- a/build-logic/src/main/kotlin/app/passwordstore/gradle/LintConfig.kt +++ b/build-logic/src/main/kotlin/app/passwordstore/gradle/LintConfig.kt @@ -41,6 +41,10 @@ object LintConfig { disable += "ObsoleteLintCustomCheck" // Third-party libraries may reference packages not in Android disable += "InvalidPackage" + if (isJVM) { + // KSP-generated Dagger/Hilt code lacks nullability annotations + disable += "UnknownNullness" + } if (!isJVM) { // Enable compose-lint-checks' Material 2 detector enable += "ComposeM2Api" diff --git a/format/common/build.gradle.kts b/format/common/build.gradle.kts index 3c31a11bab..2b97e87f8c 100644 --- a/format/common/build.gradle.kts +++ b/format/common/build.gradle.kts @@ -2,7 +2,10 @@ * Copyright © 2014-2026 The Android Password Store Authors. All Rights Reserved. * SPDX-License-Identifier: GPL-3.0-only */ -plugins { id("com.github.android-password-store.kotlin-jvm-library") } +plugins { + id("com.github.android-password-store.kotlin-jvm-library") + alias(libs.plugins.ksp) +} dependencies { api(libs.kotlinx.coroutines.core) @@ -10,6 +13,7 @@ dependencies { implementation(projects.coroutineUtils) implementation(libs.androidx.annotation) implementation(libs.dagger.hilt.core) + ksp(libs.dagger.hilt.compiler) implementation(libs.thirdparty.commons.codec) implementation(libs.thirdparty.uri) testImplementation(libs.bundles.testDependencies) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 13e719721b..cd3b4855d9 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,8 +4,8 @@ androidxActivity = "1.13.0" bouncycastle = "1.87" coroutines = "1.11.0" flowbinding = "1.2.0" -hilt = "2.60.1" -kotlin = "2.4.21" +hilt = "2.61" +kotlin = "2.5.0" ksp = "2.3.12" kotlinResult = "2.3.1" lifecycle = "2.11.1" @@ -45,7 +45,7 @@ build-r8 = "com.android.tools:r8:9.5.34" build-semver = "com.github.zafarkhaja:java-semver:0.10.2" build-spotless = "com.diffplug.spotless:spotless-plugin-gradle:8.12.0" build-vcu = "nl.littlerobots.version-catalog-update:nl.littlerobots.version-catalog-update.gradle.plugin:1.1.2" -compose-bom = "androidx.compose:compose-bom:2026.11.01" +compose-bom = "androidx.compose:compose-bom:2026.12.00" compose-foundation-core = { module = "androidx.compose.foundation:foundation" } compose-foundation-layout = { module = "androidx.compose.foundation:foundation-layout" } compose-material3 = { module = "androidx.compose.material3:material3" }