TP-55575 update compose bom version (#311)

This commit is contained in:
Hitesh Kumar
2024-02-07 17:04:40 +05:30
committed by GitHub
parent 06e8ffc23b
commit 451ec1902a
3 changed files with 6 additions and 3 deletions

View File

@@ -16,8 +16,9 @@ androidx-test-espresso = "3.5.0"
androidx-test-junit = "1.1.5"
androidx-uiautomator = "2.2.0"
coil = "2.5.0"
compose-bom = "2023.10.01"
compose-bom = "2024.01.00"
compose-lib = "1.5.8"
foundation = "1.7.0-alpha01"
gson = "2.10.1"
firebase-bom = "32.7.0"
firebase-crashlytics = "2.9.9"
@@ -58,6 +59,7 @@ androidx-constraintlayoutCompose = { module = "androidx.constraintlayout:constra
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidx-core-ktx" }
androidx-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "foundation" }
androidx-hilt-compiler = { module = "androidx.hilt:hilt-compiler", version.ref = "androidx-hilt" }
androidx-hilt-navigation-compose = { module = "androidx.hilt:hilt-navigation-compose", version.ref = "androidx-hilt" }

View File

@@ -98,6 +98,7 @@ dependencies {
implementation libs.androidx.core.ktx
implementation libs.androidx.hilt.navigation.compose
implementation libs.androidx.lifecycle.runtime.ktx
implementation libs.androidx.foundation
implementation libs.gson

View File

@@ -634,7 +634,7 @@ fun String?.toDoubleWithSafe(): Double {
}
}
fun getTextAlignment(textAlignment: String?): TextAlign? {
fun getTextAlignment(textAlignment: String?): TextAlign {
return when (textAlignment) {
TextAlign.Start.toString() -> TextAlign.Start
TextAlign.End.toString() -> TextAlign.End
@@ -642,7 +642,7 @@ fun getTextAlignment(textAlignment: String?): TextAlign? {
TextAlign.Left.toString() -> TextAlign.Left
TextAlign.Right.toString() -> TextAlign.Right
TextAlign.Justify.toString() -> TextAlign.Justify
else -> null
else -> TextAlign.Unspecified
}
}