flutter_stetho icon indicating copy to clipboard operation
flutter_stetho copied to clipboard

Provide ability to decode serialized responses

Open alanrussian opened this issue 6 years ago • 3 comments

We transport data using binary protos. Unfortunately, this means that responses look, for lack of a better term, like garbage in Stetho when using this plugin :(

Would it be possible for us to encode the responses in Dart before they get sent to the platform channel? It would probably have to be done at a higher level than HttpOverrides as we don't know the expected format in order to deseralize the data there.

alanrussian avatar Jun 20 '18 18:06 alanrussian

Good call -- looks like the original Stetho package has support for this type of transformation. Would you be willing to help by submitting a PR for this use-case? I'll try to find time, but don't have a ton of free time in the next 3-4 of weeks!

brianegan avatar Jun 21 '18 11:06 brianegan

I'm unfortunately very limited on time as well. No worries if you're unable to get to it.

On Thu, Jun 21, 2018, 4:39 AM Brian Egan [email protected] wrote:

Good call -- looks like the original Stetho package has support for this type of transformation. Would you be willing to help by submitting a PR for this use-case? I'll try to find time, but don't have a ton of free time in the next 3-4 of weeks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/brianegan/flutter_stetho/issues/4#issuecomment-399073974, or mute the thread https://github.com/notifications/unsubscribe-auth/ACH0ZzNfW83AFzYAo_-TpZ7TGFr0qwgrks5t-4XsgaJpZM4Uvv3M .

alanrussian avatar Jun 21 '18 15:06 alanrussian

There are great tools in golang that will receive he proxies data on your laptop and pipe them into chrome debugging tools.

But I have to admit I am quite curious about the Facebook library that converts the protobuf on the mobile. Anyone got a link ??

ghost avatar Aug 24 '18 12:08 ghost