epfl-cs358 / 2024sp-helping-hand

2 stars 0 forks source link

Build the first app setup #22

Closed pinar-oray closed 2 months ago

pinar-oray commented 2 months ago

@gruvw

gruvw commented 2 months ago

So this week I have built the first version (v0) of the application. I have set up the full Flutter environment with strong project code structure. The code that I produced figures on the branch application-setup, see PR #28 (about 1000 lines). The application was tested on android and on the WEB, both works great so far.

The emphasis was not (yet) placed on the user interface (as requested). Instead, I already implemented the network discovery protocol business logic using asynchronous programming (and displaying spinners as user feedback).

See result below:

On top of that, I implemented a "fake" copy of the different devices response for the discovery protocol (and for other requests later). It means that, using dependency injection, we can test our code without having any other active devices around. When using this testing environment, all outgoing request will be arbitrary delayed and answered with plausible data (and we can also make them error on purpose).

I will try the discovery process using the real two ESP-32 devices with @unglazedstamp tomorrow before our meeting.

There are still a lot of things to build in the core part of the application, especially state management that I would like to discuss with the team tomorrow.