Show pageOld revisionsBacklinksAdd to bookExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Capacitor ====== https://capacitor.ionicframework.com/docs/getting-started/with-ionic ===== setup ===== initialize ionic project <code> 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 </code> add capacitor <code> npm install --save @capacitor/core @capacitor/cli npx cap init # or ... npx cap init gianomobile org.csgalileo.gianomobile </code> build www folder <code> npm run build </code> add platform <code> npx cap add android npx cap sync # desktop # npx cap add electron </code> android studio: * remove android/.grade and android/.idea folders * adjust android/local.properties * import project as external gradle model from <project/android> folder <file txt local.properties> ndk.dir=/opt/android-ndk-r14b sdk.dir=/opt/android-sdk </file> add plugin <code> npm install really-cool-plugin npx cap update </code> ===== workflow ===== * ionic serve * edit sources deploy: * npm run build * npx cap sync # to sync platforms * apk with android studio tips/capacitor.txt Last modified: 2018/03/29 12:55by scipio