This repo is part of Alfie: a project to boostrap eCommerce Projects (Front-end mobile/web and BE and Graph APIs)
HEALTH ? 84 / Healthy
This repo is part of Alfie: a project to boostrap eCommerce Projects (Front-end mobile/web and BE and Graph APIs)
// readme
Stub_local_IP.patch# Alfie Native Android App
This is a repository for an e-commerce Android app template.
If you wish to use Alfie-Mock server for BE purposes for real devices, please stub the local IP and allow the connection in network_security_config.xml Like so:
ApolloModule.kt:
network_security_config.xml:
The app connects to two Apollo GraphQL services managed via Hilt-qualified ApolloClients:
| Qualifier | Service | Default emulator URL | Purpose |
|---|---|---|---|
@LegacyClient | legacy | http://10.0.2.2:4000/graphql | Existing Mock Server β queries live here during migration |
@NewClient | bff | http://10.0.2.2:3000/graphql | New BFF (Alfie-BFF) β add migrated .graphql files under network/src/main/graphql/bff/ |
The Android emulator routes 10.0.2.2 to your host machineβs localhost, so no extra config is needed when running on the emulator.
The legacy client points to the existing Mock Server, which is alreadyβ¦