File tree 4 files changed +11
-7
lines changed
src/main/java/com/example/jetnews/ui
4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,8 @@ dependencies {
93
93
implementation ' androidx.activity:activity-ktx:1.1.0'
94
94
implementation ' androidx.core:core-ktx:1.5.0-alpha05'
95
95
96
- implementation " androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.0-beta01 "
97
- implementation " androidx.lifecycle:lifecycle-livedata-ktx:2.3.0-beta01 "
96
+ implementation " androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.0-rc01 "
97
+ implementation " androidx.lifecycle:lifecycle-livedata-ktx:2.3.0-rc01 "
98
98
99
99
androidTestImplementation ' junit:junit:4.13.1'
100
100
androidTestImplementation ' androidx.test:rules:1.3.0'
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ private val <T> SwipeableState<T>.PreUpPostDownNestedScrollConnection: NestedScr
117
117
}
118
118
119
119
override fun onPreFling (available : Velocity ): Velocity {
120
- val toFling = available.pixelsPerSecond .toFloat()
120
+ val toFling = Offset ( available.x, available.y) .toFloat()
121
121
return if (toFling < 0 ) {
122
122
performFling(velocity = toFling) {}
123
123
// since we go to the anchor with tween settling, consume all for the best UX
@@ -132,7 +132,7 @@ private val <T> SwipeableState<T>.PreUpPostDownNestedScrollConnection: NestedScr
132
132
available : Velocity ,
133
133
onFinished : (Velocity ) -> Unit
134
134
) {
135
- performFling(velocity = available.pixelsPerSecond .toFloat()) {
135
+ performFling(velocity = Offset ( available.x, available.y) .toFloat()) {
136
136
// since we go to the anchor with tween settling, consume all for the best UX
137
137
onFinished.invoke(available)
138
138
}
Original file line number Diff line number Diff line change 16
16
17
17
buildscript {
18
18
ext. kotlin_version = ' 1.4.21'
19
- ext. compose_version = ' 1.0.0-alpha09 '
19
+ ext. compose_version = ' 1.0.0-SNAPSHOT '
20
20
ext. coroutines_version = ' 1.4.2'
21
21
22
22
repositories {
@@ -25,7 +25,7 @@ buildscript {
25
25
}
26
26
27
27
dependencies {
28
- classpath ' com.android.tools.build:gradle:7.0.0-alpha02 '
28
+ classpath ' com.android.tools.build:gradle:7.0.0-alpha04 '
29
29
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
30
30
}
31
31
}
@@ -36,6 +36,10 @@ plugins {
36
36
37
37
subprojects {
38
38
repositories {
39
+ maven {
40
+ def snapshot = " 7067732"
41
+ url " https://androidx.dev/snapshots/builds/$snapshot /artifacts/repository/"
42
+ }
39
43
google()
40
44
jcenter()
41
45
}
Original file line number Diff line number Diff line change 1
1
# Tue Oct 27 16:21:59 PDT 2020
2
2
distributionBase =GRADLE_USER_HOME
3
- distributionUrl =https\ ://services.gradle.org/distributions/gradle-6.7. 1-bin.zip
3
+ distributionUrl =https://services.gradle.org/distributions/gradle-6.8-rc- 1-bin.zip
4
4
distributionPath =wrapper/dists
5
5
zipStorePath =wrapper/dists
6
6
zipStoreBase =GRADLE_USER_HOME
You can’t perform that action at this time.
0 commit comments