Skip to content

Commit

Permalink
refactor: replace capitalized() with replaceFirstChar()
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvks19 committed Dec 14, 2024
1 parent 45c4d1a commit babcc2b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 319 deletions.
318 changes: 0 additions & 318 deletions .idea/other.xml

This file was deleted.

17 changes: 17 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AndroidIDEAssetsPlugin : Plugin<Project> {

androidComponentsExtension.onVariants { variant ->

val variantNameCapitalized = variant.name.capitalized()
val variantNameCapitalized = variant.name.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }

variant.sources.jniLibs?.addGeneratedSourceDirectory(setupAapt2TaskTaskProvider,
SetupAapt2Task::outputDirectory)
Expand Down

0 comments on commit babcc2b

Please sign in to comment.