-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work around an issue with ASM rewriting types with names starting with $ #22
Conversation
I ran into the linked issue. As explained in there, the bug is actually with ASM, kinda. However, considering that HiddenApiRefinePlugin is one of the special plugins in the Android ecosystem as it instruments not only symbols that were explicitly annotated, I've started to apply the workaround found in this PR. Feel free to close this PR without merging it! I'm just sharing this in case it's helpful! |
As discussed in the linked issue, I'll raise the underlying issue with ASM. I will then most likely come back to this PR to simply use a new ASM version with the fix (assuming they are OK with it, that is). In the meantime, I'll mark this PR as a draft. |
I'm marking this PR as ready for review while waiting on what the maintainers of ASM think about this problem. I've opened an issue with them here. I will raise another PR once/if ASM fixes the problem on their side. In the meantime, this PR unblocks anyone running into this issue. You might be wondering: Why are other Android instrumentation plugins seemingly not running into this problem? AGP's
|
The ASM maintainers have decided that they won't fix this, so this PR is needed for this plugin to work correctly when using Kotlin Serialization. |
@RikkaW @Kr328 Hello 👋 Could you chime in on here? I'm happy to change this PR to be acceptable to you. Is there anything I should split into a separate PR or explain better? I'd love to remove my fork of this plugin and get back to using your source (and published releases), but this issue affects me as I'm consuming hidden APIs in projects that also use Kotlin Serialization. |
I apologize for the delayed review of your Pull Request. Could you please rebase the main branch :) |
@Kr328 No worries! I've updated the branch. |
See Kotlin/kotlinx.serialization#2285 for more info.