osfans / trime

同文安卓輸入法平臺3.x/Android-rime/Rime Input Method Engine for Android
http://osfans.github.io/trime/
GNU General Public License v3.0
3.18k stars 377 forks source link

Fix deprecated function usage #1489

Closed Bambooin closed 1 month ago

Bambooin commented 1 month ago

Pull request

Issue tracker

Fixes will automatically close the related issues

Fixes # Fixes #

Feature

Describe features of this pull request

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

Code of conduct

Code style

Build pass

Manually test

Code Review

  1. No wildcards import
  2. Manual build and test pass
  3. GitHub Action CI pass
  4. At least one contributor review and approve
  5. Merged clean without conflicts
  6. PR will be merged by rebase upstream base

Daily build

Login and download artifact at https://github.com/osfans/trime/actions

Additional Info