TokTok / toktok-android

Tox Android Client
https://toktok.ltd/
GNU General Public License v3.0
34 stars 12 forks source link

Use androidx instead of the deprecated support libraries #55

Closed robinlinden closed 4 years ago

robinlinden commented 4 years ago

Migration done by the "migrate to AndroidX" refactor in Android Studio. I had to manually fix the 4 lines with android.support.design.R.id.snackbar_text since that's some internal ID. (I changed it to the same ID in the new library.) I also had to add a dependency to androidx.test:rules for ActivityTestRule because things are more modular now.

Source on the deprecation: https://developer.android.com/topic/libraries/support-library

Note: With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX which is part of Jetpack. The AndroidX library contains the existing support library and also includes the latest Jetpack components.

You can continue to use the support library. Historical artifacts (those versioned 27 and earlier, and packaged as android.support.*) will remain available on Google Maven. However, all new library development will occur in the AndroidX library.

We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.


This change is Reviewable

iphydf commented 4 years ago

Rebase and merge, then I'll rebase mine on this.