You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question. This issue tracker is not the place for questions. If you want to ask how to do
something, or to understand why something isn't working the way you expect it to, use Stack
Overflow. https://stackoverflow.com/questions/tagged/retrofit
Feature Request. Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
Also it would be great to improve retrofit's Readme, R8 / ProGuard section and mention problem #4011 (comment) with showing that retrofit-response-type-keeper
exists
retrofit-response-type-keeper is doing great job and is working fine, but for it to work I needed to add kapt plugin when all other processors (in my case it was hilt, room) support ksp.
The text was updated successfully, but these errors were encountered:
I see. I wasn't aware that KSP is not stable enough due to Google recommendation to migrate.
Kapt is now in maintenance mode, and we recommend migrating from kapt to KSP wherever possible. In most cases, this migration only requires changes to your project's build configuration. https://developer.android.com/build/migrate-to-ksp
In my case, in project with 15 endpoints, kapt task has ~7s while full release build has 4m30s, and it doesn't affect dev builds at all due to kaptRelease, so maybe it's not that big deal as it isn't like generating some big Dagger graph and it's reasonable to wait for KSP2.
Separating your network layer into its on module will allow reducing that time to effectively 0, since it will always reuse the cached output rather than running on every change.
What kind of issue is this?
Question. This issue tracker is not the place for questions. If you want to ask how to do
something, or to understand why something isn't working the way you expect it to, use Stack
Overflow. https://stackoverflow.com/questions/tagged/retrofit
Bug report. If you’ve found a bug, spend the time to write a failing test. Bugs with tests
get fixed. Here’s an example: https://gist.github.com/swankjesse/6608b4713ad80988cdc9
Feature Request. Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
I wish there was support for KSP annotation processor for retrofit-response-type-keeper.
Also it would be great to improve retrofit's Readme, R8 / ProGuard section and mention problem #4011 (comment) with showing that retrofit-response-type-keeper
exists
Some story for background:
I had today problem described
IllegalArgumentException
thrown when calling a service operation with unused return type #4011 (comment)My build config is
Working solutions for problem are two:
-keep, allowobfuscation, allowoptimization, allowaccessmodification @kotlinx.serialization.Serializable class *
retrofit-response-type-keeper is doing great job and is working fine, but for it to work I needed to add kapt plugin when all other processors (in my case it was hilt, room) support ksp.
The text was updated successfully, but these errors were encountered: