48 lines
1.2 KiB
Markdown
48 lines
1.2 KiB
Markdown
# Build debug APKs (User, Driver, Merchant)
|
|
|
|
## One command (recommended)
|
|
|
|
From the repo root (where this file is):
|
|
|
|
```bash
|
|
./build-debug-apks.sh
|
|
```
|
|
|
|
**Requires:** JDK 17+ and Android SDK (API 33) installed. If you use Android Studio, it provides both.
|
|
|
|
---
|
|
|
|
## Output locations
|
|
|
|
After a successful run you get:
|
|
|
|
| App | Debug APK path |
|
|
|---------|----------------|
|
|
| **User** | `OnTime_User_live/app/build/outputs/apk/debug/app-debug.apk` |
|
|
| **Driver** | `OnTime_Driver_live/app/build/outputs/apk/debug/app-debug.apk` |
|
|
| **Merchant**| `OnTime_Merchant_live/app/build/outputs/apk/debug/app-debug.apk` |
|
|
|
|
---
|
|
|
|
## Build each app separately
|
|
|
|
```bash
|
|
# User
|
|
cd OnTime_User_live && ./gradlew assembleDebug && cd ..
|
|
|
|
# Driver
|
|
cd OnTime_Driver_live && ./gradlew assembleDebug && cd ..
|
|
|
|
# Merchant
|
|
cd OnTime_Merchant_live && ./gradlew assembleDebug && cd ..
|
|
```
|
|
|
|
---
|
|
|
|
## Signing
|
|
|
|
- **User** and **Merchant** use `app/ontimekeystore.jks` (same keystore). User has it; the script copies it to Merchant if missing.
|
|
- **Driver** uses the default Android debug keystore (no custom jks).
|
|
|
|
If User or Merchant build fails with “keystore not found”, ensure `OnTime_User_live/app/ontimekeystore.jks` exists, then run the script again.
|