xbee-java icon indicating copy to clipboard operation
xbee-java copied to clipboard

Library is now crippled with Android dependencies

Open bhaecke opened this issue 7 years ago • 3 comments

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

bhaecke avatar Apr 09 '18 22:04 bhaecke

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 avatar Apr 25 '19 20:04 alcarraz

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.

alcarraz avatar May 03 '19 03:05 alcarraz

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

bhaecke avatar May 03 '19 03:05 bhaecke