Please install node v14.17.2 or above via nvm.
- Install ionic cli
- npm install
- Add the environment files corresponding to the build you want in the environment folder
- ionic serve -c
env_name
- go to .git/hooks
- run in the shell - chmod +x pre-commit
- Note: It is to prevent keys from accidentally leaking.
- Ping mobile app team for environment files
- Add them inside the environments folder
- Note: Do not make any changes to the environment.ts file - this is a template folder for creating configurations.
- Ping mobile app team for write access to the repository
- ionic capacitor run android -l --external --configuration=staging
It will open android studio, let it build index file and Gradle build for sometime
Then check that studio recognized the right device in the top bar. Press the run button. After every change, you make in the
srcdirectory. It will automatically build the app on the device.
- Add .env file to project (ping mobile app team for the file)
- Install Xcode from App store
- run ionic build --staging
- npx cap sync
- npx cap open ios
- In Xcode, select the connected device from the top bar and click on run button.