ChuckerTeam / chucker

🔎 An HTTP inspector for Android & OkHTTP (like Charles but on device)
Apache License 2.0
3.97k stars 351 forks source link

Use parametrized type tokens for GSON converters #1166

Closed koral-- closed 9 months ago

koral-- commented 10 months ago

Fixes "TypeToken must be created with a type argument: new TypeToken<...>() {}; When using code shrinkers (ProGuard, R8, ...) make sure that generic signatures are preserved." errors.

:camera: Screenshots

N/A

:page_facing_up: Context

One may use Chucker with optimized builds.

:pencil: Changes

Change how type tokens for lists are created so it works also in optimized/shrinked builds. Just a different GSON API is now used, no changes in effects.

:paperclip: Related PR

N/A

:no_entry_sign: Breaking

Nothing

:hammer_and_wrench: How to test

Use chucker (standard, not no-op) with a release build type or enable minification in debug build type.

:stopwatch: Next steps

N/A

cortinico commented 10 months ago

@koral-- can you update the CHANGELOG.md file as well?

cortinico commented 9 months ago

Thank you 🙏