Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gluonhq/attachprinter
Attach Extended with PrinterService
https://github.com/gluonhq/attachprinter
Last synced: about 22 hours ago
JSON representation
Attach Extended with PrinterService
- Host: GitHub
- URL: https://github.com/gluonhq/attachprinter
- Owner: gluonhq
- License: gpl-3.0
- Created: 2022-03-29T08:25:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-15T08:16:36.000Z (over 1 year ago)
- Last Synced: 2024-11-06T17:51:57.690Z (about 2 months ago)
- Language: Java
- Size: 139 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Attach Extended Printer service #
This is an extension to Gluon [Attach](http://gluonhq.com/products/mobile/attach/), the component that addresses the integration with low-level platform APIs in an end-to-end Java Mobile solution, providing Bluetooth printer services on Android.
## Building Attach Extended Printer ##
### Requisites ###
These are the requisites:
* A recent version of [JDK 11](http://jdk.java.net/11/) or superior
* Gradle 6.0 or superior.
* Attach Util 4.0.12 or superiorTo build the Android services:
* Android SDK and Android NDK (The GluonFX plugin installs both when building for Android)
### Attach Documentation ###
Read about Attach: [Device Interface](https://docs.gluonhq.com/#_device_interface)
The section [Building Attach](https://docs.gluonhq.com/#_building_attach) contains more advanced information.
### How to build and install Attach Extended Printer ###
To build the Attach Extended Printer service on the project's root, run:
`./gradlew clean build`
If you want to install them, run:
`./gradlew clean publishToMavenLocal`
### How to use Attach Extended Printer ###
The printer service can be added to a Gluon Mobile project like:
```
Gluon
https://nexus.gluonhq.com/nexus/content/repositories/releases
com.gluonhq.attachextendedprinter
printer
1.0.1com.gluonhq.attachextendedprinter
printer
1.0.1
android
runtime```
and used from the project like:
```
PrinterService.create().ifPresent(service -> {
if (!printer.deviceList().isEmpty()) {
printer.print("something", printer.deviceList().get(0).getAddress(), 3000);
}
});
```