Skip to content

Commit

Permalink
Skip synthetic fields in R classes (#1223)
Browse files Browse the repository at this point in the history
Co-authored-by: Larry Ng <lng@stripe.com>
  • Loading branch information
larryng and lng-stripe committed Jan 11, 2024
1 parent 1504387 commit a8d5842
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ internal class PaparazziCallback(
val resourceType = ResourceType.fromClassName(resourceClass.simpleName) ?: continue

for (field in resourceClass.declaredFields) {
if (!Modifier.isStatic(field.modifiers)) continue
if (!Modifier.isStatic(field.modifiers) || field.isSynthetic) continue

// May not be final in library projects.
val type = field.type
Expand Down

0 comments on commit a8d5842

Please sign in to comment.