capacitor ble test with tinybuild to bundle the webapp. <100MB node dependencies if tinybuild is installed locally, otherwise it's about 10MB, not counting Android Studio or XCode
https://github.com/capacitor-community/bluetooth-le
npm i
Edit the index.js and optionally the index.html in the www/
folder. All public asset files need to end up in www/
If no tinybuild installed globally: npm i -g tinybuild
or to keep it in dev dependencies npm i --save-dev tinybuild
Build:
tinybuild
npx cap copy
ornpx cap sync
to sync the www/ dist to the platform-specific folders.npx cap open android
to open android studio ready to build and serve the apk.
Build the android project by click the Make Project hammer icon if it doesn't start automatically. Then if you see BUILD SUCCESSFUL, run with your android device connected or the built-in android emulators active.
npx cap copy
ornpx cap sync
npx cap open ios
to open xcode ready to build and serve the app