This is Android/IOS/browser app which helps to split bills in a group of people.
Android Studio
. Don't try to install all android-related drivers manually, just install Android Studio, it doesn't worth it.. Without Android Studio you will only be able to debug the app in browser.Node 14.20.x, 16.13.x or 18.10.x
Java 17
Android Debug Bridge (ADB)
if you would like to test the app on your own phone, not just emulator
-
Copy files from Github - Settings - Environments - dev to:
src/environments/environment.prod.ts
src/environments/environment.ts
-
Instal dependencies
npm install
-
I don't know exact steps to start the app, it is hell every time... Try to play with these commands:
npx ng build
npx cap copy
- (Copy required files to android folder)npx ionic capacitor run android -l --external
- (Start emulator)
-
Also you may try to open project in Android Studio, build and run app from there:
npx cap open android
- Enable Debug mode
Settings - System - Developer Options - Wireless debugging
- Click at
Wireless debugging
and thenPair device with QR code
- Open
Android Studio - Devices - Pair Devices Using Wi-Fi
- Scan
QR code
with your mobile phone - After pairing you may need to click
Connect
- Deploy app to your mobile phone using
Run app
button in Android Studio or using commandnpx ionic capacitor run android -l --external
- Enable Debug mode at
Settings - System - Developer Options - USB debugging
- Connect your phone to PC using
USB cable
- Deploy app to your mobile phone using
Run app
button in Android Studio or using commandnpx ionic capacitor run android -l --external
Note that there are two environments DEV and PROD. At your mobile phone you may install both of them and they will be treated as independent applications with separate storage and so on..
It means that you can run npm run start-android--win
(--macOS
) and do what every you want with this app, production app with real data will be untouched.
Just make sure that the application has "DEV" prefix in the name and "DEV" icon.
npm run build
- Increment
versionCode
by 1 and minor version ofversionName
inandroid/app/build.gradle