ionic-planb-logistic-app-fl.../lib/providers
Mathias Beaulieu-Duncan a60f92c56d Add feature flag to switch between HTTP and gRPC transports
Adds ApiModeConfig class with support for selecting API transport mode:
- ApiMode enum (http, grpc)
- Static configurations: development (HTTP), developmentGrpc, production, productionGrpc
- fallbackToHttpOnError option for graceful degradation

Creates unified deliveryRoutesProvider and deliveriesProvider that:
- Respect apiModeConfigProvider for transport selection
- Automatically delegate to gRPC or HTTP providers
- Fall back to HTTP on gRPC failures when configured

To enable gRPC, override apiModeConfigProvider with ApiModeConfig.developmentGrpc
in the ProviderScope.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-20 13:11:58 -05:00
..
providers.dart Add feature flag to switch between HTTP and gRPC transports 2026-01-20 13:11:58 -05:00