shivao-projeto/mobile/android/app
PontualTech / Karlão 52ee668879
Some checks are pending
Build Android (APK + AAB) / build-android (push) Waiting to run
fix(ble): plugin nativo @capacitor-community/bluetooth-le pra APK Android v1.9.1
Bug v1.9.0: APK Android mostrava "Web Bluetooth não suportado" porque
Android System WebView desabilita Web Bluetooth API por padrão (segurança).

Fix: instala plugin @capacitor-community/bluetooth-le@^6.1.0 (compatível
com Capacitor 6) que expõe API nativa Android/iOS. JS detecta backend:
- Capacitor (APK): usa window.Capacitor.Plugins.BluetoothLe
- Browser web: usa navigator.bluetooth (Chrome PC continua funcionando)

Mudanças:
- mobile/package.json: nova dep @capacitor-community/bluetooth-le ^6.1.0
- AndroidManifest.xml: BLUETOOTH_SCAN (neverForLocation), BLUETOOTH_CONNECT,
  BLUETOOTH/BLUETOOTH_ADMIN (Android ≤30), uses-feature bluetooth_le
- bleBackend() detecta runtime, ensureBleNativeReady() inicializa plugin
- pairBluetoothDevice + connectAndRead + reconnect + remove abstraem backend
- UUIDs em formato 128-bit (compatível com ambos)
- parseDataView helper: plugin envia value como base64, web envia DataView

iOS: plugin suporta nativamente — quando build iOS for feito, funciona.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 16:24:50 -03:00
..
src fix(ble): plugin nativo @capacitor-community/bluetooth-le pra APK Android v1.9.1 2026-04-28 16:24:50 -03:00
.gitignore feat(mobile): Capacitor Android pronto — APK + AAB v1.2.0 buildados 2026-04-27 17:34:19 -03:00
build.gradle fix(ble): plugin nativo @capacitor-community/bluetooth-le pra APK Android v1.9.1 2026-04-28 16:24:50 -03:00
capacitor.build.gradle feat(mobile): Capacitor Android pronto — APK + AAB v1.2.0 buildados 2026-04-27 17:34:19 -03:00
proguard-rules.pro feat(mobile): Capacitor Android pronto — APK + AAB v1.2.0 buildados 2026-04-27 17:34:19 -03:00