Skip to content

Commit

Permalink
🚨 Fix build warnings
Browse files Browse the repository at this point in the history
Fix the `packagingOptions` and `textFieldColors` deprecations
  • Loading branch information
igorescodro committed Aug 1, 2023
1 parent 26fcc76 commit c7d9588
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ android {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}

packagingOptions {
packaging {
resources.excludes.apply {
add("META-INF/AL2.0")
add("META-INF/LGPL2.1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,10 @@ private fun TaskTitleTextField(text: String, onTitleChange: (String) -> Unit) {
textState.value = it
},
textStyle = MaterialTheme.typography.headlineMedium,
colors = TextFieldDefaults.textFieldColors(
containerColor = MaterialTheme.colorScheme.surface,
colors = TextFieldDefaults.colors(
focusedContainerColor = MaterialTheme.colorScheme.surface,
unfocusedContainerColor = MaterialTheme.colorScheme.surface,
disabledContainerColor = MaterialTheme.colorScheme.surface,
),
)
}
Expand All @@ -202,8 +204,10 @@ private fun TaskDescriptionTextField(text: String?, onDescriptionChange: (String
textState.value = it
},
textStyle = MaterialTheme.typography.bodyLarge,
colors = TextFieldDefaults.textFieldColors(
containerColor = MaterialTheme.colorScheme.surface,
colors = TextFieldDefaults.colors(
focusedContainerColor = MaterialTheme.colorScheme.surface,
unfocusedContainerColor = MaterialTheme.colorScheme.surface,
disabledContainerColor = MaterialTheme.colorScheme.surface,
),
)
}
Expand Down
2 changes: 1 addition & 1 deletion features/tracker/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}

packagingOptions {
packaging {
resources.excludes.apply {
add("META-INF/AL2.0")
add("META-INF/LGPL2.1")
Expand Down
2 changes: 1 addition & 1 deletion libraries/test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

android {
packagingOptions {
packaging {
resources.excludes.apply {
add("META-INF/AL2.0")
add("META-INF/LGPL2.1")
Expand Down
2 changes: 1 addition & 1 deletion plugins/src/main/java/extension/CommonExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fun CommonExtension<*, *, *, *>.composeConfig(libs: VersionCatalog) {
kotlinCompilerExtensionVersion = libs.composeVersion
}

packagingOptions {
packaging {
resources.excludes.apply {
add("META-INF/AL2.0")
add("META-INF/LGPL2.1")
Expand Down

0 comments on commit c7d9588

Please sign in to comment.