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
- Clone Mobile Repository
git clone https://github.com/leyu-opensource-platform/leyu-mobile.git
cd leyu-mobile
- Install Dependencies
flutter pub get
- Configure Environment
cp .env.example .env
Edit .env:
API_BASE_URL=your_api_base_url
ONESIGNAL_APP_ID=your_onesignal_app_id
- Run App
# Development
flutter run
# Release
flutter run --release
- Build for Production
# Android
flutter build apk --release
# iOS
flutter build ios --release