Skip to content

Merge 1.3.0 in master #922

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 50 commits into from
Sep 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
9be124a
Fix path to .apk file when building ant project
Sep 7, 2015
c729a2a
Fix path to res folder when old ant template is built for first time
Sep 7, 2015
07dfe3e
Merge pull request #878 from NativeScript/fatme/fix-ant-apk-path
Sep 7, 2015
534465b
Update to latest common lib
Sep 7, 2015
e886b92
Fix unit tests
Sep 7, 2015
c14ea14
Merge pull request #879 from NativeScript/fatme/update-common-lib
Sep 7, 2015
7f331a6
Fix errors when ANDROID_HOME is not set
rosen-vladimirov Sep 7, 2015
3790ca5
Fix broken platform add android command
Sep 7, 2015
81321b5
Merge pull request #880 from NativeScript/vladimirov/fix-android-tools2
rosen-vladimirov Sep 7, 2015
ec308c4
Merge pull request #881 from NativeScript/fatme/fix-broken-platform-a…
Sep 7, 2015
69a5c05
Update correctly ant template to gradle
Sep 7, 2015
c2c6ce6
Add warning that library add command will be removed in a future rele…
Sep 8, 2015
8b98695
Merge pull request #889 from NativeScript/fatme/warning-for-add-library
Sep 8, 2015
d9d6322
Configure tns-core-modules version when init command is executed
Sep 8, 2015
f3f7ea3
Fix PR comments
Sep 8, 2015
e82ceac
Merge pull request #890 from NativeScript/fatme/conf-modules-version
Sep 8, 2015
68537d8
Merge pull request #886 from NativeScript/fatme/fix-platform-update-f…
Sep 8, 2015
625f2fd
Make gradle error more user friendly
teobugslayer Sep 8, 2015
000afd2
Merge pull request #893 from NativeScript/totev/fail-without-help-gra…
teobugslayer Sep 8, 2015
075321c
Give full permission to livesync folder so android-runtime can succes…
Sep 9, 2015
cc354e1
Merge pull request #894 from NativeScript/fatme/give-permissions-to-l…
Sep 9, 2015
f086f2b
Give full permissions to /data/local/tmp/appIdentifier folder
Sep 9, 2015
f6d3d2f
Merge pull request #895 from NativeScript/fatme/more-permissions
Sep 9, 2015
3a16eaf
Fix ios debug --start command
Sep 10, 2015
b95b793
Merge pull request #897 from NativeScript/fatme/fix-debugger-start
Sep 10, 2015
b040291
Fix run, livesync, run workflow
Sep 10, 2015
068b7a8
Merge pull request #898 from NativeScript/fatme/fix-run-livesync-run
Sep 10, 2015
9e59fe5
Changelog for 1.3.0 release
Sep 10, 2015
6f40e15
Merge pull request #899 from NativeScript/fatme/changelog-1.3.0
Sep 10, 2015
9af05ac
Fix tns debug android --get-port command
Sep 10, 2015
06a1398
Fix undefined is not a function error
Sep 10, 2015
ba6d58e
Merge pull request #902 from NativeScript/fatme/fix-undefined-is-not-…
Sep 10, 2015
477b272
Merge pull request #901 from NativeScript/fatme/fix-getport
Sep 10, 2015
3486129
Improve android tools warnings
rosen-vladimirov Sep 11, 2015
e96182e
Merge pull request #903 from NativeScript/vladimirov/improve-warning-…
rosen-vladimirov Sep 11, 2015
aa2c69f
Gitignore .vscode
Sep 11, 2015
85cd6fe
Merge pull request #904 from NativeScript/fatme/gitignore-vscode
Sep 11, 2015
248ecea
Fix doctor command output
rosen-vladimirov Sep 11, 2015
a58717e
Merge pull request #906 from NativeScript/vladimirov/fix-doctor-output
rosen-vladimirov Sep 11, 2015
821ca4d
Call pod install only one time on first project prepare
Sep 14, 2015
c291f2c
Merge pull request #915 from NativeScript/fatme/call-pod-install-only…
dtopuzov Sep 14, 2015
20295e0
Update README.md for gradle builds
rosen-vladimirov Sep 15, 2015
5ddb9a3
Cocoapods.md
Sep 14, 2015
72ed98f
Merge pull request #916 from NativeScript/vladimirov/fix-readme
dtopuzov Sep 15, 2015
e1917f4
Merge pull request #914 from NativeScript/fatme/cocoapod-article
Sep 15, 2015
4ec3f63
Add req for cocoapods version
Sep 15, 2015
7735847
Merge pull request #918 from NativeScript/fatme/req-for-pod-version-1
Sep 15, 2015
72196f3
Use latest common lib
rosen-vladimirov Sep 15, 2015
9b9ed67
Merge branch 'release' into vladimirov/merge-1.3.0
rosen-vladimirov Sep 15, 2015
db3f349
Fix unit tests
rosen-vladimirov Sep 15, 2015
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ results
scratch/
.idea/
.settings/
.vscode/
test-reports.xml

