Guys where do you store PreviewParameterProviders?
Because i see that most of repositories holds it in main source set:
https://github.com/search?q=PreviewParameterProvider&type=code
while docs says that we should use debug source set to not include them into all builds:
https://developer.android.com/jetpack/compose/tooling#previewparameter
But there is problem when you got multiple build types and you need to provide something in other source set. We end up copying empty interfaces in other sourcesets than debug but it's little anoying.
Any thoughts ?
a
Albert Chang
10/13/2021, 9:46 AM
R8 will strip out all the preview-related code so actually no need to worry.