Using external SDKs/libraries in a project

Any update @Murali Boddeda @Naveen Kumar Kuppili, regarding this issue?

The okhttp module that I have imported as NFI in the project has the following classes (viewing it in the jd GUI).

And in my code, I can do like this:

var OkHttpClient = java.import('okhttp3.OkHttpClient');

The thing is, it is returning me a function. I can access any class of the okhhtp3 module (like: okhttp3.Cache) and all of them are returning a JS function. I guess that is because the NFI converted the Java classes into usable JS functions. Is it so?

Even I printed out the function in the debug mode, and here is the result.

Now, I have got this far. But, can you now guide me, so that I can use this? I will wait for your reply. Please reply at the earliest @Murali Boddeda @Naveen Kumar Kuppili