Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 22dd460

Browse files
committed
MotionCompose: Update AGP
Also changes the touch effect of the cards. Change-Id: Id5a98e2760dba517377d40d25b3b8dd994193b99
1 parent f9d8922 commit 22dd460

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

MotionCompose/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ android {
6262
dependencies {
6363
implementation 'androidx.core:core-ktx:1.7.0'
6464
implementation "androidx.compose.ui:ui:$compose_version"
65-
implementation 'androidx.compose.material3:material3:1.0.0-alpha01'
65+
implementation 'androidx.compose.material3:material3:1.0.0-alpha02'
6666
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
6767
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0'
6868
implementation 'androidx.activity:activity-compose:1.4.0'
6969
implementation 'androidx.constraintlayout:constraintlayout-compose:1.0.0-rc02'
7070

71-
def accompanist_version = '0.21.3-beta'
71+
def accompanist_version = '0.22.0-rc'
7272
implementation "com.google.accompanist:accompanist-flowlayout:$accompanist_version"
7373
implementation "com.google.accompanist:accompanist-insets-ui:$accompanist_version"
7474
implementation "com.google.accompanist:accompanist-placeholder:$accompanist_version"

MotionCompose/app/src/main/java/com/example/android/compose/motion/ui/home/Home.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import androidx.compose.foundation.layout.padding
2525
import androidx.compose.foundation.lazy.LazyColumn
2626
import androidx.compose.foundation.lazy.items
2727
import androidx.compose.foundation.shape.RoundedCornerShape
28+
import androidx.compose.material.ripple.rememberRipple
2829
import androidx.compose.material3.ExperimentalMaterial3Api
2930
import androidx.compose.material3.MaterialTheme
3031
import androidx.compose.material3.Scaffold
@@ -107,7 +108,8 @@ private fun DemoCard(
107108
modifier = modifier,
108109
tonalElevation = 2.dp,
109110
shape = RoundedCornerShape(16.dp),
110-
onClick = onClick
111+
onClick = onClick,
112+
indication = rememberRipple()
111113
) {
112114
Column(
113115
modifier = Modifier.padding(16.dp),

MotionCompose/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
buildscript {
1818
ext {
19-
compose_version = '1.1.0-beta03'
19+
compose_version = '1.1.0-rc01'
2020
}
2121
}
2222

2323
plugins {
24-
id 'com.android.application' version '7.2.0-alpha04' apply false
25-
id 'com.android.library' version '7.2.0-alpha04' apply false
26-
id 'org.jetbrains.kotlin.android' version '1.5.31' apply false
24+
id 'com.android.application' version '7.1.0-rc01' apply false
25+
id 'com.android.library' version '7.1.0-rc01' apply false
26+
id 'org.jetbrains.kotlin.android' version '1.6.0' apply false
2727
}
2828

2929
task clean(type: Delete) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Wed Nov 10 13:04:57 JST 2021
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-rc-1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)