build: upgrade Activity, Compose, Navigation, and Room

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-12-17 00:58:53 +05:30
parent f55604f8fd
commit 1c6f6ad619
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
3 changed files with 8 additions and 8 deletions

View file

@ -34,7 +34,7 @@ android {
buildFeatures.compose = true
composeOptions {
kotlinCompilerVersion = "1.4.20"
kotlinCompilerVersion = "1.4.21"
kotlinCompilerExtensionVersion = Dependencies.COMPOSE_VERSION
}

View file

@ -12,7 +12,7 @@ import androidx.compose.foundation.lazy.LazyColumnFor
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.material.ripple.rememberRippleIndication
import androidx.compose.material.ripple.rememberRipple
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
@ -113,7 +113,7 @@ fun LobstersItem(
modifier = Modifier.padding(8.dp)
.clickable(
onClick = onSaveButtonClick,
indication = rememberRippleIndication(),
indication = rememberRipple(),
)
.constrainAs(saveButton) {
end.linkTo(parent.end)

View file

@ -7,7 +7,7 @@ private const val ANDROIDX_HILT_VERSION = "1.0.0-alpha02"
private const val DAGGER_HILT_VERSION = "2.30.1-alpha"
object Dependencies {
const val COMPOSE_VERSION = "1.0.0-alpha08"
const val COMPOSE_VERSION = "1.0.0-alpha09"
object Kotlin {
object Coroutines {
@ -36,7 +36,7 @@ object Dependencies {
object AndroidX {
const val activityKtx = "androidx.activity:activity-ktx:1.2.0-beta02"
const val activityKtx = "androidx.activity:activity-ktx:1.2.0-rc01"
const val appCompat = "androidx.appcompat:appcompat:1.3.0-alpha02"
const val browser = "androidx.browser:browser:1.3.0"
const val coreKtx = "androidx.core:core-ktx:1.5.0-alpha05"
@ -49,7 +49,7 @@ object Dependencies {
const val foundation = "androidx.compose.foundation:foundation:$COMPOSE_VERSION"
const val foundationLayout = "androidx.compose.foundation:foundation-layout:$COMPOSE_VERSION"
const val material = "androidx.compose.material:material:$COMPOSE_VERSION"
const val navigation = "androidx.navigation:navigation-compose:1.0.0-alpha03"
const val navigation = "androidx.navigation:navigation-compose:1.0.0-alpha04"
const val runtime = "androidx.compose.runtime:runtime:$COMPOSE_VERSION"
const val ui = "androidx.compose.ui:ui:$COMPOSE_VERSION"
const val uiUnit = "androidx.compose.ui:ui-unit:$COMPOSE_VERSION"
@ -66,14 +66,14 @@ object Dependencies {
object Lifecycle {
private const val version = "2.3.0-beta01"
private const val version = "2.3.0-rc01"
const val runtimeKtx = "androidx.lifecycle:lifecycle-runtime-ktx:$version"
const val viewmodelKtx = "androidx.lifecycle:lifecycle-viewmodel-ktx:$version"
}
object Room {
private const val version = "2.3.0-alpha03"
private const val version = "2.3.0-alpha04"
const val compiler = "androidx.room:room-compiler:$version"
const val ktx = "androidx.room:room-ktx:$version"
const val runtime = "androidx.room:room-runtime:$version"