digidotcom / xbee-java

Set of Java APIs to interact with Digi International's XBee radio frequency modules.
Mozilla Public License 2.0
83 stars 56 forks source link

Library is now crippled with Android dependencies #123

Open bhaecke opened 6 years ago

bhaecke commented 6 years ago

Any reason why core classes are crippled with android dependencies that have absolutely nothing to do with XBee's?

alcarraz commented 5 years ago

same problem here, I had to strip away all android sdk references in order to build against a standard jdk, because android sdk redefines lots of core apis without standard methods like stream() in collections.

Maybe android support should be in a fork or as an extension, with android enabling classes extending the base ones

alcarraz commented 5 years ago

Hi @bhaecke, just in case you still didn't, or for others that may reach this issue by searching, I've made a fork (https://github.com/alcarraz/XBeeJavaLibrary) and stripped of all the android dependencies.

I hope this issue is dealt with before next release, which I would like to be sooner rather than later since the last one does not support Xbee 3.

I think that android support dhould be optional and can be implemented as a second library with device implementations that extend the base ones and add that support.

bhaecke commented 5 years ago

Hi @alcarraz I got rid of all the Android dependencies as well.