gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
229 stars 71 forks source link

Version Number #69

Closed Vzor- closed 4 years ago

Vzor- commented 6 years ago

Hey, just wondering if you could toss a version number somewhere into the code. Since this is an io library it is nice to be able to programmatically check the version via an api call.

andyrozman commented 6 years ago

We could probably generate it in maven, so that artifact version would be visible in code. I do the same in my project.

On Aoine 27 DFómh 2017 22:16 Kyle Berezin notifications@github.com wrote:

Hey, just wondering if you could toss a version number somewhere into the code. Since this is an io library it is nice to be able to programmatically check the version via an api call.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gary-rowe/hid4java/issues/69, or mute the thread https://github.com/notifications/unsubscribe-auth/AFPs5fhXUprOEpqHbnfXlVvIJHoIOgNxks5swkgugaJpZM4QJoGx .

Vzor- commented 6 years ago

That would be fine, I prefer an in-code version but I'm not picky.

gary-rowe commented 6 years ago

Hi! I'll be working on this library starting Mon 16th April in order to release version 0.6.0. I can take a look at this issue then.

gary-rowe commented 4 years ago

Added support for this in develop branch. Scheduled for release in 0.6.0+.

To test programmatically:

// Use default service settings for example
HidServices hidServices = HidManager.getHidServices();
hidServices.getVersion();

To test on develop branch:

mvn clean package
java -cp target/hid4java-develop-SNAPSHOT.jar org.hid4java.HidServices

Output should be develop-SNAPSHOT or 0.6.0 etc after release on master.

gary-rowe commented 4 years ago

Closing.