update kotlin and ksp. fix gradle deprecation warnings

This commit is contained in:
greenart7c3
2024-08-19 08:14:32 -03:00
parent b39410432a
commit 4e75ec46fc
3 changed files with 19 additions and 12 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="KotlinJpsPluginSettings">
<option name="version" value="2.0.0" />
<option name="version" value="2.0.10" />
</component>
</project>
</project>
+15 -8
View File
@@ -15,27 +15,34 @@ tasks.register('installGitHook', Copy) {
from new File(rootProject.rootDir, 'git-hooks/pre-commit')
from new File(rootProject.rootDir, 'git-hooks/pre-push')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0777
filePermissions {
unix(0b111_111_111)
}
}
tasks.getByPath(':app:preBuild').dependsOn installGitHook
project(":app") {
tasks.matching { it.name == "preBuild" }.configureEach {
dependsOn(rootProject.tasks.named("installGitHook"))
}
}
subprojects {
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
var buildDirPath = project.layout.buildDirectory.get().asFile.absolutePath
if (project.findProperty("composeCompilerReports") == "true") {
freeCompilerArgs += [
freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
project.buildDir.absolutePath + "/compose_compiler"
]
buildDirPath + "/compose_compiler"
)
}
if (project.findProperty("composeCompilerMetrics") == "true") {
freeCompilerArgs += [
freeCompilerArgs += listOf(
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
project.buildDir.absolutePath + "/compose_compiler"
]
buildDirPath + "/compose_compiler"
)
}
}
}
+2 -2
View File
@@ -24,12 +24,12 @@ roomKtx = "2.6.1"
securityCryptoKtx = "1.1.0-alpha06"
zxingAndroidEmbedded = "4.3.0"
okhttp = "5.0.0-alpha.14"
kotlin = "2.0.0"
kotlin = "2.0.10"
workRuntimeKtx = "2.9.1"
agp = "8.5.2"
ktlint = "12.1.1"
gms = "4.4.2"
ksp = "2.0.0-1.0.22"
ksp = "2.0.10-1.0.24"
[libraries]
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" }