mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 16:47:01 +05:30
all: update to Compose alpha08 and Kotlin 1.4.20
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
6597f0058d
commit
f8b8ce0b5b
7 changed files with 16 additions and 16 deletions
|
@ -4,7 +4,7 @@ plugins {
|
|||
id("com.android.application")
|
||||
kotlin("android")
|
||||
kotlin("kapt")
|
||||
kotlin("plugin.serialization") version "1.4.10"
|
||||
kotlin("plugin.serialization") version "1.4.20"
|
||||
id("dagger.hilt.android.plugin")
|
||||
`lobsters-plugin`
|
||||
`core-library-desugaring`
|
||||
|
@ -34,7 +34,7 @@ android {
|
|||
buildFeatures.compose = true
|
||||
|
||||
composeOptions {
|
||||
kotlinCompilerVersion = "1.4.10"
|
||||
kotlinCompilerVersion = "1.4.20"
|
||||
kotlinCompilerExtensionVersion = Dependencies.COMPOSE_VERSION
|
||||
}
|
||||
|
||||
|
|
2
app/proguard-rules.pro
vendored
2
app/proguard-rules.pro
vendored
|
@ -1,4 +1,4 @@
|
|||
-keepattributes *Annotation*, InnerClasses
|
||||
-keepattributes *Annotation*, EnclosingMethod, InnerClasses
|
||||
-dontnote kotlinx.serialization.AnnotationsKt # core serialization annotations
|
||||
|
||||
-keep,includedescriptorclasses class dev.msfjarvis.lobsters.model.**$$serializer { *; }
|
||||
|
|
|
@ -12,13 +12,13 @@ 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.RippleIndication
|
||||
import androidx.compose.material.ripple.rememberRippleIndication
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.tooling.preview.Preview
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.ui.tooling.preview.Preview
|
||||
import coil.transform.CircleCropTransformation
|
||||
import dev.chrisbanes.accompanist.coil.CoilImage
|
||||
import dev.msfjarvis.lobsters.R
|
||||
|
@ -113,7 +113,7 @@ fun LobstersItem(
|
|||
modifier = Modifier.padding(8.dp)
|
||||
.clickable(
|
||||
onClick = onSaveButtonClick,
|
||||
indication = RippleIndication(),
|
||||
indication = rememberRippleIndication(),
|
||||
)
|
||||
.constrainAs(saveButton) {
|
||||
end.linkTo(parent.end)
|
||||
|
|
|
@ -31,8 +31,8 @@ fun IconResource(
|
|||
tint: Color = AmbientContentColor.current
|
||||
) {
|
||||
val deferredResource = loadVectorResource(resourceId)
|
||||
deferredResource.onLoadRun { asset ->
|
||||
Icon(asset = asset, modifier = modifier, tint = tint)
|
||||
deferredResource.onLoadRun { vector ->
|
||||
Icon(imageVector = vector, modifier = modifier, tint = tint)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue