nimblehq / flutter-templates

A repository contains Flutter templates that are used by Nimble developers
MIT License
23 stars 4 forks source link

Add Network inspector to inspects the HTTP(S) requests/responses #221

Open luongvo opened 1 year ago

luongvo commented 1 year ago

Why

Inspired by what we did in Android Templates, having a built-in Chucker tool that helps to inspect the HTTP(S) requests/responses is really helpful & efficient for the team, PM, and testers to determine and resolve the networking issues in the app build. We have the same tool in Flutter called Alice (more powerful than Chucker Flutter), so it's time to add it to our template.

Who Benefits?

Developers, PM, testers

sleepylee commented 1 year ago

not sure what we used in Varun but we definitely need this

sleepylee commented 1 year ago

yep I just found that it was alice as well.

luongvo commented 1 year ago

@sleepylee yeah, to be honest, we did not have any network inspector tool in the Varun project. Maybe in your working project @doannimble. After researching, Alice has more powerful features than Chucker Flutter with higher rating, so it would be more stable 😄

sleepylee commented 1 year ago

https://nimble-co.slack.com/archives/C01NKCFNE6R/p1636107577006200?thread_ts=1636107577.006200&cid=C01NKCFNE6R

doannimble commented 1 year ago

@luongvo We're using https://pub.dev/packages/requests_inspector in easy Hotel Flutter project. I'm not sure if Alice supports GraphQL 🤔 cc @sleepylee

sleepylee commented 1 year ago

@doannimble it needs to be detachable i.e on the Firebase/Testflight build without connecting to dev tool. I think we still use dio under the hood of our graphql calls? I'm not sure but we can check it out. Remember that we don't always have graphql project, and this is supporting Dio http requests as the first case

luongvo commented 1 year ago

@luongvo We're using pub.dev/packages/inspector in easy Hotel Flutter project. I'm not sure if Alice supports GraphQL 🤔 cc @sleepylee

it seems you sent a wrong tool @doannimble 😄

doannimble commented 1 year ago

@luongvo @sleepylee Inspector supports both dio and graphQL. In easy Hotel Flutter project, we are using both RESTful and GraphQL. For GraphQL calls, we use gql_link to execute the request, not dio

luongvo commented 1 year ago

@doannimble do you mean this tool https://pub.dev/packages/requests_inspector?

luongvo commented 1 year ago

Confirmed by @doannimble here to use https://pub.dev/packages/requests_inspector for both HTTP with Dio and GraphQL with gql_link.

sleepylee commented 1 year ago

in case we are still discussing with tool to use, it is open for discussion, thus I updated the title

manh-t commented 1 year ago

@luongvo I think we can create the voting so the members can choose the preferred tool. IMO, both request_inspector and Alice are easy to use, but I would choose Alice because it has more ratings on the Github page (more users use it so probably it's more stable 💡 ) 😄