Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (17 loc) · 1.09 KB

README.md

File metadata and controls

27 lines (17 loc) · 1.09 KB

capacitor_ble_tinybuild

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

In your project root

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/

Build step:

If no tinybuild installed globally: npm i -g tinybuild or to keep it in dev dependencies npm i --save-dev tinybuild

Build:

  • tinybuild

Android Studio (install it first)

  • npx cap copy or npx 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.

XCode

  • npx cap copy or npx cap sync
  • npx cap open ios to open xcode ready to build and serve the app