npm-debug.log
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
NativeScript CLI Changelog
================

1.3.0 (2015, September 16)
==

### New
* [Implemented #390](https://github.com/NativeScript/nativescript-cli/issues/390): Support tns_modules from npm.
* [Implemented #686](https://github.com/NativeScript/nativescript-cli/issues/686): Support building of XCode workspaces.
* [Implemented #687](https://github.com/NativeScript/nativescript-cli/issues/687): Android build with Gradle.
* [Implemented #729](https://github.com/NativeScript/nativescript-cli/issues/729): CocoaPods support from plugins.
* [Implemented #785](https://github.com/NativeScript/nativescript-cli/issues/785): Add platform on each platform related command.
* [Implemented #875](https://github.com/NativeScript/nativescript-cli/issues/875): Init command configure tns-core-modules version.

### Fixed
* [Fixed #662](https://github.com/NativeScript/nativescript-cli/issues/662): Failed `tns platform add android` command leaves the project in inconsistent state.
* [Fixed #730](https://github.com/NativeScript/nativescript-cli/issues/730): `tns livesync android` throws stdout maxBuffer exceeded.
* [Fixed #772](https://github.com/NativeScript/nativescript-cli/issues/772): `tns platform update ios` command does not update metadata generator.
* [Fixed #793](https://github.com/NativeScript/nativescript-cli/issues/793): The NativeScript CLI writes errors on stdout.
* [Fixed #797](https://github.com/NativeScript/nativescript-cli/issues/797): Plugin add does not merge plugins's Info.plist file.
* [Fixed #811](https://github.com/NativeScript/nativescript-cli/issues/811): `tns livesync <Platform> --watch` reports an error when platform specific file is changed.
* [Fixed #826](https://github.com/NativeScript/nativescript-cli/issues/826): Failed `tns prepare <Platform>` command leaves the project in inconsistent state.
* [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.
* [Fixed #866](https://github.com/NativeScript/nativescript-cli/issues/866): The NativeScript CLI is not able to detect java on Ubuntu.
* [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.

1.2.4 (2015, August 24)
==

Expand Down
89 changes: 89 additions & 0 deletions CocoaPods.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Using CocoaPods

When you develop for iOS, you can quickly add third-party libraries to your NativeScript projects via the [CocoaPods](https://cocoapods.org/) dependency manager.

To work with such libraries, you need to wrap them as a custom NativeScript plugin and add them to your project.

* [Install CocoaPods](#install-cocoapods)
* [Create CLI Project](#create-cli-project)
* [Wrap the Library as NativeScript Plugin](#wrap-the-library-as-nativescript-plugin)
* [Build the Project](#build-the-project)

## Install CocoaPods
You need to install CocoaPods. If you haven't yet, you can do so by running:

```
$ sudo gem install cocoapods
```
> **NOTE:** All operations and code in this article are verified against CocoaPods 0.38.2.

To check your current version, run the following command.

```
$ pod --version
```

To update CocoaPods, just run the installation command again.

```
sudo gem install cocoapods
```

## Create CLI Project
To start, create a project and add the iOS platform.

```bash
$ tns create MYCocoaPods
$ cd MYCocoaPods
$ tns platform add ios
```

## Wrap the Library as NativeScript Plugin

For more information about working with NativeScript plugins, click [here](PLUGINS.md).

```
cd ..
mkdir my-plugin
cd my-plugin
```

Create a package.json file with the following content:

```
{
"name": "myplugin",
"version": "0.0.1",
"nativescript": {
"platforms": {
"ios": "1.3.0"
}
}
}
```

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.

```
my-plugin/
├── package.json
└── platforms/
└── ios/
└── Podfile
```

Next, install the plugin:

```
tns plugin add ../my-plugin
```

## Build the project

```
tns build ios
```

This modifies the `MYCocoaPods.xcodeproj` and creates a workspace with the same name.

> **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.
Loading