mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 23:47:02 +05:30
build: upgrade Activity, Compose, Navigation, and Room
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
f55604f8fd
commit
1c6f6ad619
3 changed files with 8 additions and 8 deletions
|
@ -34,7 +34,7 @@ android {
|
||||||
buildFeatures.compose = true
|
buildFeatures.compose = true
|
||||||
|
|
||||||
composeOptions {
|
composeOptions {
|
||||||
kotlinCompilerVersion = "1.4.20"
|
kotlinCompilerVersion = "1.4.21"
|
||||||
kotlinCompilerExtensionVersion = Dependencies.COMPOSE_VERSION
|
kotlinCompilerExtensionVersion = Dependencies.COMPOSE_VERSION
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import androidx.compose.foundation.lazy.LazyColumnFor
|
||||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||||
import androidx.compose.material.Surface
|
import androidx.compose.material.Surface
|
||||||
import androidx.compose.material.Text
|
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.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
|
@ -113,7 +113,7 @@ fun LobstersItem(
|
||||||
modifier = Modifier.padding(8.dp)
|
modifier = Modifier.padding(8.dp)
|
||||||
.clickable(
|
.clickable(
|
||||||
onClick = onSaveButtonClick,
|
onClick = onSaveButtonClick,
|
||||||
indication = rememberRippleIndication(),
|
indication = rememberRipple(),
|
||||||
)
|
)
|
||||||
.constrainAs(saveButton) {
|
.constrainAs(saveButton) {
|
||||||
end.linkTo(parent.end)
|
end.linkTo(parent.end)
|
||||||
|
|
|
@ -7,7 +7,7 @@ private const val ANDROIDX_HILT_VERSION = "1.0.0-alpha02"
|
||||||
private const val DAGGER_HILT_VERSION = "2.30.1-alpha"
|
private const val DAGGER_HILT_VERSION = "2.30.1-alpha"
|
||||||
|
|
||||||
object Dependencies {
|
object Dependencies {
|
||||||
const val COMPOSE_VERSION = "1.0.0-alpha08"
|
const val COMPOSE_VERSION = "1.0.0-alpha09"
|
||||||
object Kotlin {
|
object Kotlin {
|
||||||
|
|
||||||
object Coroutines {
|
object Coroutines {
|
||||||
|
@ -36,7 +36,7 @@ object Dependencies {
|
||||||
|
|
||||||
object AndroidX {
|
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 appCompat = "androidx.appcompat:appcompat:1.3.0-alpha02"
|
||||||
const val browser = "androidx.browser:browser:1.3.0"
|
const val browser = "androidx.browser:browser:1.3.0"
|
||||||
const val coreKtx = "androidx.core:core-ktx:1.5.0-alpha05"
|
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 foundation = "androidx.compose.foundation:foundation:$COMPOSE_VERSION"
|
||||||
const val foundationLayout = "androidx.compose.foundation:foundation-layout:$COMPOSE_VERSION"
|
const val foundationLayout = "androidx.compose.foundation:foundation-layout:$COMPOSE_VERSION"
|
||||||
const val material = "androidx.compose.material:material:$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 runtime = "androidx.compose.runtime:runtime:$COMPOSE_VERSION"
|
||||||
const val ui = "androidx.compose.ui:ui:$COMPOSE_VERSION"
|
const val ui = "androidx.compose.ui:ui:$COMPOSE_VERSION"
|
||||||
const val uiUnit = "androidx.compose.ui:ui-unit:$COMPOSE_VERSION"
|
const val uiUnit = "androidx.compose.ui:ui-unit:$COMPOSE_VERSION"
|
||||||
|
@ -66,14 +66,14 @@ object Dependencies {
|
||||||
|
|
||||||
object Lifecycle {
|
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 runtimeKtx = "androidx.lifecycle:lifecycle-runtime-ktx:$version"
|
||||||
const val viewmodelKtx = "androidx.lifecycle:lifecycle-viewmodel-ktx:$version"
|
const val viewmodelKtx = "androidx.lifecycle:lifecycle-viewmodel-ktx:$version"
|
||||||
}
|
}
|
||||||
|
|
||||||
object Room {
|
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 compiler = "androidx.room:room-compiler:$version"
|
||||||
const val ktx = "androidx.room:room-ktx:$version"
|
const val ktx = "androidx.room:room-ktx:$version"
|
||||||
const val runtime = "androidx.room:room-runtime:$version"
|
const val runtime = "androidx.room:room-runtime:$version"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue