Skip to content

Commit 7bb599a

Browse files
runningcodeclaude
andcommitted
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

14 files changed

+59
-24
lines changed

android/app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
alias(libs.plugins.sentry)
99
alias(libs.plugins.roborazzi)
1010
alias(libs.plugins.androidx.room)
11+
alias(libs.plugins.paparazzi)
1112
id("com.emergetools.paparazzi.preview-scanner")
1213
}
1314

android/gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ navigation = "2.9.6"
1919
browser = "1.9.0"
2020
emergePlugin = "4.4.0"
2121
emergeSnapshots = "1.5.0"
22-
sentry = "6.0.0-beta.3"
22+
sentry = "6.0.0-rc.1"
2323
shapes = "1.1.0"
2424
datastore = "1.2.0"
2525
room = "2.8.4"

0 commit comments

Comments
 (0)