Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AGP library plugin requirement #105

Closed
arturdryomov opened this issue Oct 31, 2019 · 1 comment
Closed

AGP library plugin requirement #105

arturdryomov opened this issue Oct 31, 2019 · 1 comment

Comments

@arturdryomov
Copy link

The current version of the PaparazziPlugin requires to have com.android.library declared. Is it intentional? I’m asking because I’ve tried to use it with a usual application module and saw the plugin complaint.

The Android Gradle library plugin must be applied before the Paparazzi plugin.
@jrodbx
Copy link
Collaborator

jrodbx commented Oct 31, 2019

That is correct. This is because the merged resources for library modules are in xml, while for application modules, they are transformed to a binary flat format, which Paparazzi is currently unable to parse.

In a future release, we hope to be able to support app modules. Workaround for now would be to move the layout resources or custom views into a separate library module and apply the plugin in that module.

@jrodbx jrodbx closed this as completed Oct 31, 2019
derandecker added a commit to derandecker/paparazzi that referenced this issue Jun 18, 2022
Based on my own experience, being able to use this library with the main app module would be expected without much fuss. I tried and finally realized what the error message was telling me, and along with this issue: cashapp#105 I was able to determine that Paparazzi does not support app modules. It should be made clear right up front so that no one else wastes their time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants