-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Transformer-api breaks MoshiX generated adapters #7798
Comments
I tried to investigate the Without realm plugin:
With realm plugin:
I can't find the tasks that actually generates that output, so have a hard time tracing the dependencies. Maybe the files are attached to a task that is somehow not triggered when the new transformer pipeline is in effect. (Or maybe we somehow fail to pick up the resource files.) But the convention about putting the proguard configuration in As a workaround you could maybe just add the generated proguard configuration to |
How frequently does the bug occur?
Always
Description
When we combine MoshiX's Kotlin Compiler plugin with realm using transformer api, our production build misses generated JsonAdapters. Adding a custom rule for R8 adds them back. So the best guess is that realm is somehow blocking Moshi from generating custom rules or removing custom rules, tbh no idea.
Originally reported here: ZacSweers/MoshiX#396
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
The reproduction is attached.
moshigradlecrash-full.zip
Version
10.13.3-transformer-api
What Atlas App Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
MacOS
Build environment
Android Studio version: AS 2022.1.1
Android Build Tools version: AGP's default.
Gradle version: AGP 7.4
The text was updated successfully, but these errors were encountered: