android-dts-generator
android-dts-generator copied to clipboard
A tool that generates TypeScript declaration files (.d.ts) from Jars
Some libs (_e.g._, okhttp) have methods with names that generate invalid typescript code, this PR fixes this by wrapping invalid fields and methods names in quotes Example: ```diff - public...
Wanted to clone this to geenrate typings for my own Android library (to be used in a NativeScript plugin) **Steps to reproduce** ```bash git clone https://github.com/NativeScript/android-dts-generator.git cd android-dts-generator cd dts-generator/...
Hi, thanks for making the project, Could you please add a license to the repo? Thank you.
I've been using this for development with Rhino (JS engine in Java) which provides access to Java libraries. I had to manually hack the output somewhat (there's no concept of...
It would be best to remove offuscated classes because they create a lot of TS errors because they use private words.
You'll see errors with classes like `java.lang.Enum` because there is no default generic type. I wonder if we can determine the right generic type
When launching `gradlew jar` it gives me the following error. I have changed `distributionUrl` to `distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip` in dts-generator/gradle/wrapper/gradle-wrapper.propeties and now it works. Source: https://stackoverflow.com/questions/61289461/java-lang-noclassdeffounderror-could-not-initialize-class-org-codehaus-groovy-v
Hello friends , I am getting following error while generating typings. ``` java -jar build/libs/dts-generator.jar -input ../jars/opencv-platform-4.0.1-1.5.jar Android d.ts Generator Version : 2.0.0 Exception in thread "main" org.apache.bcel.classfile.ClassFormatException: Invalid byte...
The generated TS definitions are currently generated manually and tested with `tsc`, we can automate that work by passing various android/java libraries and testing compilability of the output.
This happens with only a few jar files, but I get this error when throwing them through the dts-generator: ``` Exception in thread "main" java.lang.NullPointerException at com.telerik.dts.DtsApi.getInterfaces(DtsApi.java:352) at com.telerik.dts.DtsApi.generateDtsContent(DtsApi.java:75) at...