Closed tdeffains closed 9 months ago
Animations isn't ecofriendly for saving battery power
Lottie is a commonly used library for embedding animations https://github.com/airbnb/lottie-android Animation implementation requires to import Android classes https://developer.android.com/reference/android/animation/Animator https://developer.android.com/reference/android/view/animation/Animation Jetpack Compose is the new Google framework for Android UI and provides APIs for animations https://developer.android.com/reference/kotlin/androidx/compose/animation/package-summary
dependencies { //Animations Lottie implementation 'com.airbnb.android:lottie:[x.y.z]' }
import android.animation.* import android.view.animation.*
import androidx.compose.animation.*
Obviously a good practice, but the ecocode plugin must focus on detection of built-in animations. Taking into account the countless third-party animation libraries is too cumbersome.
Sobriety: animation-free (Lottie library and imports of Android Animation or Jetpack Compose API)
Platform
Main caracteristics
Severity / Remediation Cost
Rule short description
Animations isn't ecofriendly for saving battery power
Rule complete description
Text
Lottie is a commonly used library for embedding animations https://github.com/airbnb/lottie-android Animation implementation requires to import Android classes https://developer.android.com/reference/android/animation/Animator https://developer.android.com/reference/android/view/animation/Animation Jetpack Compose is the new Google framework for Android UI and provides APIs for animations https://developer.android.com/reference/kotlin/androidx/compose/animation/package-summary
build.gradle
Java files
Kotlin files
Implementation principle
Lottie library
Animation imports
Jetpack Compose imports