Skip to content

Commit

Permalink
Merge pull request #31 from anastaciocintra/android
Browse files Browse the repository at this point in the history
Android release 4.0.0
  • Loading branch information
anastaciocintra authored Jan 14, 2020
2 parents 130c5a6 + 1a08a4a commit 0df2ec9
Show file tree
Hide file tree
Showing 50 changed files with 609 additions and 1,690 deletions.
39 changes: 0 additions & 39 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
/samples/barcode/nbproject/private/
/barcode-sample/target/
/escpos/target/
/bitimage-sample/target/
/charcode-sample/target/
/dithering-sample/target/
/getstart-sample/target/
/samples/barcode-sample/target/
/samples/barcode/target/
/samples/bitimage/target/
/samples/charcode/target/
/samples/dithering/target/
/samples/getstart/target/
/samples/graphics-image/target/
/samples/pulsepin/target/
/samples/raster-image/target/
/samples/textstyle/target/
/escpos-coffee/target/


######################
# Project Specific
######################
/build/www/**
/src/test/javascript/coverage/
/src/test/javascript/PhantomJS*/

######################
# Node
######################
/node/
node_tmp/
node_modules/
npm-debug.log.*

######################
# SASS
######################
.sass-cache/

######################
# Eclipse
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License

Copyright (c) 2014-18 Michael Billington < [email protected] > incorporating modifications by others.
Copyright (c) 2019 Marco Antonio Anastacio Cintra <[email protected]>
Copyright (c) 2019-2020 Marco Antonio Anastacio Cintra <[email protected]> incorporating modifications by contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,39 +48,37 @@ Download code and binaries from the [last release of escpos-coffee](https://gith
<dependency>
<groupId>com.github.anastaciocintra</groupId>
<artifactId>escpos-coffee</artifactId>
<version>3.0.0</version>
<version>4.0.0</version>
</dependency>
```

### Installation with Gradle

Step 1. Add the repository to your build file
```groovy
```
repositories {
mavenCentral()
}
```

Step 2. Add the dependency
```groovy
```
dependencies {
implementation 'com.github.anastaciocintra:escpos-coffee:3.0.0'
implementation 'com.github.anastaciocintra:escpos-coffee:4.0.0'
}
```


### Installation without Maven or Gradle
The project can be compiled with the below command:
```shell script
./mvnw clean package
```
Then the jar file will be generated inside the 'target/' folder, just add the jar file to your classpath.


## Samples
You can find samples code on src/samples/ directory.
How to run samples (You'll need to compile with the above command):
```shell script
java -jar samples/[samplename]/target/[samplename].jar "printer name"
```
You can find samples code on https://github.com/anastaciocintra/escpos-coffee-samples

### getstart sample
Send info of the library to the printer.
Expand Down Expand Up @@ -128,7 +126,7 @@ Shows how to work with BitonalThreshold and BitonalOrderedDither.
Bellow, we can see how to use ordered dither class.
```java
algorithm = new BitonalOrderedDither();
escposImage = new EscPosImage(imageBufferedImage, algorithm);
EscPosImage escposImage = new EscPosImage(new CoffeeImageImpl(imageBufferedImage), algorithm);
escpos.write(imageWrapper, escposImage);

```
Expand Down
160 changes: 0 additions & 160 deletions escpos-coffee/pom.xml

This file was deleted.

Loading

0 comments on commit 0df2ec9

Please sign in to comment.