Closed mhelder closed 5 months ago
Thanks, I'll take a look. PR is welcome as well
I opened https://github.com/ZacSweers/MoshiX/pull/626!
It looks like it wasn't just generating malformed rules for packages with reserved keywords, but also generating incorrect rules for nested classes.
This is a follow-up on https://github.com/ZacSweers/MoshiX/issues/556.
I've updated the previously shared sample to use
0.27.1
, but now seem to be running into https://github.com/ZacSweers/MoshiX/issues/415:Rules generated under
resources/META-INF/proguard
:moshi-com.example.app.data.model.Message.Success.pro:
moshi-com.example.app.data.model.Message.pro:
Rules for the latter were previously missing (see https://github.com/ZacSweers/MoshiX/issues/556), which was fixed in https://github.com/ZacSweers/MoshiX/pull/603. (Thanks!).
However, note:
`data`
in the package of theif
clauses, causing the syntax to be malformed.Success
andUnknown
:.
instead of$
.Comparing the contents of the two files, it seems like the rules for the nested class
Success
itself are correctly generated , but not the sealed class in which it is nested.In case it's relevant: the package declaration of the generated
JsonAdapter
s also contains`data`
: