Assigned
Status Update
Comments
al...@google.com <al...@google.com> #2
After some googling I found https://github.com/android/camera-samples/blob/master/CameraXBasic/app/src/main/java/com/android/example/cameraxbasic/utils/AutoFitPreviewBuilder.kt which does what I want. Would it be possible to fold this into the main library or at least make it configurable without the need for that class?
Description
I'm trying to convert from
inline classes
to@JvmInline value class
. This is supposed to be a binary compatible change, and in fact is supposed to use the same codepath in the IR lowering so in theory the output class files should be roughly identical, and a brief check withjavap -private
seems to confirm this. However, metalava is complaining bitterly about methods being removed (methods which, as far as I can tell with javap, are still there).Example (running
./gradlew :compose:runtime:runtime:checkApiRelease --no-daemon
fails):And run
./gradlew :compose:runtime:runtime:checkApiRelease --no-daemon
to see the errors.It gives errors like:
But the class files (
javap -private
) look like this: