Capacitor

https://capacitor.ionicframework.com/docs/getting-started/with-ionic

setup

initialize ionic project

npm install -g ionic

# select N for cordova
ionic start myApp sidemenu
cd myApp

# capacitor conflicts with Cordova's Splashscreen Plugin
npm uninstall --save cordova-plugin-splashscreen

add capacitor

npm install --save @capacitor/core @capacitor/cli

npx cap init

# or ...
npx cap init gianomobile org.csgalileo.gianomobile

build www folder

npm run build

add platform

npx cap add android
npx cap sync


# desktop
# npx cap add electron

android studio:

local.properties
ndk.dir=/opt/android-ndk-r14b
sdk.dir=/opt/android-sdk

add plugin

npm install really-cool-plugin
npx cap update

workflow

deploy: