Skip to content

Commit

Permalink
[#578] Replace capitalize deprecated function by replaceFirstChar
Browse files Browse the repository at this point in the history
  • Loading branch information
paulinea committed Aug 7, 2023
1 parent 85f3566 commit b744293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/firebase.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal val Project.appDistributionVariants: List<String>
* An array containing tasks to execute for Firebase App Distribution deployment
*/
internal val appDistributionTasks: List<Task>
get() = appDistributionVariants.map { tasks["appDistributionUpload${it.capitalize()}"] }
get() = appDistributionVariants.map { variant -> tasks["appDistributionUpload${variant.replaceFirstChar { it.uppercaseChar() }}"] }

/**
* The git tag prefix for Firebase App Distribution uploads
Expand All @@ -44,7 +44,7 @@ internal val Project.gitTagPrefix: String
tasks.register<DefaultTask>("appDistributionUpload") {
dependsOn(
// Assemble and generate release notes first
*appDistributionVariants.map { tasks["assemble${it.capitalize()}"] }.toTypedArray(),
*appDistributionVariants.map { variant -> tasks["assemble${variant.replaceFirstChar { it.uppercaseChar() }}"] }.toTypedArray(),
tasks["generateAppDistributionReleaseNotes"]
)

Expand Down

0 comments on commit b744293

Please sign in to comment.