You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,4 +88,37 @@ By repeating the steps above we've found that:
88
88
- Android support 23 typings(built with supper jar from android API 23) can be reused until android API 25
89
89
- Android support 26 typings(built with supper jar from android API 26) can be reused for API 26 and 27
90
90
91
-
The corresponding typings files can be found in the [tns-platform-declarations](https://github.com/NativeScript/NativeScript/tree/master/tns-platform-declarations) package. The repo's [Makefile](Makefile) can be used as a reference for creating these typings files
91
+
The corresponding typings files can be found in the [tns-platform-declarations](https://github.com/NativeScript/NativeScript/tree/master/tns-platform-declarations) package. The repo's [Makefile](Makefile) can be used as a reference for creating these typings files
92
+
93
+
## Finding package dependencies
94
+
If you want to generate typings of a package but you are not sure how you can get all the needed dependencies you can follow the steps bellow:
95
+
96
+
1. Open [dts-generator/build.gradle](dts-generator/build.gradle) file and locate `dependencies` part.
97
+
2. Add as a `testCompileOnly` dependency the one that you want to generate typings for:
3. Open the [dts-generator](dts-generator) folder in your terminal
111
+
4. Run the following command:
112
+
113
+
```
114
+
./gradlew extractAllJars
115
+
```
116
+
117
+
5. The command above will get the needed jar files for your dependency and will output them in the [dts-generator/jar-files](dts-generator/jar-files) folder
118
+
6. You can run the following command to check what are the dependencies between the packages:
7. Run the dts-generator tool passing as **input** arguments the jar files for the needed package from the [dts-generator/jar-files](dts-generator/jar-files) folder
0 commit comments