Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade all the things #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mike-burns
Copy link
Contributor

  • Gradle
  • Kotlin
  • target and compilation SDK
  • AndroidX

- Gradle
- Kotlin
- target and compilation SDK
- AndroidX
Copy link

@alexsullivan114 alexsullivan114 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrade-orific!

@@ -24,6 +24,6 @@ fun String.colorSubString(subString: String, color: Int): SpannableStringBuilder
return stringBuilder
}

fun RecyclerView.attachSnapHelper(snapHelper: SnapHelper) {
fun androidx.recyclerview.widget.RecyclerView.attachSnapHelper(snapHelper: androidx.recyclerview.widget.SnapHelper) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be fully qualified, right? It makes it very noisy.

import android.view.MotionEvent
import com.thoughtbot.tropos.scrolling.OverScroller.OverScrollDirection.END

class RecyclerViewScroller(override val view: RecyclerView) : Scroller {
class RecyclerViewScroller(override val view: androidx.recyclerview.widget.RecyclerView) : Scroller {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto here

@@ -36,17 +36,17 @@ class RecyclerViewScroller(override val view: RecyclerView) : Scroller {

}

fun RecyclerView.setVerticalEndOverScroller() {
fun androidx.recyclerview.widget.RecyclerView.setVerticalEndOverScroller() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here but I'm going to stop commenting it now :)

@@ -19,6 +23,10 @@ buildscript {
allprojects {
repositories {
jcenter()
maven {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be able to use the google() method here instead of specifying the google maven repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants