Skip to content

Commit

Permalink
build: upgrade kotlin to 2 and more
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan committed May 24, 2024
1 parent 88ed36a commit d0ecf5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/osfans/trime/ime/text/Candidate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class Candidate(context: Context?, attrs: AttributeSet?) : View(context, attrs)
Paint().apply {
color = ColorManager.getColor("candidate_separator_color")!!
}
private val candidateFont = FontManager.getTypeface("candidate_font")
private val symbolFont = FontManager.getTypeface("symbol_font")
private val commentFont = FontManager.getTypeface("comment_font")
private val candidatePaint =
Paint().apply {
typeface = candidateFont
Expand All @@ -76,9 +79,6 @@ class Candidate(context: Context?, attrs: AttributeSet?) : View(context, attrs)
isAntiAlias = true
strokeWidth = 0f
}
private val candidateFont = FontManager.getTypeface("candidate_font")
private val symbolFont = FontManager.getTypeface("symbol_font")
private val commentFont = FontManager.getTypeface("comment_font")
private val candidateTextColor = ColorManager.getColor("candidate_text_color")!!
private val hilitedCandidateTextColor = ColorManager.getColor("hilited_candidate_text_color")!!
private val commentTextColor = ColorManager.getColor("comment_text_color")!!
Expand Down
21 changes: 10 additions & 11 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
[versions]
androidGradlePlugin = "8.3.2"
kotlin = "1.9.20"
ksp = "1.9.20-1.0.14"
navigation = "2.7.5"
kotlin = "2.0.0"
ksp = "2.0.0-1.0.21"
navigation = "2.7.7"
room = "2.6.1"
splitties = "3.0.0"
aboutlibraries = "10.9.2"
aboutlibraries = "11.1.3"
kotest = "5.8.0"
kotlin-inject = "0.6.3"

[libraries]
android-gradlePlugin = { group = "com.android.tools.build", name = "gradle", version.ref = "androidGradlePlugin" }
kotlin-gradlePlugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlin" }
kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version = "1.7.3" }
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version = "1.6.1" }
androidx-activity = { module = "androidx.activity:activity-ktx", version = "1.8.1" }
kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version = "1.8.0" }
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version = "1.6.3" }
androidx-activity = { module = "androidx.activity:activity-ktx", version = "1.9.0" }
androidx-appcompat = { module = "androidx.appcompat:appcompat", version = "1.6.1" }
androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version = "2.1.4" }
androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.12.0" }
androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.13.1" }
androidx-navigation-fragment = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "navigation" }
androidx-navigation-ui = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "navigation" }
androidx-preference = { module = "androidx.preference:preference-ktx", version = "1.2.1" }
androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version = "1.3.2" }
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
androidx-viewpager2 = { module = "androidx.viewpager2:viewpager2", version = "1.1.0-beta02" }
androidx-viewpager2 = { module = "androidx.viewpager2:viewpager2", version = "1.1.0" }
flexbox = { module = "com.google.android.flexbox:flexbox", version = "3.0.0" }
kaml = { module = "com.charleskorn.kaml:kaml", version = "0.56.0" }
timber = { module = "com.jakewharton.timber:timber", version = "5.0.1" }
Expand All @@ -41,9 +41,8 @@ splitties-views-dsl-coordinatorlayout = { module = "com.louiscad.splitties:split
splitties-views-dsl-recyclerview = { module = "com.louiscad.splitties:splitties-views-dsl-recyclerview", version.ref = "splitties" }
splitties-views-recyclerview = { module = "com.louiscad.splitties:splitties-views-recyclerview", version.ref = "splitties" }
aboutlibraries-core = { module = "com.mikepenz:aboutlibraries-core", version.ref = "aboutlibraries" }
aboutlibraries-plugin = { module = "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin", version.ref = "aboutlibraries" }
junit = { module = "junit:junit", version = "4.13.2" }
kotlinpoet-ksp = { module = "com.squareup:kotlinpoet-ksp", version = "1.14.2" }
kotlinpoet-ksp = { module = "com.squareup:kotlinpoet-ksp", version = "1.16.0" }
ksp = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" }
kotest-runner-junit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
Expand Down

0 comments on commit d0ecf5c

Please sign in to comment.