Kodi Community Forum

Full Version: Freezy's xbmc-jsonrpclib
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I currently have a strong desire to write my own Kodi remote app. Primarily driven by my need to learn Android Development, I wanted to undertake a worthwhile project that i could learn from AND also be useful =)

Anyways, I pretty much have a good starting point. I'm communicating with Kodi through both the http and websocket interface, and can pretty much send any json command over and is behaving the way i want. My issue is that right now, i'm constructing the json to send over the commands __manually__ and it's quite a chore. I stumbled across Freezy's library (https://github.com/freezy/xbmc-jsonrpclib-android) that might help make things much easier, but I'm having a dickens of a time compiling/building it.

I ran into this problem: https://github.com/freezy/xbmc-jsonrpcli...d/issues/8 and tried to do it on both my mac and my pc and neither of them compile. I also get this error if i ran gradle build manually:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':xbmc-jsonrpclib:generateLibrarySources'.
> java.util.ConcurrentModificationException (no error message)

My second attempt i decided to try to compile the new sandbox, maybe to extract the jar, but it looks like it suffers from the same problems.

Anyways, I then decided that maybe it'll be easier to get pojos from the schema based on the introspect command (http://www.jsonschema2pojo.org), but that too fails (it doesn't output anything). And when i look at the json introspect results and compare it to other schemas, it seems it doesn't have the same structure (e.g. properties) so it looks like it wasn't meant to be used this way.

Basically, does anyone have a recently compiled jar that I can use to import ? The java files itself would be cool too. I just need some help since constructing the jsons manually doesn't seem like the right approach. Thanks guys.