Skip to main content

Mobile App Setup

Flutter for iOS & Android.

Prerequisites

  • Flutter SDK v3.5.0+
  • Dart SDK v3.5.0+
  • Android Studio (Android)
  • Xcode (iOS, macOS only)

Quick Start: Sample APK

Want to try the app without building from source? Download the pre-built APK:
Download APK from Google Drive

Steps to Build from Source

  1. Clone Mobile Repository
git clone https://github.com/leyu-opensource-platform/leyu-mobile.git
cd leyu-mobile
  1. Install Dependencies
flutter pub get
  1. Configure Environment
cp .env.example .env

Edit .env:

API_BASE_URL=your_api_base_url
ONESIGNAL_APP_ID=your_onesignal_app_id
  1. Run App
# Development
flutter run

# Release
flutter run --release
  1. Build for Production
# Android
flutter build apk --release

# iOS
flutter build ios --release