I have a custom Java code I would like to integrate in my NativeScript application. However, I struggle with the integration of the code.
I placed the Java code in
platforms/android/src/main/java/...Is this correct? According to Grocery tutorial, I should treat
platformsdirectory as generated code, however, no other location makes sense to me.
When I try to use the code in TypeScript, I get type errors as the compiler has no clue about classes, methods and interfaces in my Java code. How to provide type definitions? Is there a tool, which can generate .d.ts files? If I have these files, how to properly use them?