15MahirPertemuan ke-15

Deployment & Distribution

Deploy aplikasi ke Google Play Store dan Apple App Store dengan CI/CD.

Topik Pembelajaran

  • Google Play Store submission
  • Apple App Store submission
  • App signing & certificates
  • TestFlight & beta testing
  • Over-the-air updates (CodePush)
  • CI/CD pipelines (GitHub Actions, Fastlane)
  • Version management & updates
  • Analytics & crash reporting

Referensi & Sumber Daya

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

bash
npm install -g eas-cli

Step 2: Login Expo

bash
eas login # Buat akun gratis di https://expo.dev

Step 3: Konfigurasi Build

bash
eas build:configure

File eas.json akan dibuat:

json
{ "build": { "preview": { "distribution": "internal", "android": { "buildType": "apk" } }, "production": { "android": { "buildType": "app-bundle" } } } }

Step 4: Build APK

bash
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

bash
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)

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

PlatformCara BuildCara Install
Android APKeas build --platform androidDownload & install APK
iOSExpo Go (gratis)Scan QR code
PWA Webnpx expo export --platform webBuka 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:

  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:

AspekBobot
Fungsionalitas30%
UI/UX & desain20%
Multi-platform (Android + PWA + iOS)20%
Kualitas kode15%
Dokumentasi & presentasi15%