Refactor gradle configuration and update dependencies

- Enable java 11 language features
- Switch to groovy syntax
- Switch to new gradle plugins and dependency configuration
- Drop deprecated properties
- Switch from buildscript to project.ext closure for version property
- Update dependencies to latest stable versions
- Address build errors arising due to dependencies update

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2022-08-26 21:03:35 +05:30
parent fd693bf9d8
commit ecf16661dc
8 changed files with 92 additions and 94 deletions

View File

@@ -109,6 +109,7 @@ class CategoryBrowseActivity : BaseActivity(), GenericCarouselController.Callbac
is ViewState.Success<*> -> {
updateController(it.data as StreamBundle)
}
else -> {}
}
})

View File

@@ -169,7 +169,7 @@ class AccentFragment : BaseFragment() {
anim.duration = 450
anim.interpolator = CubicBezierInterpolator.EASE_IN_OUT_QUAD
anim.addListener(object : AnimatorListenerAdapter() {
override fun onAnimationEnd(animation: Animator?) {
override fun onAnimationEnd(animation: Animator) {
B.themeSwitchImage.setImageDrawable(null)
B.themeSwitchImage.hide()
}

View File

@@ -154,7 +154,7 @@ class ThemeFragment : BaseFragment() {
anim.duration = 450
anim.interpolator = CubicBezierInterpolator.EASE_IN_OUT_QUAD
anim.addListener(object : AnimatorListenerAdapter() {
override fun onAnimationEnd(animation: Animator?) {
override fun onAnimationEnd(animation: Animator) {
B.themeSwitchImage.setImageDrawable(null)
B.themeSwitchImage.hide()
}