File tree Expand file tree Collapse file tree 6 files changed +10
-8
lines changed
androidTest/java/com/example/compose/rally
main/java/com/example/compose/rally/ui
buildSrc/src/main/java/com/example/compose/rally/buildsrc Expand file tree Collapse file tree 6 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,14 @@ import org.junit.Test
3737 * For assertions, a simple screenshot testing framework is used. It requires SDK 26+ and to
3838 * be run on a device with 420dpi, as that the density used to generate the golden images
3939 * present in androidTest/assets. It runs bitmap comparisons on device.
40+ *
41+ * Note that different systems can produce slightly different screenshots making the test fail.
4042 */
4143@SdkSuppress(minSdkVersion = Build .VERSION_CODES .O )
4244class AnimatingCircleTests {
4345
4446 @get:Rule
45- val composeTestRule = createComposeRule(disableTransitions = false )
47+ val composeTestRule = createComposeRule()
4648
4749 @Test
4850 fun circleAnimation_idle_screenshot () {
Original file line number Diff line number Diff line change 1616
1717package com.example.compose.rally.ui.components
1818
19- import androidx.compose.foundation.Icon
2019import androidx.compose.foundation.Text
2120import androidx.compose.foundation.background
2221import androidx.compose.foundation.layout.Arrangement
@@ -29,6 +28,7 @@ import androidx.compose.foundation.layout.preferredSize
2928import androidx.compose.foundation.layout.preferredWidth
3029import androidx.compose.material.AmbientEmphasisLevels
3130import androidx.compose.material.Divider
31+ import androidx.compose.material.Icon
3232import androidx.compose.material.MaterialTheme
3333import androidx.compose.material.ProvideEmphasis
3434import androidx.compose.material.icons.Icons
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import androidx.compose.animation.animate
2020import androidx.compose.animation.animateContentSize
2121import androidx.compose.animation.core.LinearEasing
2222import androidx.compose.animation.core.tween
23- import androidx.compose.foundation.Icon
2423import androidx.compose.foundation.Text
2524import androidx.compose.foundation.layout.Row
2625import androidx.compose.foundation.layout.Spacer
@@ -29,6 +28,7 @@ import androidx.compose.foundation.layout.padding
2928import androidx.compose.foundation.layout.preferredHeight
3029import androidx.compose.foundation.layout.preferredWidth
3130import androidx.compose.foundation.selection.selectable
31+ import androidx.compose.material.Icon
3232import androidx.compose.material.MaterialTheme
3333import androidx.compose.material.Surface
3434import androidx.compose.material.ripple.RippleIndication
Original file line number Diff line number Diff line change 1616
1717package com.example.compose.rally.ui.overview
1818
19- import androidx.compose.foundation.Icon
2019import androidx.compose.foundation.ScrollableColumn
2120import androidx.compose.foundation.Text
2221import androidx.compose.foundation.background
@@ -30,6 +29,7 @@ import androidx.compose.foundation.layout.padding
3029import androidx.compose.foundation.layout.preferredHeight
3130import androidx.compose.material.AmbientEmphasisLevels
3231import androidx.compose.material.Card
32+ import androidx.compose.material.Icon
3333import androidx.compose.material.IconButton
3434import androidx.compose.material.MaterialTheme
3535import androidx.compose.material.ProvideEmphasis
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ object Libs {
4747 const val coreKtx = " androidx.core:core-ktx:1.5.0-alpha02"
4848
4949 object Compose {
50- const val snapshot = " "
51- const val version = " 1.0.0-alpha05 "
50+ const val snapshot = " 6922857 "
51+ const val version = " 1.0.0-SNAPSHOT "
5252
5353 const val core = " androidx.compose.ui:ui:$version "
5454 const val foundation = " androidx.compose.foundation:foundation:$version "
@@ -92,5 +92,5 @@ object Libs {
9292
9393object Urls {
9494 const val composeSnapshotRepo = " https://androidx-dev-prod.appspot.com/snapshots/builds/" +
95- " ${Libs .AndroidX .Compose .snapshot} /artifacts/ui/ repository/"
95+ " ${Libs .AndroidX .Compose .snapshot} /artifacts/repository/"
9696}
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ distributionBase=GRADLE_USER_HOME
1919distributionPath =wrapper/dists
2020zipStoreBase =GRADLE_USER_HOME
2121zipStorePath =wrapper/dists
22- distributionUrl =https\://services.gradle.org/distributions/gradle-6.6.1 -bin.zip
22+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.7 -bin.zip
You can’t perform that action at this time.
0 commit comments