We're using MoshiX's moshi-ir. Can we see/decompile somewhere the bytecode to see the actual impl of an adapter? thx
m
mbonnin
12/01/2022, 12:13 PM
worst case you can use javap from the .class files in
build/classes/something
mbonnin
12/01/2022, 12:14 PM
That's on a non-Android project. Not sure where the .class files are in Android but something like below should be able to find them
Copy code
find build |grep JsonAdapter.class
z
Zac Sweers
12/01/2022, 4:02 PM
yeah javap’s your best option for raw class data. If you want to read an IR source dump you can enable a very noisy debug logging setting in gradle via
Copy code
moshi {
debug.set(true)
}
Zac Sweers
12/01/2022, 4:02 PM
IR source dump == more like source code. Not perfect syntax but you should be able to grok it looking at it