The SelfHelp Mobile app is a tool thar renders SelfHelp CMS in the app The basic concept is as follows:
Pages are organized as menus. Sub pages are organized as sub-menus
based on projects
./src/env/project.config.ts
with command: node ./src/env/script.js
ionic cap add android
android
copy file google-services.json
in android/app
folder npx capacitor-assets generate
- add resourcesionic cap build
ionic cap sync
ionic cap sync --inline
for debugging add source mapsnpx ionic cap run android --target=ce09193988d5244e0d7e --livereload --external --configuration=production
- local command for Stefan's tabletionic capacitor run android -l --external
for local testing; check firewall and ports if it does not work on device but works on emulator. Also the device should be in the same network. Check if node is added.ionic cap run ios -l --external
- iOS - after the error, go to the folder and rename your_app.app
to App.app
fixionic cap build
ionic cap copy
ionic cap sync
capacitor.config.ts
set NODE_ENV=habirupt
, check: echo %NODE_ENV%
$env:NODE_ENV = "habirupt"
, check echo $env:NODE_ENV
NODE_ENV=habirupt
ionic cap build
ionic cap copy
ionic cap sync
npx capacitor-assets generate --assetPath "./projects/$env:NODE_ENV"
npx trapeze run .\projects\$env:NODE_ENV\config.yaml --android-project android
Be sure that the files are not locked when executed. Sometimes a java process is not closed and keep the files locked. Kill it.npm install -g appcenter-cli
appcenter login
ionic cap build android
ionic cap build ios
ionic cap sync android
ionic cap sync ios
appcenter codepush release -a TPF-UniBe/SelfHelp-Android -c android/app/src/main/assets/public/ -d Production -t 3.3.0 --description 'v3.3.12' --mandatory true
appcenter codepush deployment history -a TPF-UniBe/SelfHelp-Android Production
appcenter codepush deployment add -a TPF-UniBe/SelfHelp-ios Production
appcenter codepush deployment list -k --app TPF-UniBe/SelfHelp-ios
appcenter codepush release -a TPF-UniBe/SelfHelp-ios -c ios/App/App/public/ -d Production -t 3.0.0 --description 'My Description' --mandatory true
appcenter codepush deployment history -a TPF-UniBe/SelfHelp-ios Production
ionic g component styles\myCoolStyle
- the command should be executed in the SelfHelpMobile folder