Update kotlin to 2.1

This commit is contained in:
Koitharu
2025-02-11 14:23:18 +02:00
parent 5f0514638a
commit 19e8e3a618
6 changed files with 11 additions and 8 deletions

3
.idea/gradle.xml generated
View File

@@ -6,14 +6,13 @@
<GradleProjectSettings>
<option name="testRunner" value="CHOOSE_PER_TEST" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
<option name="gradleJvm" value="jbr-21" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveExternalAnnotations" value="false" />
</GradleProjectSettings>
</option>
</component>

View File

@@ -7,6 +7,7 @@ plugins {
id 'com.google.devtools.ksp'
id 'kotlin-parcelize'
id 'dagger.hilt.android.plugin'
id 'androidx.room'
}
android {
@@ -24,7 +25,6 @@ android {
testInstrumentationRunner 'org.koitharu.kotatsu.HiltTestRunner'
ksp {
arg('room.generateKotlin', 'true')
arg('room.schemaLocation', "$projectDir/schemas")
}
androidResources {
generateLocaleConfig true
@@ -77,6 +77,9 @@ android {
'-opt-in=coil3.annotation.InternalCoilApi',
]
}
room {
schemaDirectory "$projectDir/schemas"
}
lint {
abortOnError true
disable 'MissingTranslation', 'PrivateResource', 'SetJavaScriptEnabled', 'SimpleDateFormat'

View File

@@ -4,7 +4,6 @@ import android.content.Context
import androidx.annotation.StringRes
import org.koitharu.kotatsu.core.ui.model.DateTimeAgo
@ExposedCopyVisibility
data class ListHeader private constructor(
private val textRaw: Any,
@StringRes val buttonTextRes: Int,

View File

@@ -3,4 +3,5 @@ plugins {
alias(libs.plugins.kotlin) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.room) apply false
}

View File

@@ -18,4 +18,4 @@ kotlin.code.style=official
org.gradle.jvmargs=-Xmx1536M -Dkotlin.daemon.jvm.options\="-Xmx1536M"
android.enableR8.fullMode=true
android.nonFinalResIds=false
kapt.use.k2=true
kapt.use.k2=false

View File

@@ -5,7 +5,7 @@ adapterdelegates = "4.3.2"
appcompat = "1.7.0"
avifDecoder = "1.1.1.14d8e3c4"
biometric = "1.2.0-alpha05"
coil = "3.0.4"
coil = "3.1.0"
collections = "1.4.5"
#noinspection GradleDependency - 2.5.3 cause crashes
conscrypt = "2.5.2"
@@ -22,8 +22,8 @@ hilt = "1.2.0"
json = "20250107"
junit = "4.13.2"
junitKtx = "1.2.1"
kotlin = "2.0.21"
ksp = "2.0.21-1.0.28"
kotlin = "2.1.10"
ksp = "2.1.10-1.0.29"
leakcanary = "3.0-alpha-8"
lifecycle = "2.8.7"
markwon = "4.6.2"
@@ -113,3 +113,4 @@ android-application = { id = "com.android.application", version.ref = "gradle" }
kotlin = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "dagger" }
room = { id = "androidx.room", version.ref = "room" }