Updates for the Food2ForkCompose app from alpha-11 to beta01.
- kotlin ->
1.4.30
- Make sure Kotlin is updated to early version
- Settings > Languages and Frameworks > Kotlin > Early Access Preview 1.4.x
- kotlin_compiler_extension ->
1.0.0-beta01
- compose ->
1.0.0-beta01
(from alpha11) - navigation-compose ->
1.0.0-alpha08
(from alpha06) - Add
const val compose_constraint = "1.0.0-alpha03"
androidx.compose.foundation.layout.ConstraintLayout
was deprecated in favor ofandroidx.constraintlayout.compose.ConstraintLayout
- Add
const val compose_activity = "1.3.0-alpha03"
androidx.activity:activity-compose:1.3.0-alpha03
is released and is only compatible with compose beta01.
- Add
androidx.constraintlayout:constraintlayout-compose:${Versions.compose_constraint}
- Add
androidx.activity:activity-compose:${Versions.compose_activity}
- MainActivity
- New import for
viewModel()
builder function (import androidx.lifecycle.viewmodel.compose.viewModel
AmbientContext
->LocalContext
setContent
has new import (import androidx.activity.compose.setContent
)
- New import for
- CircularIndeterminateProgressBar
- imports
- DefaultSnackbar
- Snackbar has changed.
text
field renamed tocontent
- Snackbar has changed.
- LoadingRecipeListShimmer
AmbientDensity
->LocalDensity
- LoadingRecipeShimmer
preferredSize
is deprecated. Replace withheight
- NothingHere
fontSize = 55.sp
- RecipeCard
preferredSize
is deprecated. Replace withheight
- RecipeView
preferredSize
is deprecated. Replace withheight
- SearchAppBar
- TextField
- new
colors
attribute (backgroundColor
deprecated) onImeActionPerformed
deprecated- Replaced with
keyboardActions
- Replaced with
- new
- TextField
- Keyboard
SoftwareKeyboardController
exists now
- ShimmerRecipeCardItem
preferredSize
->height
- Theme
- Experimental annotation
- RecipeDetailScreen
- Experimental annotation
- ImageUtils
AmbientContext
->LocalContext