🔬 Praktikum 15: Build Android APK & iOS + Tugas Akhir
Tujuan Praktikum
A. Build Android APK dengan EAS
Step 1: Install EAS CLI
npm install -g eas-cli
Step 2: Login Expo
eas login
# Buat akun gratis di https://expo.dev
Step 3: Konfigurasi Build
eas build:configure
File eas.json akan dibuat:
{
"build": {
"preview": {
"distribution": "internal",
"android": { "buildType": "apk" }
},
"production": {
"android": { "buildType": "app-bundle" }
}
}
}
Step 4: Build APK
eas build --platform android --profile preview
Tunggu 5-15 menit. Download APK dari link yang diberikan.
Step 5: Install di HP Android
1. Download file .apk dari link build
2. Transfer ke HP Android
3. Buka file → Install (aktifkan "Unknown Sources")
B. Testing iOS via Expo Go
npx 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)
# 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:**
**Yang Dikumpulkan:**
1. Source code di GitHub
2. File APK Android
3. URL PWA yang live
4. Video demo 3-5 menit
5. 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% |