Build Android APK & iOS + Tugas Akhir
Tujuan Pembelajaran
- Build APK Android dengan EAS Build
- Testing iOS via Expo Go
- Memahami alur distribusi aplikasi mobile
A. Build Android APK dengan EAS
Step 1: Install EAS CLI
bashnpm install -g eas-cli
Step 2: Login Expo
basheas login # Buat akun gratis di https://expo.dev
Step 3: Konfigurasi Build
basheas build:configure
File eas.json akan dibuat:
json{ "build": { "preview": { "distribution": "internal", "android": { "buildType": "apk" } }, "production": { "android": { "buildType": "app-bundle" } } } }
Step 4: Build APK
basheas build --platform android --profile preview
Tunggu 5-15 menit. Download APK dari link yang diberikan.
Step 5: Install di HP Android
- Download file .apk dari link build
- Transfer ke HP Android
- Buka file → Install (aktifkan "Unknown Sources")
B. Testing iOS via Expo Go
bashnpx expo start # Scan QR code dengan Expo Go di iPhone
Catatan: Build iOS native memerlukan Apple Developer Account ($99/tahun). Untuk praktikum, gunakan Expo Go sebagai alternatif gratis.
C. Build Lokal (Tanpa Cloud)
bash# Generate Android project npx expo prebuild --platform android # Build APK dengan Gradle cd android ./gradlew assembleRelease # APK di: android/app/build/outputs/apk/release/
D. Ringkasan 3 Platform
| Platform | Cara Build | Cara Install |
|---|---|---|
| Android APK | eas build --platform android | Download & install APK |
| iOS | Expo Go (gratis) | Scan QR code |
| PWA Web | npx expo export --platform web | Buka URL → Add to Home |
E. TUGAS AKHIR PRAKTIKUM
Buat 1 aplikasi lengkap yang berjalan di 3 platform:
Persyaratan:
- Minimal 3 screen dengan navigasi
- Fetch data dari API (minimal 1 endpoint)
- Simpan data lokal (AsyncStorage)
- UI responsif dengan animasi
- Loading & error handling
Yang Dikumpulkan:
- Source code di GitHub
- File APK Android
- URL PWA yang live
- Video demo 3-5 menit
- Laporan akhir (maks 5 halaman)
Penilaian:
| Aspek | Bobot |
|---|---|
| Fungsionalitas | 30% |
| UI/UX & desain | 20% |
| Multi-platform (Android + PWA + iOS) | 20% |
| Kualitas kode | 15% |
| Dokumentasi & presentasi | 15% |