Skip to main content

flutter_bluetooth_serial_plus 0.5.7 copy "flutter_bluetooth_serial_plus: ^0.5.7" to clipboard
flutter_bluetooth_serial_plus: ^0.5.7 copied to clipboard

Bluetooth Classic serial on Android and Zebra BLE printer connections on Android and iOS.

0.5.7 - 2026-10-28 #

Nueva funcionalidad: impresión Zebra por Bluetooth Low Energy #

  • Se agregan ZebraBle, ZebraBleDevice y ZebraBleConnection para descubrir, conectar y enviar bytes o ZPL a impresoras Zebra con servicio BLE compatible, incluyendo la ZD421, en Android e iOS.
  • Se mantiene la API Bluetooth clásico/SPP de Android sin cambios incompatibles.
  • Se agrega ensurePermissions() y se corrige la respuesta de permisos Android 12+.
  • Envíos fragmentados y confirmados en orden, tiempos límite, recepción de respuestas y liberación de recursos al desconectar.
  • En iOS se recuperan periféricos BLE ya conectados con servicios conocidos. La identificación usa UUID de periférico, no direcciones MAC.
  • El ejemplo permite conectar por MAC o seleccionar vinculados en Android, buscar BLE, imprimir una etiqueta de prueba y enviar ZPL editable.
  • Se propagan los errores de escritura clásicos y se maneja el fin del flujo remoto.
  • Se documentan permisos y diferencias entre plataformas. No se reintentan trabajos ni se cambia de transporte automáticamente para evitar impresiones duplicadas.

0.5.6 - 2026-08-07 #

Se eliminan las notas de compilacion uses or overrides a deprecated API en Android.

  • Intent.getParcelableExtra(String) (obsoleto desde API 33) se reemplaza por IntentCompat.getParcelableExtra(intent, name, BluetoothDevice.class).
  • ContextCompat.startActivity(Context, Intent, Bundle) (obsoleto en androidx.core) se reemplaza por Activity.startActivity(Intent, Bundle).
  • BluetoothAdapter.disable() (obsoleto desde API 33 y sin efecto para apps de terceros) se aisla en un helper: en Android 13+ se abre la pantalla de ajustes de Bluetooth y requestDisable devuelve false.
  • Se elimina el import sin usar de android.os.AsyncTask (clase obsoleta).
  • minSdk sube de 19 a 21 y se actualizan androidx.appcompat a 1.7.1 y androidx.core a 1.16.0.
  • Se habilita -Xlint:deprecation en la compilacion Java del plugin para detectar regresiones.

0.5.5 - 2026-08-07 #

  • Update Gradle

0.5.4 - 2026-07-08 #

Changed #

  • Migrated Bluetooth functionality to improve compatibility with newer Flutter and Android versions.
  • Updated Android build configuration for newer Gradle and Android Gradle Plugin versions.

Fixed #

  • Removed debug output from the plugin.
  • Cleaned unnecessary logs and debug messages.

0.5.3 - 2026-07-07 #

Migración a Kotlin integrado (built-in Kotlin) de Flutter para AGP 9+.

  • Se elimina el plugin org.jetbrains.kotlin.android (Kotlin Gradle Plugin) del bloque plugins.
  • Se elimina el bloque kotlinOptions y se reemplaza por kotlin { compilerOptions { jvmTarget = ... } }.
  • Se fija compileSdk en 36 en lugar de flutter.compileSdkVersion, para asegurar compatibilidad con las últimas dependencias de Android sin depender de la versión de Flutter instalada.

0.5.2 - 2026-07-07 #

Compatibilidad con Gradle 9 y Android Gradle Plugin (AGP) 9.

  • Se elimina el repositorio jcenter() (retirado en Gradle 9) y se reemplaza por mavenCentral().
  • Se migra el DSL de Android obsoleto: compileSdkVersion -> compileSdk, minSdkVersion -> minSdk, lintOptions -> lint.
  • Se elimina buildToolsVersion '30.0.3' para usar la versión por defecto de AGP.
  • Se mueve la dependencia androidx.appcompat al bloque dependencies de nivel superior.
  • Se amplía el rango del SDK de Dart a <4.0.0.

0.5.0 - 2025-07-04 #

Update flutter plugin for new version flutter

0.4.0 - 2021-08-17 #

Update flutter plugin v2.

0.3.2 - 2021-07-15 #

Fixing pubspec.yaml typo.

0.3.1 - 2021-07-15 #

Patch release.

  • Update example to sound null safety and new Material Buttons.
  • Changed FutureOr
  • Fix an unhandled exception when trying to get bluetooth state.

0.3.0 - 2021-07-04 #

Implementing null safety.

0.2.2 - 2019-08-19 #

Patch release.

  • Fix closing connections which are not listening to input (solved #60),
  • Add more clear example of detecting which side caused disconnection,
  • Add exception on adding to output if connection closed,
  • BluetoothConnection cancel is deprecated now, use close instead. It was stupid to name cancel something that closes (it was even documented that way, lol).

0.2.1 - 2019-08-05 #

Patch release.

  • apply patch #48 for some disconnection issues,
  • update ChatPage to newer API,
  • fix and update AndroidX declaration.

0.2.0 - 2019-07-02 #

Two big features packs:

  • Bonding (Pairing):
    • starting outgoing pairing requests,
    • handling incoming pairing requests,
    • remove current bondings to devices,
  • Discoverability!
    • requesting discoverable mode for specified duration,
    • example with timeout countdown,
    • checking discoverable mode.

And few more features:

  • get/set for local (discoverable) device name,
  • getting local adapter address (with some hacks to work on newer Androids),
  • checking for isConnected for discovered or bonded devices,
  • fixed few broadcast receiver leaks.

0.1.1 - 2019-07-01 #

  • Patch #43 for "Error when meet unknown devices".

0.1.0 - 2019-06-19 #

Pull request #35 by @PsychoXIVI changes a lot:

  • Discovering other devices,
  • Multiple connections,
  • Interesting example application,
  • Enabling/Disabling Bluetooth,
  • Byte streams,
  • Overall improvements and fixes.

0.0.5 - 2019-03-18 #

  • Upgrade for AndroidX support (thanks @akilinomendez)
  • New default constructor (thanks @MohiuddinM)
  • Added method write passing byte[] (thanks @rafaelterada)
  • Upgrade to Android Studio 3.3.2

0.0.4 - 2018-12-20 #

  • Unsupported value error correction (thanks @rafaelterada)
  • Added openSettings, which opens the bluetooth settings screen (thanks @rafaelterada)

0.0.3 - 2018-11-22 #

  • async connection and null exception handled (thanks @MohiuddinM)

0.0.2 - 2018-09-27 #

  • isConnected Implementation (thanks @Riscue)

0.0.1 - 2018-08-20 #

  • Only Android support.
6
likes
140
points
2.47k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Bluetooth Classic serial on Android and Zebra BLE printer connections on Android and iOS.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_bluetooth_serial_plus

Packages that implement flutter_bluetooth_serial_plus