This is a hybrid mobile application (android and ios) built using ionic framework as front end and firebase as backend (using flame UI).
npm install -g firebase-tools
npm install -g ionic@latest
npm i -D -E @ionic/lab
sudo gem install cocoapods
pod setup
nvm use v9.11.1
npm install
ionic serve --lab
//List OS avilable for emulation
ionic cordova emulate ios --list
//start the emulator with a specific OS
ionic cordova emulate ios --emulator --livereload --consolelogs --target "iPhone-X"
ionic cordova emulate android --emulator --livereload --consolelogs
npm upgrade -g firebase-tools
firebase use saibisa-103 # create project using firebase ui
firebase deploy # --only hosting
This is a one time process. The same key has to be used to sign the app before submitting to playstore.
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
Update version -- package.json -- config.json
ionic cordova platform remove android
ionic cordova platform add android
Note - Using --prod
flag hangs the build because of a known issue.
Until we get a permanent fix use the first command to generate prod build.
ionic cordova build android --aot --minifyjs --minifycss --release
ionic cordova build android --release --prod
rm node_module
npm install
cp ${LOCAL_VAULT}/my-release-key.keystore ./platforms/android/app/build/outputs/apk/release/
cd ./platforms/android/app/build/outputs/apk/release/
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore app-release-unsigned.apk alias_name
curl https://raw.githubusercontent.com/maoxm/zipalign/master/zipalign >> zipalign
chmod 775 zipalign
./zipalign -vf 4 app-release-unsigned.apk saibisa-app.apk
Manually publish saibisa-app.apk
using play console