Skip to main content

Building For Android

Use the Android target when the shared Hosanna app needs to run on Android phones or tablets. The app can reuse shared screens, state, AppConfig, fragments, networking, and business logic while Android handles native packaging, lifecycle, and device integration.

Prerequisites

  • Android Studio with the Android SDK installed.
  • Android emulator images or physical Android devices.
  • Access to the licensed Hosanna framework sources and tooling for the project.
  • Android signing credentials for release builds.
  • The project dependencies installed with npm install.

Build And Run

  1. Generate Hosanna structs and project metadata if your project does not do this automatically:
    npm run generate
  2. Open the Android platform project in Android Studio.
  3. Select an emulator or physical device.
  4. Build and run from Android Studio or the configured launch target.

Debugging

  • Use Web for fast shared-runtime checks.
  • Use Android Studio Logcat and debugger for native logs, lifecycle, memory, and packaging issues.
  • Validate touch input, text input, orientation, safe areas, networking, app resume, and low-memory behavior.

See Android for platform-specific runtime notes.