Update app to work with newer versions of Android Studio, Gradle plugin etc.#17
Update app to work with newer versions of Android Studio, Gradle plugin etc.#17sandy-8925 wants to merge 22 commits intoligi:masterfrom
Conversation
sandy-8925
commented
Dec 21, 2020
- Doesn't update targetSdkVersion yet, will work on that next
- Moved to using Android Jetpack
- Removed SnackEngage because it was causing a lot of build issues. Can add it back, after fixing the problem with building SnackEngage.
- Used ViewBinding in place of KotlinX synthetics which is deprecated
- Moved ViewHolder classes into their respective activities, since they're not used anywhere else. Kotlin allows for multiple top-level classes in a single file, so a bunch of related classes can be placed together in one file, and won't be exposed outside the file if they're marked private.
…ons of Android Studio
…in-stdlib dependency version
…other unneeded ones
…ive activities, since they're not used elsewhere
|
thanks! what build-issues did you see with SnackEngage? |
It was pulling in kotlin-runtime dependency, and since kotlin-runtime was merged into kotlin-stdlib upstream, there were conflicts. Other than that, I was unable to use the latest version (0.26) - the Gradle build was unable to download that version. |
|
the latest version is 0.27 and judging from jitpack it should be available: https://jitpack.io/com/github/ligi/snackengage/0.27/build.log - could try later today |
|
Ok, I will try out that version and see if it works. |
|
I specified the dependency on SnackEngage as follows: and I got the following build errors:
|
|
ah - please just do
|
That worked. Thanks! |
|
great! |
|
Looks like all of the Lint issues are already existing issues, and not new ones introduced by my code. Will see if I can fix some of those in a different PR. |
|
Usually it is new lint rules coming with the new tooling |