TP-49506 update kotlin ksp compilesdk and material3 version (#241)
This commit is contained in:
@@ -7,7 +7,7 @@ plugins {
|
||||
|
||||
android {
|
||||
namespace 'com.uitron.demo'
|
||||
compileSdk 33
|
||||
compileSdk 34
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.uitron.demo"
|
||||
@@ -64,7 +64,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation platform("androidx.compose:compose-bom:2023.06.01")
|
||||
implementation platform("androidx.compose:compose-bom:2023.10.01")
|
||||
|
||||
implementation project(':navi-uitron')
|
||||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[versions]
|
||||
androidGradlePlugin = "8.1.1"
|
||||
hilt = "2.48"
|
||||
kotlin = "1.9.10"
|
||||
ksp = "1.9.10-1.0.13"
|
||||
kotlin = "1.9.20"
|
||||
ksp = "1.9.20-1.0.14"
|
||||
|
||||
[libraries]
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ def VERSION_NAME = "1.0.33"
|
||||
|
||||
android {
|
||||
namespace 'com.navi.uitron'
|
||||
compileSdk 33
|
||||
compileSdk 34
|
||||
|
||||
defaultConfig {
|
||||
minSdk 21
|
||||
@@ -81,7 +81,7 @@ publishing {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation platform("androidx.compose:compose-bom:2023.06.01")
|
||||
implementation platform("androidx.compose:compose-bom:2023.10.01")
|
||||
|
||||
implementation "androidx.compose.ui:ui"
|
||||
implementation "androidx.compose.material:material"
|
||||
@@ -101,5 +101,5 @@ dependencies {
|
||||
api "io.coil-kt:coil-compose:2.4.0"
|
||||
testImplementation "junit:junit:4.13.2"
|
||||
androidTestImplementation "androidx.test.ext:junit:1.1.5"
|
||||
implementation 'androidx.compose.material3:material3:1.1.2'
|
||||
implementation 'androidx.compose.material3:material3:1.2.0-alpha11'
|
||||
}
|
||||
|
||||
@@ -619,7 +619,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
|
||||
@@ -627,7 +627,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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -739,7 +739,7 @@ fun Modifier.conditional(condition : Boolean, modifier : Modifier.() -> Modifier
|
||||
fun RowScope.constraintsToModifier(rowConstraints: RowConstraints?): Modifier {
|
||||
return Modifier
|
||||
.conditional(rowConstraints?.rowWeight != null) {
|
||||
weight(rowConstraints?.rowWeight?.weight ?: 0f, rowConstraints?.rowWeight?.fill ?: true)
|
||||
weight(rowConstraints?.rowWeight?.weight ?: 1f, rowConstraints?.rowWeight?.fill ?: true)
|
||||
}
|
||||
.conditional(rowConstraints?.verticalAlignment != null) {
|
||||
align(getVerticalAlignment(rowConstraints?.verticalAlignment))
|
||||
@@ -753,7 +753,7 @@ fun ColumnScope.constraintsToModifier(columnConstraints: ColumnConstraints?): Mo
|
||||
return Modifier
|
||||
.conditional(columnConstraints?.columnWeight != null) {
|
||||
weight(
|
||||
columnConstraints?.columnWeight?.weight ?: 0f,
|
||||
columnConstraints?.columnWeight?.weight ?: 1f,
|
||||
columnConstraints?.columnWeight?.fill ?: true
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user