Skip to content

Commit

Permalink
- Update Hilt and ksp version
Browse files Browse the repository at this point in the history
  • Loading branch information
piashcse committed Aug 7, 2024
1 parent bd198f7 commit d55d56b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import androidx.compose.material3.TextFieldDefaults
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Clear
import androidx.compose.material.icons.filled.Search
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusRequester
Expand All @@ -24,8 +23,7 @@ import com.piashcse.hilt_mvvm_compose_movie.ui.theme.Blue
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview

@OptIn(ExperimentalMaterial3Api::class, FlowPreview::class)
@ExperimentalCoroutinesApi
@OptIn(FlowPreview::class, ExperimentalCoroutinesApi::class)
@Composable
fun SearchBar(isAppBarVisible:MutableState<Boolean>, viewModel: MainViewModel){
var text by remember { mutableStateOf("") }
Expand All @@ -39,7 +37,7 @@ fun SearchBar(isAppBarVisible:MutableState<Boolean>, viewModel: MainViewModel){
.fillMaxWidth()
.focusRequester(focusRequester),
value = text,
colors = TextFieldDefaults.textFieldColors(
colors = TextFieldDefaults.colors(
cursorColor = Color.Black,
disabledLabelColor = Blue,
focusedIndicatorColor = Color.Transparent,
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
agp = "8.4.2"
kotlin = "2.0.0"
kotlin = "2.0.10"
coreKtx = "1.13.1"
junit = "4.13.2"
junitVersion = "1.2.1"
Expand All @@ -21,8 +21,8 @@ timber = "5.0.1"
navigationCompose = "2.7.7"
hiltNavigationCompose = "1.2.0"
navigationRuntimeKtx = "2.7.7"
hiltVersion = "2.51.1"
kspVersion = "2.0.0-1.0.21"
hiltVersion = "2.52"
kspVersion = "2.0.10-1.0.24"
composeBom = "2024.06.00"
composeVersin = "1.6.8"

Expand Down

0 comments on commit d55d56b

Please sign in to comment.