TP-57277 | Mehul | Revert compose bom changes (#331)

This commit is contained in:
Mehul Garg
2024-02-15 16:31:21 +05:30
committed by GitHub
parent 027d702a36
commit d757482059
3 changed files with 3 additions and 6 deletions

View File

@@ -16,9 +16,8 @@ androidx-test-espresso = "3.5.0"
androidx-test-junit = "1.1.5"
androidx-uiautomator = "2.2.0"
coil = "2.5.0"
compose-bom = "2024.01.00"
compose-bom = "2023.10.01"
compose-lib = "1.5.8"
foundation = "1.7.0-alpha01"
gson = "2.10.1"
firebase-bom = "32.7.0"
firebase-crashlytics = "2.9.9"
@@ -59,7 +58,6 @@ 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,7 +98,6 @@ 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

@@ -639,7 +639,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
@@ -647,7 +647,7 @@ fun getTextAlignment(textAlignment: String?): TextAlign {
TextAlign.Left.toString() -> TextAlign.Left
TextAlign.Right.toString() -> TextAlign.Right
TextAlign.Justify.toString() -> TextAlign.Justify
else -> TextAlign.Unspecified
else -> null
}
}