paparazzi icon indicating copy to clipboard operation
paparazzi copied to clipboard

Sources jar for layoutlib is empty

Open madisp opened this issue 5 years ago • 4 comments

I've got a view inflation failure originating from an assert in layoutlib and it's very hard to track down as I can't easily place breakpoints into layoutlib due to missing sources.

It would be nice if the published sources jar wasn't empty:

$ unzip -lv /Users/madis/.gradle/caches/modules-2/files-2.1/app.cash.paparazzi/layoutlib-jdk11/4.0.0-alpha02-b169460/2d4f038e18d128a9de2786c4288d6034c7a0807d/layoutlib-jdk11-4.0.0-alpha02-b169460-sources.jar
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Defl:N        2   0% 10-02-2020 11:46 00000000  META-INF/
      25  Defl:N       27  -8% 10-02-2020 11:46 ee027fb2  META-INF/MANIFEST.MF
--------          -------  ---                            -------
      25               29 -16%                            2 files

madisp avatar Mar 09 '21 17:03 madisp

Definitely!

At the moment, we use a prebuilt version of layout-lib, but it would be nice to figure out how to compile and push a source jar.

jrodbx avatar Mar 12 '21 01:03 jrodbx

https://issuetracker.google.com/issues/241795063 is the upstream request for publishing layout lib directly by Google

liutikas avatar Sep 02 '22 17:09 liutikas

If you know the tag/hash, it's enough to just zip it up, isn't it? Until they actually complete the related ticket, even a handzipped version would help a ton.

TWiStErRob avatar Sep 02 '22 20:09 TWiStErRob

Layoutlib jar is built from multiple git repositories from branches that are not open to public, so sadly there is nothing to point to that has everything.

liutikas avatar Sep 02 '22 21:09 liutikas