Skip to content

feat(mobile): set up HTTP client for backend API calls #49

Description

@GRACENOBLE

Problem

The mobile app only communicates with Firebase. There is no HTTP client configured to call the Go backend (/api/v1/*), and no pattern for injecting the Firebase ID token into API requests.

Acceptance criteria

  • Configure an OkHttp/Retrofit (or Ktor) client in a DI-friendly location (e.g. data/network/ApiClient.kt)
  • Add an OkHttp interceptor that attaches the Firebase ID token as Authorization: Bearer <token>
  • Define a BASE_URL build config field in build.gradle.kts (reads from local.properties or a build variant)
  • Add a working example call: fetch /api/v1/me and display the result in the home or settings screen
  • Document the pattern in mobile/docs/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: mobileAndroid app (Kotlin + Jetpack Compose)priority: criticalMust fix immediately — production incident or blockertype: featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions