Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additions to the Starxpand Flutter #7

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7301730
Increase build version
ro0t Sep 28, 2023
437eb9b
<:o)
ro0t Nov 2, 2023
83a46c9
New version and try setOnTime(0)
ro0t Nov 2, 2023
c30df01
OnTime 1
ro0t Nov 2, 2023
876ed2b
Add display commands to the starxpand flutter package.
ro0t Nov 13, 2023
8cf11b3
Cleanup and add the updateDisplay method call
ro0t Nov 13, 2023
f4e2674
Upgrade the version number
ro0t Nov 13, 2023
7fb435e
Implement GetStatus
ro0t Nov 14, 2023
6aa2f50
Add print line
ro0t Nov 15, 2023
1769620
Add the commented width to the enum?
ro0t Nov 15, 2023
e119935
Increase version for the cacheeeeeeeeeeeeeeeeee
ro0t Nov 15, 2023
976804a
0.1.5
ro0t Nov 21, 2023
6818506
Revert the repo/homepage changes
ro0t Nov 21, 2023
9bfbb64
Update stario10 version and more controlled printer connections
ro0t Dec 19, 2023
1b22641
UnTshhh
ro0t Dec 20, 2023
42e6338
UnTshhh2
ro0t Dec 20, 2023
eb80e83
Monitor
ro0t Dec 20, 2023
0a6d47c
Event callbacks
ro0t Dec 21, 2023
ac0ca82
Just in case the user gets Bad state: No element. (Supporting backwar…
ro0t Dec 21, 2023
16737ff
Just in case the user gets Bad state: No element. (Supporting backwar…
ro0t Dec 21, 2023
95bed45
Close TCP connections so we don't fill the printer.
ro0t Dec 22, 2023
8349f40
Close LAN/USB connections to prevent max pooling
ro0t Dec 22, 2023
3f5b567
BYTES
ro0t Dec 22, 2023
c973721
Bytes baby
ro0t Dec 22, 2023
de68f32
send the printer hehe
ro0t Jan 18, 2024
b227ad0
Retry logic in the printCommands method
ro0t Jan 24, 2024
efd1f58
Remove the debug test
ro0t Jan 24, 2024
ce32962
Revert to default functionality
ro0t Feb 12, 2024
c1ec6bc
Original functionality. Lets se how this works.
ro0t Feb 12, 2024
065dac5
Namespace
ro0t Jul 31, 2024
2f6c64a
Lfg
ro0t Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,25 @@ doc.addDrawer(StarXpandDocumentDrawer());
StarXpand.printDocument(printer, doc);
```

Display:

```dart
var displayDoc = StarXpandDocumentDisplay()
..actionClearAll()
..actionClearLine()
..actionShowText("StarXpand says:\n")
..actionClearLine()
..actionShowText("Hello world!");

StarXpand.updateDisplay(printer, displayDoc);
```

## Available APIs

```dart
StarXpand.getStatus(printer);
StarXpand.findPrinters(interfaces, timeout, callback);

StarXpand.updateDisplay(printer, stringData);
StarXpand.openDrawer(printer);
StarXpand.printDocument(printer, document);
StarXpand.startInputListener(printer);
Expand Down
5 changes: 3 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 31
namespace 'com.ovatu.starxpand'
compileSdkVersion 34

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -47,5 +48,5 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.starmicronics:stario10:1.3.0'
implementation 'com.starmicronics:stario10:1.5.0'
}
Loading