lifx-sdk-java
lifx-sdk-java copied to clipboard
Make this project compatible with Android
Apparently it is almost possible to build this project on android. It would be really nice if we could go the last mile for our mobile friends. Any ideas?
- [ ] Get rid of AWT color, switch to int
- [ ] Remove usages for java.util.Objects class
Just found out that java.util.Objects is only included in Android as of Lollipop. Using it causes a crash on any earlier versions.
OK, it looks like that is all that's needed. It's unfortunate that there aren't any cross-platform Color objects, but the only method we were using was the RGBtoHSB algorithm. I just pulled that out of the Java source and added an attribution. Not sure if we also need to include license info or anything.