Commit 7bb599a
feat(android): Filter Paparazzi previews to current module only
The Paparazzi preview scanner now filters out previews from dependency
modules, ensuring each module only generates snapshots for its own
previews. This prevents duplicate/conflicting snapshots and improves
build performance.
Implementation uses Gradle's variant source directories to accurately
determine which previews belong to the current module, supporting
all Android project structures including product flavors and custom
source sets.
- Query actual source directories from Android variant configuration
- Filter previews by checking source file existence in module directories
- Handle Kotlin file-level functions (Kt suffix removal)
- Remove bundled Paparazzi dependency from plugin (users apply manually)
- Add proper Gradle task input annotations for correct caching
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 781e7de commit 7bb599a
File tree
14 files changed
+59
-24
lines changed- android
- app
- src/test/snapshots/images
- gradle
- paparazzi-preview-scanner-plugin
- src/main/kotlin/com/emergetools/paparazzi
- tasks
- ui-components
14 files changed
+59
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments