Installation
Preparing the environment
Follow the official instructions to set up your development environment: Capacitor Installation Guide
Clone the repository and install dependencies:
bash
git clone git@github.com:GeotrekCE/Geotrek-mobile.git
cd Geotrek-mobile
npm installCreate your own application
To customize the application for your territory, you need to modify at least the following files:
capacitor.config.tssrc/environments/environment.tssrc/environments/environment.prod.ts
Also replace the graphic resources with your own files:
resources/icon.png(1024×1024 px)resources/splash.png(2732×2732 px)
Building a production version
Build the application in production mode
bash
npx ionic build --configuration productionAdd a mobile platform
iOS
bash
npx cap add iosAndroid
bash
npx cap add androidGenerate icons and splash screens
bash
npx @capacitor/assets generate --android --iosNative configuration
bash
npx trapeze run config.yamlOnce the configuration is applied, you can generate the final application using Xcode (iOS) and Android Studio (Android).