NativeScript / android-dts-generator

A tool that generates TypeScript declaration files (.d.ts) from Jars
90 stars 23 forks source link

Is there any guideline for this tool? #1

Closed gordonpro closed 6 years ago

gordonpro commented 8 years ago

I want to use this tool to generage Android23.d.ts. Then replace my project android17.d.ts that download from https://github.com/NativeScript/NativeScript/blob/master/android17.d.ts

atanasovg commented 8 years ago

Hello,

We are currently polishing it and fixing some issues. Once ready we will update the README with instructions how to take advantage of it.

georgeedwards commented 8 years ago

I agree that it would be nice to generate our own docs. Also worth noting the issue here which will see definition files for every 17+ API shipped with the tns-core-modules package

Plamen5kov commented 8 years ago

hi @georgeedwards, No documentation yet, but in case you're interested in testing it out, there is a -help command. How to run:

java -jar dts-generator.jar -help
roblav96 commented 8 years ago

I'm very excited to test this out :D

Plamen5kov commented 8 years ago

cd android-dts-generator>/dts-generator/ ./gradew jar result jar is in into android-dts-generator/dts-generator/build/libs/dts-generator.jar

roblav96 commented 8 years ago

That's what I ended up doing before i deleted the comment.

i notice the only way to get this working with a .jar is if I also include Android.jar

petekanev commented 8 years ago

@roblav96 @gordonpro README was updated. Feel free to check out the generator. Suggestions, Contributions, and overall feedback of the tool are welcome. It's far from a finished state, but it should be stable enough to work in the general cases.

justgeek commented 6 years ago

Did anyone get this error while building SDK 23?

org.nativescript.widgets.d.ts(28,41): error TS2315: Type 'ArrayList' is not generic.

petekanev commented 6 years ago

@justgeek please either open a new issue with details about the problems you are experiencing, or open a new post on the official forums to ask nativescript-related questions.

What arguments did you start the generator with?

roblav96 commented 6 years ago

@justgeek I did a presentation on how to use this tool Fall In Love With Native APIs