Author text:
Updating the Platform
NOTE: App update needs a good knowledge of React Native and Firebase. We will not be able to help if you are unable to do it or there are issues while updating. Support Explained - Do not risk a Live setup. Hire a professional. We also have paid services for these things.
These are the points to be taken care of.
1. If you want to upgrade, first check the latest documentation from code folder for the node.js compatibility. The version of the node.js will be mentioned in the Environment Setup part. If the new setup needs a higher verison of node.js, uninstall the old one and install the new one.
e.g. Version 1.9.0 needs Node.js 16.15.0
2. Update the Global Environment packages to latest version first after node.js is upgraded.
npm install -g expo-cli
npm install -g firebase-cli
npm install -g yarn
3. Copy and Replace the config.json file from old code if both have same lines, or copy the values as per the starting key of each line. Do not change the data structure of the file.
4. Copy and replace the branding images on the following folders
mobile-app\assets\images
web-app\src\assets\img
5. Put the Payment Gateway API keys as changed in the last code. The location is the same as the previous one.
6. Run "yarn" and "yarn deploy"
7. Update the database - Copy the files from this link
https://drive.google.com/drive/folders/1fH44K47mG9sj3436vJXaCAWrKml1cHSp?usp=sharing and paste in the root of the project folder and run the following commands.
firebase database:update /settings settings.json
If Taxi App Run this
firebase database:update /languages/lang1 taxi-language-1.9.0.json
If Delivery App run this
firebase database:update /languages/lang1 delivery-language-1.9.0.json
8. Create Admin User as per 1.9.0 update - Copy the files from this link -
https://drive.google.com/drive/folders/1PwexbNqY8y_P29ykR0Pyw4FXR-YlusBY?usp=sharing and paste in the root of the project folder
You need to change the phone number inside the files as per your Admin. International format is must.
And run the following commands.
firebase auth:import admin-user-auth.json
firebase database:update /users/admin-user-001 admin-user.json
9. To update the App normally build the Apps
yarn app:build-android
yarn app:build-ios