// readme

Stub_local_IP.patch# Alfie Native Android App


This is a repository for an e-commerce Android app template.

Setup

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:

Network / GraphQL Setup

The app connects to two Apollo GraphQL services managed via Hilt-qualified ApolloClients:

QualifierServiceDefault emulator URLPurpose
@LegacyClientlegacyhttp://10.0.2.2:4000/graphqlExisting Mock Server β€” queries live here during migration
@NewClientbffhttp://10.0.2.2:3000/graphqlNew BFF (Alfie-BFF) β€” add migrated .graphql files under network/src/main/graphql/bff/

Local development (emulator)

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.

Legacy β€” Mock Server (port 4000)

The legacy client points to the existing Mock Server, which is already…