Skip to content

Commit

Permalink
build: fix deprecated function usage
Browse files Browse the repository at this point in the history
app/build.gradle.kts:113:28: 'capitalized(): String' is deprecated. This was never intended as a public API.

https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/capitalize.html
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/replace-first-char.html
  • Loading branch information
Bambooin committed Oct 12, 2024
1 parent deedd1e commit efe0d77
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

@file:Suppress("UnstableApiUsage")

import org.gradle.configurationcache.extensions.capitalized

plugins {
id("com.osfans.trime.native-app-convention")
id("com.osfans.trime.data-checksums")
Expand Down Expand Up @@ -110,7 +108,7 @@ ksp {
}

android.applicationVariants.all {
val variantName = name.capitalized()
val variantName = name.replaceFirstChar { it.uppercase() }
tasks.findByName("generateDataChecksums")?.also {
tasks.getByName("merge${variantName}Assets").dependsOn(it)
}
Expand Down

0 comments on commit efe0d77

Please sign in to comment.