A mobile app to add transactions from your smartphone
You must build your own apk, as you have to store some credentials within the app:
- the username
- the application key
Only your password will be prompted each time you open the app.
This tutorial present how to build the app in a Linux system (with examples in Ubuntu).
For other systems, please adapt it using external specific documentations.
1. Install Android studio, and launch it to configure it.
sudo npm install -g cordovacurl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"Edit your ~/.bashrc file and add this content:
export ANDROID_HOME=/home/$USER/Android/Sdk
export PATH=/home/$USER/Android/Sdk/tools:/home/$USER/Android/Sdk/tools/bin:/home/$USER/Android/Sdk/platform-tools:$PATH(replacing $USER by your user).
Open a new bash
Run this command to accept all licenses:
sdkmanager --licensesAnswer "yes" to all prompts.
sdk install gradle 5.1git clone https://gite.flo-art.fr/floreal/trackmybank-app.git
Edit the file www/js/credentials.js and set here your application key (defined in the settings of your trackmybank webserver) and your username used to login.
keytool -genkey -v -keystore /path/to/android.keystore -alias trackmybank -keyalg RSA -keysize 2048 -validity 10000(edit the path to the keystore in the command line)
cordova build android --release -- --keystore="/path/to/android.keystore" --storePassword=<store_password> --alias=trackmybank --password=<key_password>Now, install the generated apk in your smartphone!
You can run this app in an emulator on your computer (for debugging if you change the app).
- You all previous step until step 7 included.
- Install qemu-kvmv and add your user to the kvm group.
- Open Android studio and create an empty project (we will not use it).
- Go to Tools -> AVD Manager, and create a new virtual device.
cordova buildcordova run androidcordova is able to create ios apps too. I have not tested it. It's to your own risks.
Pages I have read to build the initial app:
https://www.pubnub.com/blog/how-to-convert-your-javascript-app-into-an-android-app-with-phonegap/
https://cordova.apache.org/docs/en/8.x/guide/platforms/android/index.html