Commit 7d4e4f4
feat(android): Enhance Paparazzi preview scanner with advanced device configuration
Update the Paparazzi preview scanner plugin to generate more sophisticated tests with comprehensive device configuration and preview parameter handling.
Changes:
- Update ComposablePreviewScanner library from 0.7.2 to 0.8.1
- Add includePrivatePreviews configuration option
- Generate tests with DeviceConfigBuilder for proper device configuration (screen size, density, orientation, locale, night mode)
- Add PaparazziPreviewRule.createFor() to create per-preview configured Paparazzi instances with dynamic API level support
- Support custom rendering modes (NORMAL, FULL_EXPAND, SHRINK)
- Add custom snapshot handlers (PreviewSnapshotVerifier, PreviewHtmlReportWriter)
- Add SystemUiSize and PreviewBackground composables to handle showSystemUi, showBackground, and backgroundColor parameters
- Use encodeUnsafeCharacters() in screenshot ID builder for proper character handling
- Remove build artifacts from git tracking
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent af5c160 commit 7d4e4f4
97 files changed
Lines changed: 305 additions & 63 deletions
File tree
- android/paparazzi-preview-scanner-plugin
- build
- classes/kotlin/main
- META-INF
- com/emergetools/paparazzi
- tasks
- kotlin/compileKotlin
- cacheable
- caches-jvm
- inputs
- jvm/kotlin
- lookups
- classpath-snapshot
- libs
- pluginDescriptors
- pluginUnderTestMetadata
- reports/plugin-development
- resources/main/META-INF/gradle-plugins
- tmp/jar
- src/main/kotlin/com/emergetools/paparazzi
- tasks
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Binary file not shown.
0 commit comments