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: PLUGINS.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -117,7 +117,7 @@ Every NativeScript plugin should contain a valid `package.json` file in its root
117
117
* It must contain a `nativescript` section which describes the supported NativeScript runtimes and their versions. This section can be empty. If you want to define supported platforms and runtimes, you can nest a `platforms` section. In this `platforms` section, you can nest `ios` and `android` key-value pairs. The values in these pairs must be valid runtime versions or ranges of values specified by a valid semver(7) syntax.
118
118
* If the plugin depends on other npm modules, it must contain a `dependencies` section as described [here](https://docs.npmjs.com/files/package.json#dependencies).<br/>The NativeScript CLI will resolve the dependencies during the plugin installation.
119
119
120
-
#### `package.json` Example
120
+
#### Package.json Example
121
121
122
122
The following is an example of a `package.json` file for a NativeScript plugin which supports the 1.0.0 version of the iOS runtime and the 1.1.0 version of the Android runtime.
123
123
@@ -134,7 +134,7 @@ The following is an example of a `package.json` file for a NativeScript plugin w
134
134
}
135
135
```
136
136
137
-
### `include.gradle` Specification
137
+
### Include.gradle Specification
138
138
139
139
Every NativeScript plugin, which contains native Android dependencies, should also contain a valid `include.gradle` file in the root of its `platforms\android` directory. This `include.gradle` file must meet the following requirements.
140
140
@@ -144,7 +144,7 @@ Every NativeScript plugin, which contains native Android dependencies, should al
144
144
145
145
> **IMPORTANT:** If you don't have an `include.gradle` file, at build time, gradle will create a default one containing all default elements.
146
146
147
-
#### `include.gradle` Example
147
+
#### Include.gradle Example
148
148
```gradle
149
149
//default elements
150
150
android {
@@ -161,10 +161,10 @@ dependencies {
161
161
}
162
162
```
163
163
164
-
### `build.xcconfig` Specification
164
+
### Build.xcconfig Specification
165
165
Every NativeScript plugin, which contains native iOS dependencies, can also contain a [valid](https://pewpewthespells.com/blog/xcconfig_guide.html)`build.xcconfig` file in the root of its `platforms\ios` directory. This `build.xcconfig` file might contain native dependencies required to build the plugin properly.
0 commit comments