Skip to content

Commit 9fc3e6b

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Add warning that library add command will be removed in a future release.
1 parent ec308c4 commit 9fc3e6b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

docs/man_pages/lib-management/library-add.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,23 @@ General | `$ tns library add <Platform> <Library Path>`
77

88
Adds a locally stored native library to the current project. <% if(isHtml) { %>Copies the library files to the `lib/<platform>` folder in your project and configures the platform-specific projects in `platforms/<platform>` to work with the library. Build operations might perform additional configuration changes on the platform-specific project in `platforms/<platform>`.<% } %>
99

10+
IMPORTANT: The `tns library add` command is deprecated and will be removed in a future release. Use the plugin set of commands instead. For more information, run `tns help plugin`.
11+
1012
IMPORTANT: When adding frameworks, keep in mind the following behaviors.
1113

1214
* Any functionality exposed by the library will become available in the built application package.
1315
* The first build operation after you run this command is significantly slower.
14-
<% if(isMacOS) { %>* When you add an iOS framework, the NativeScript CLI automatically changes your build target to iOS 8.0.<% } %>
16+
<% if(isMacOS) { %>* When you add an iOS framework, the NativeScript CLI automatically changes your build target to iOS 8.0.<% } %>
1517

1618
### Attributes
1719

1820
* `<Platform>` is the target mobile platform for which you want to add a native library. You can set the following target platforms.
1921
* `android` - Adds an Android native library.
2022
<% if(isMacOS) { %>* `ios` - Adds an iOS native library.<% } %>
21-
* `<Library Path>` is the file path to a locally stored framework.<% if(isHtml) { %>
22-
When you want to add an iOS framework, `<Library Path>` must be the complete file path to the `*.framework` file that you want to use.
23-
When you want to add an Android framework, `<Library Path>` might be any of the following:
24-
23+
* `<Library Path>` is the file path to a locally stored framework.<% if(isHtml) { %>
24+
When you want to add an iOS framework, `<Library Path>` must be the complete file path to the `*.framework` file that you want to use.
25+
When you want to add an Android framework, `<Library Path>` might be any of the following:
26+
2527
* The file path to a directory containing one or more `*.jar` files.
2628
* The file path to a directory containing the `project.properties` files for an Android library project created with Eclipse.
2729

lib/commands/add-library.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export class AddLibraryCommand implements ICommand {
1313

1414
execute(args: string[]): IFuture<void> {
1515
return (() => {
16+
this.$logger.warn("IMPORTANT: The `tns library add` command is deprecated and will be removed in a future release. Use the plugin set of commands instead. For more information, run `tns help plugin`.");
1617
let platform = args[0];
1718
let libraryPath = path.resolve(args[1]);
1819
this.$platformService.addLibrary(platform, libraryPath).wait();

0 commit comments

Comments
 (0)