paparazzi icon indicating copy to clipboard operation
paparazzi copied to clipboard

use Google's published layoutlib

Open gabrielittner opened this issue 1 year ago • 0 comments

I took a stab at #1221. While the release is not stable yet, maybe some of the changes are also required for the Iguana update and make that easier.

Main changes:

  • Updates layoutlib-api to 31.4.0-alpha03
  • Starts using layoutlib and layoutlib-runtime 14.0.1
  • Bumps compileSdkVersion to 34 (tests were broken without this)
  • Removes the libs for publishing layoutlib to maven central

There were some changes in the Paparazzi code to adapt to changed layoutlib behavior/APIs. The biggest change there is that System_Delegate.setNanoTime isn't a simple setter anymore. Instead it records the previous nanoTime() before setting the new one and nanoTime() itself is the last set time, minus the previous time, plus the chroreographer time. Because of that I needed to make some changes on how the time is updated. Another change is that there is now a Choreographer_Delegate that allows executing the callbacks, so I was able to remove the reflection that was needed before.

gabrielittner avatar Jan 14 '24 02:01 gabrielittner