2.5 KiB
Native Mobile Builds
BeatHound uses Capacitor to wrap the web app for Android and iOS. The android/ and ios/ folders contain the native projects.
Android and e/OS
The Android project has a minimum SDK level of 24. It can run on Android 7.0 and newer. Compatible e/OS 4 or newer devices can install the same APK when their Android base meets that minimum.
Build a debug APK
Install Node.js, JDK 21, and Android SDK Platform 36 with Build Tools 36.0.0. Accept the Android SDK licenses, then run:
npm install
npm run android:debug
Gradle creates the debug APK here:
android/app/build/outputs/apk/debug/app-debug.apk
The checked-in file downloads/BeatHound-Android-eOS-1.0.0-debug.apk is debug-signed and linked from the root README. It is for direct testing and sideloading, not for Google Play publication. A release build should use a private signing key that is not stored in Git.
npm run android:debug also copies each new debug build to that downloads/ path.
Install with ADB
With USB debugging enabled on an Android or e/OS device, install the APK with:
adb install downloads/BeatHound-Android-eOS-1.0.0-debug.apk
You can also transfer the APK to the device and open it. The device may ask you to allow installation from that file source.
iOS
Capacitor's Xcode project is in ios/App/App.xcodeproj. An IPA must be built on macOS with Xcode and signed for distribution. This Linux build environment can prepare and sync the project, but it cannot produce or sign an IPA.
On a Mac:
- Install Node.js and Xcode.
- Run
npm installin the repository. - Run
npm run ios:syncto build the web assets and copy them into the iOS project. - Run
npm run ios:opento open the project in Xcode. - Select an Apple development team and signing method in Xcode.
- Archive the app and export the signed IPA from Xcode.
Do not commit Apple certificates, provisioning profiles, or signing keys to this repository. Add the exported IPA to downloads/ only after it has been signed for the intended distribution method.
Mobile build commands
| Command | Result |
|---|---|
npm run build:mobile |
Builds the web assets with relative paths for Capacitor. |
npm run cap:sync |
Builds web assets and syncs both native projects. |
npm run android:debug |
Builds and syncs Android, then creates a debug APK. |
npm run ios:sync |
Builds and syncs the iOS project. |
npm run ios:open |
Opens the iOS project in Xcode; run this on macOS. |