Skip to content

Commit 11a8097

Browse files
committedJan 8, 2021
[Jetnews] Update to snapshot 7067732
1 parent de4d7b8 commit 11a8097

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed
 

Diff for: ‎JetNews/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ dependencies {
9393
implementation 'androidx.activity:activity-ktx:1.1.0'
9494
implementation 'androidx.core:core-ktx:1.5.0-alpha05'
9595

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"
9898

9999
androidTestImplementation 'junit:junit:4.13.1'
100100
androidTestImplementation 'androidx.test:rules:1.3.0'

Diff for: ‎JetNews/app/src/main/java/com/example/jetnews/ui/SwipeToRefresh.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private val <T> SwipeableState<T>.PreUpPostDownNestedScrollConnection: NestedScr
117117
}
118118

119119
override fun onPreFling(available: Velocity): Velocity {
120-
val toFling = available.pixelsPerSecond.toFloat()
120+
val toFling = Offset(available.x, available.y).toFloat()
121121
return if (toFling < 0) {
122122
performFling(velocity = toFling) {}
123123
// 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
132132
available: Velocity,
133133
onFinished: (Velocity) -> Unit
134134
) {
135-
performFling(velocity = available.pixelsPerSecond.toFloat()) {
135+
performFling(velocity = Offset(available.x, available.y).toFloat()) {
136136
// since we go to the anchor with tween settling, consume all for the best UX
137137
onFinished.invoke(available)
138138
}

Diff for: ‎JetNews/build.gradle

+6-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
buildscript {
1818
ext.kotlin_version = '1.4.21'
19-
ext.compose_version = '1.0.0-alpha09'
19+
ext.compose_version = '1.0.0-SNAPSHOT'
2020
ext.coroutines_version = '1.4.2'
2121

2222
repositories {
@@ -25,7 +25,7 @@ buildscript {
2525
}
2626

2727
dependencies {
28-
classpath 'com.android.tools.build:gradle:7.0.0-alpha02'
28+
classpath 'com.android.tools.build:gradle:7.0.0-alpha04'
2929
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
3030
}
3131
}
@@ -36,6 +36,10 @@ plugins {
3636

3737
subprojects {
3838
repositories {
39+
maven {
40+
def snapshot = "7067732"
41+
url "https://androidx.dev/snapshots/builds/$snapshot/artifacts/repository/"
42+
}
3943
google()
4044
jcenter()
4145
}

Diff for: ‎JetNews/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Oct 27 16:21:59 PDT 2020
22
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
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)