Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 20edfcc

Browse files
committed
Add Cocoa Touch Static Libraries documentation.
1 parent 721ea3c commit 20edfcc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

plugins.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,16 @@ my-plugin/
9999
│ └── AndroidManifest.xml
100100
└── ios/
101101
├── MyiOSLibrary.framework
102-
└── Info.plist
102+
├── Info.plist
103+
├── MyStaticiOSLibrary.a
104+
└── include/
105+
└── MyStaticiOSLibrary/
106+
└── ...
103107
```
104108

105109
* `platforms\android\libs`: This directory contains any native Android libraries packaged as `*.jar` packages. During the plugin installation, the NativeScript CLI will copy these files to `lib\Android` in your project and will configure the Android project in `platforms\android` to work with the library.
106110
* `platforms\android\MyAndroidLibrary`: This directory contains a native Android library with a `project.properties` file. During the plugin installation, the NativeScript CLI will copy these files to `lib\Android` in your project and will configure the Android project in `platforms\android` to work with the library.
107-
* `platforms\ios`: This directory contains native iOS dynamic libraries (`.framework`). During the plugin installation, the NativeScript CLI will copy these files to `lib\iOS` in your project and will configure the Android project in `platforms\ios` to work with the library.
111+
* `platforms\ios`: This directory contains native dynamic iOS Cocoa Touch Frameworks (`.framework`) and Cocoa Touch Static Libraries (`.a`). During the plugin installation, the NativeScript CLI will copy these files to `lib\iOS` in your project and will configure the iOS project in `platforms\ios` to work with the libraries. In case the plugin contains a Cocoa Touch Static Library (`.a`), you must place all public headers (`.h`) under `include\<Static Library Name>\`. Make sure that the static libraries are built at least for the following processor architectures - armv7, arm64, i386.
108112

109113
### Package.json Specification
110114

0 commit comments

Comments
 (0)