Skip to content

Issue 55 - Make the APK from expo build (testing) #367

@23abdul23

Description

@23abdul23

Description

Create a production-ready Android APK for the SnapMap mobile application using Expo. The build must be configured to use the deployed backend API hosted on Render.

The APK should be installable on physical Android devices for testing and demo purposes.

Note : Use production branch to build the apk. Take .env from Me


Backend Configuration

The app must use the following backend base URL:

API_BASE_URL = https://snapmap.onrender.com

This value must be injected via Expo configuration and accessed inside the app using extra values.


Scope

  • Configure Expo app to use the production backend URL
  • Ensure API_BASE_URL is defined in app.config.ts
  • Build a release APK using Expo tooling
  • Verify the APK works correctly on a physical Android device

Configuration Changes

app.config.ts

Add the backend URL under extra:

extra: {
  API_BASE_URL: "https://snapmap.onrender.com"
}

Ensure the app reads this value using Constants.expoConfig?.extra.


Build Requirements

  • Use Expo-managed workflow
  • Generate an Android APK (not AAB)
  • Build should succeed without local environment hacks
  • No hardcoded localhost URLs anywhere in the app

Output

  • A downloadable .apk file
  • Build logs (Expo / EAS)
  • Confirmation that the APK installs and runs correctly

Acceptance Criteria

  • APK builds successfully
  • App communicates with the production backend
  • Core flows (auth, map, photo upload) work
  • No crashes on app launch
  • API base URL is not hardcoded in source files

Attach a screen recording of the actual APK.


Notes

  • Use EAS Build or Expo classic build
  • This issue does not involve backend changes
  • Environment-specific config should be clean and reusable

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions