Skip to content

Fix header formatting of Plugins.md #1333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions PLUGINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Every NativeScript plugin should contain a valid `package.json` file in its root
* 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.
* 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.

#### `package.json` Example
#### Package.json Example

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.

Expand All @@ -134,7 +134,7 @@ The following is an example of a `package.json` file for a NativeScript plugin w
}
```

### `include.gradle` Specification
### Include.gradle Specification

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.

Expand All @@ -144,7 +144,7 @@ Every NativeScript plugin, which contains native Android dependencies, should al

> **IMPORTANT:** If you don't have an `include.gradle` file, at build time, gradle will create a default one containing all default elements.

#### `include.gradle` Example
#### Include.gradle Example
```gradle
//default elements
android {
Expand All @@ -161,10 +161,10 @@ dependencies {
}
```

### `build.xcconfig` Specification
### Build.xcconfig Specification
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.

#### `build.xcconfig` Example
#### Build.xcconfig Example
```
OTHER_LDFLAGS = $(inherited) -framework "QuartzCore" -l"sqlite3"
```
Expand Down