-
Notifications
You must be signed in to change notification settings - Fork 232
Description
Description
We have a project with multiple modules. In some of them, there are viewModel classes, in which we use the android.animation.ValueAnimator
class to create and handle a timer.
When we add to one of these modules, the paparazzi dependency, then the unit tests that test any viewModel method using the ValueAnimator
class fail.
This UnsatisfiedLinkError
is reported:
More specifically, the error is reported in the viewModel, when we call this method ValueAnimator.ofInt(PROGRESS_MIN, PROGRESS_MAX)
We also tried adding the paparazzi dependency to other modules, where we use ValueAnimator
similarly in viewModels and the same error was reported in the relevant unit tests.
So, for some reason, when adding paparazzi dependency to a module, then all unit tests that use ValueAnimator
in the tested method, fail.
Steps to Reproduce
To reproduce this, just follow the above steps.
- Add paparazzi dependency in your module.
- Create a class with a method calling any
ValueAnimator
method. - Create a unit test, calling the method and run it.
- You should see the
UnsatisfiedLinkError
Expected behavior
What we expected was, that adding the paparazzi dependency, wouldn't affect the use of the ValueAnimator
class.
Additional information:
- Paparazzi Version: 1.3.0
- OS: MAC OS (M1)
- Compile SDK: 33
- Gradle Version: 8.2
- Android Gradle Plugin Version: 8.0.2