paparazzi icon indicating copy to clipboard operation
paparazzi copied to clipboard

Allow for custom appCompatViewInflater #274

Open sebastienrouif opened this issue 2 years ago • 1 comments

and thus support for MaterialComponents or other custom UI library

It would be great to resolve the viewInfalter from the theme but we don't have a context before constructing Paparazzi. We could resolve it in the test function but it would add a lot of boilerplate. And we can't resolve it from within Parazzi as we need to obtain theme attribute as done in AppCompatDelegateImpl

we could maybe remove the appCompatEnabled and have a sealed class for the appCompatViewInflaterClassName but I didn't want to change the Paparazzi API

sebastienrouif avatar Jun 30 '22 16:06 sebastienrouif

@jrodbx are you ok with the approach? should I put documentation somewhere?

sebastienrouif avatar Jul 06 '22 10:07 sebastienrouif