Skip to content

Commit c9b9d3d

Browse files
Merge pull request #922 from NativeScript/vladimirov/merge-1.3.0
Merge 1.3.0 in master
2 parents 5c88305 + db3f349 commit c9b9d3d

22 files changed

+430
-177
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ results
2727
scratch/
2828
.idea/
2929
.settings/
30+
.vscode/
3031
test-reports.xml
3132

3233
npm-debug.log

CHANGELOG.md

+23
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
11
NativeScript CLI Changelog
22
================
33

4+
1.3.0 (2015, September 16)
5+
==
6+
7+
### New
8+
* [Implemented #390](https://github.com/NativeScript/nativescript-cli/issues/390): Support tns_modules from npm.
9+
* [Implemented #686](https://github.com/NativeScript/nativescript-cli/issues/686): Support building of XCode workspaces.
10+
* [Implemented #687](https://github.com/NativeScript/nativescript-cli/issues/687): Android build with Gradle.
11+
* [Implemented #729](https://github.com/NativeScript/nativescript-cli/issues/729): CocoaPods support from plugins.
12+
* [Implemented #785](https://github.com/NativeScript/nativescript-cli/issues/785): Add platform on each platform related command.
13+
* [Implemented #875](https://github.com/NativeScript/nativescript-cli/issues/875): Init command configure tns-core-modules version.
14+
15+
### Fixed
16+
* [Fixed #662](https://github.com/NativeScript/nativescript-cli/issues/662): Failed `tns platform add android` command leaves the project in inconsistent state.
17+
* [Fixed #730](https://github.com/NativeScript/nativescript-cli/issues/730): `tns livesync android` throws stdout maxBuffer exceeded.
18+
* [Fixed #772](https://github.com/NativeScript/nativescript-cli/issues/772): `tns platform update ios` command does not update metadata generator.
19+
* [Fixed #793](https://github.com/NativeScript/nativescript-cli/issues/793): The NativeScript CLI writes errors on stdout.
20+
* [Fixed #797](https://github.com/NativeScript/nativescript-cli/issues/797): Plugin add does not merge plugins's Info.plist file.
21+
* [Fixed #811](https://github.com/NativeScript/nativescript-cli/issues/811): `tns livesync <Platform> --watch` reports an error when platform specific file is changed.
22+
* [Fixed #826](https://github.com/NativeScript/nativescript-cli/issues/826): Failed `tns prepare <Platform>` command leaves the project in inconsistent state.
23+
* [Fixed #829](https://github.com/NativeScript/nativescript-cli/issues/829): Fail to build the project when `nativescript-telerik-ui` plugin is added before the platform.
24+
* [Fixed #866](https://github.com/NativeScript/nativescript-cli/issues/866): The NativeScript CLI is not able to detect java on Ubuntu.
25+
* [Fixed #896](https://github.com/NativeScript/nativescript-cli/issues/896): `tns run <Platform>` after `tns livesync <Platform>` starts the last synced app on the device.
26+
427
1.2.4 (2015, August 24)
528
==
629

CocoaPods.md

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Using CocoaPods
2+
3+
When you develop for iOS, you can quickly add third-party libraries to your NativeScript projects via the [CocoaPods](https://cocoapods.org/) dependency manager.
4+
5+
To work with such libraries, you need to wrap them as a custom NativeScript plugin and add them to your project.
6+
7+
* [Install CocoaPods](#install-cocoapods)
8+
* [Create CLI Project](#create-cli-project)
9+
* [Wrap the Library as NativeScript Plugin](#wrap-the-library-as-nativescript-plugin)
10+
* [Build the Project](#build-the-project)
11+
12+
## Install CocoaPods
13+
You need to install CocoaPods. If you haven't yet, you can do so by running:
14+
15+
```
16+
$ sudo gem install cocoapods
17+
```
18+
> **NOTE:** All operations and code in this article are verified against CocoaPods 0.38.2.
19+
20+
To check your current version, run the following command.
21+
22+
```
23+
$ pod --version
24+
```
25+
26+
To update CocoaPods, just run the installation command again.
27+
28+
```
29+
sudo gem install cocoapods
30+
```
31+
32+
## Create CLI Project
33+
To start, create a project and add the iOS platform.
34+
35+
```bash
36+
$ tns create MYCocoaPods
37+
$ cd MYCocoaPods
38+
$ tns platform add ios
39+
```
40+
41+
## Wrap the Library as NativeScript Plugin
42+
43+
For more information about working with NativeScript plugins, click [here](PLUGINS.md).
44+
45+
```
46+
cd ..
47+
mkdir my-plugin
48+
cd my-plugin
49+
```
50+
51+
Create a package.json file with the following content:
52+
53+
```
54+
{
55+
"name": "myplugin",
56+
"version": "0.0.1",
57+
"nativescript": {
58+
"platforms": {
59+
"ios": "1.3.0"
60+
}
61+
}
62+
}
63+
```
64+
65+
Create a [Podfile](https://guides.cocoapods.org/syntax/podfile.html) which describes the dependency to the library that you want to use. Move it to the `platforms/ios` folder.
66+
67+
```
68+
my-plugin/
69+
├── package.json
70+
└── platforms/
71+
└── ios/
72+
└── Podfile
73+
```
74+
75+
Next, install the plugin:
76+
77+
```
78+
tns plugin add ../my-plugin
79+
```
80+
81+
## Build the project
82+
83+
```
84+
tns build ios
85+
```
86+
87+
This modifies the `MYCocoaPods.xcodeproj` and creates a workspace with the same name.
88+
89+
> **IMPORTANT:** You will no longer be able to run the `xcodeproj` alone. NativeScript CLI will build the newly created workspace and produce the correct .ipa.

0 commit comments

Comments
 (0)