Skip to content

Commit

Permalink
Update deprecated stuff (#319)
Browse files Browse the repository at this point in the history
* Update deprecated icon

* Move buildConfig enabling to build.gradle
  • Loading branch information
LordRaydenMK authored Feb 25, 2024
1 parent e49924f commit 7939c55
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ android {

buildFeatures {
compose true
buildConfig true
}

composeOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import androidx.compose.material.IconButton
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
Expand Down Expand Up @@ -60,7 +60,7 @@ private fun SuperheroAppBar(
title = { Text(text = state.title) },
navigationIcon = {
IconButton(onClick = { actions.trySend(Up).getOrThrow() }) {
Icon(Icons.Filled.ArrowBack, contentDescription = "")
Icon(Icons.AutoMirrored.Filled.ArrowBack, contentDescription = "")
}
}
)
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ android.useAndroidX=true
android.enableJetifier=false
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
android.defaults.buildfeatures.buildconfig=true

# try the K2 compiler https://android-developers.googleblog.com/2023/07/try-k2-compiler-in-your-android-projects.html
kotlin.experimental.tryK2=true

0 comments on commit 7939c55

Please sign in to comment.