cashapp / paparazzi

Render your Android screens without a physical device or emulator
https://cashapp.github.io/paparazzi/
Apache License 2.0
2.22k stars 210 forks source link

Fix aar2jar output file paths to resolve missing compose dependencies #1489

Closed colinmarsch closed 6 days ago

colinmarsch commented 1 week ago

Previously the outputFile path was something like the following for each input: /Users/cmarsch/.gradle/caches/8.8/transforms/f148f675e43cbd2a21221ba4f5df0fa0-749cc3c4-82fb-4932-a240-115b2a884778/transformed/lifecycle-livedata-core-2.6.2, now it's more simply: lifecycle-livedata-core-2.6.2-classes.jar.

This resolves an issue where all androidx.compose dependencies in the paparazzi module were appearing as Unresolved references in the IDE.

This change is based on the previous logic that was used in this transfromation.