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
@@ -122,7 +122,7 @@ Every NativeScript plugin should contain a valid `package.json` file in its root
122
122
* 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.
123
123
* 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.
124
124
125
-
#### `package.json` Example
125
+
#### Package.json Example
126
126
127
127
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.
128
128
@@ -139,7 +139,7 @@ The following is an example of a `package.json` file for a NativeScript plugin w
139
139
}
140
140
```
141
141
142
-
### `include.gradle` Specification
142
+
### Include.gradle Specification
143
143
144
144
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.
145
145
@@ -149,7 +149,7 @@ Every NativeScript plugin, which contains native Android dependencies, should al
149
149
150
150
> **IMPORTANT:** If you don't have an `include.gradle` file, at build time, gradle will create a default one containing all default elements.
151
151
152
-
#### `include.gradle` Example
152
+
#### Include.gradle Example
153
153
```gradle
154
154
//default elements
155
155
android {
@@ -166,10 +166,10 @@ dependencies {
166
166
}
167
167
```
168
168
169
-
### `build.xcconfig` Specification
169
+
### Build.xcconfig Specification
170
170
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