Skip to content

Wait for prepare hooks to run and collect changed files in the same livesync run #1335

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

Closed
wants to merge 50 commits into from
Closed
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
5a80d9d
Merge pull request #1193 from NativeScript/vladimirov/report-android-…
rosen-vladimirov Nov 16, 2015
5b2bc76
Set version to 1.6.0
rosen-vladimirov Nov 16, 2015
78835ec
Merge pull request #1194 from NativeScript/vladimirov/merge-release-i…
rosen-vladimirov Nov 16, 2015
cdce7a1
Introduce messages service/code-generation
Oct 13, 2015
76ca606
Exclude common's messaging classes from compilation
Oct 13, 2015
6abe032
Merge pull request #1057 from NativeScript/kerezov/restructure-error-…
Mitko-Kerezov Nov 17, 2015
740d895
Merge branch 'release' into vladimirov/merge-rel-master-pre-150-2
rosen-vladimirov Nov 18, 2015
5e85672
Require `messages` in bootstrap
rosen-vladimirov Nov 18, 2015
1f56cc0
Merge pull request #1208 from NativeScript/vladimirov/merge-rel-maste…
rosen-vladimirov Nov 18, 2015
2dc2855
Add instructions for use to setup scripts
teobugslayer Nov 18, 2015
691c9f9
Merge pull request #1213 from NativeScript/totev/improve-setup
teobugslayer Nov 19, 2015
368044e
Merge release in master pre 1.5.0 (third time)
rosen-vladimirov Nov 20, 2015
bb4b54e
Update to latest common lib
rosen-vladimirov Nov 20, 2015
3424477
Merge pull request #1222 from NativeScript/vladimirov/merge-rel-maste…
rosen-vladimirov Nov 20, 2015
1b1ddf6
Improve Windows setup script
teobugslayer Nov 20, 2015
9dcd3b4
Merge pull request #1223 from NativeScript/totev/improve-setup
teobugslayer Nov 20, 2015
50966cf
Mac setup improvements
teobugslayer Nov 26, 2015
ec6d2f0
Apply Buhov's ios-plugin fix, that was directly added to the docs repo
ErjanGavalji Nov 27, 2015
38d0c76
Merge branch 'ErjanGavalji/apply-buhovs-ios-plugin-fix'
ErjanGavalji Nov 27, 2015
bb15221
Merge pull request #1250 from NativeScript/totev/setup-v3
teobugslayer Nov 27, 2015
9c464d9
Merge branch 'release' into vladimirov/merge-rel-master-2
rosen-vladimirov Nov 30, 2015
c909c10
Merge pull request #1278 from NativeScript/vladimirov/merge-rel-master-2
rosen-vladimirov Nov 30, 2015
16f13b7
Add support for different templates
rosen-vladimirov Nov 16, 2015
3ad7872
Install all dependencies on create
rosen-vladimirov Nov 30, 2015
cb0b668
Merge pull request #1218 from NativeScript/vladimirov/add-ns-templates
rosen-vladimirov Nov 30, 2015
165b462
Do not delete app's package.json
rosen-vladimirov Dec 1, 2015
58f7e25
Merge pull request #1281 from NativeScript/vladimirov/revert-package-…
rosen-vladimirov Dec 1, 2015
989eae2
Merge branch 'release' into vladimirov/merge-rel-master
rosen-vladimirov Dec 3, 2015
374145d
Silent shelljs for unit-tests
rosen-vladimirov Dec 3, 2015
9e8c34d
Merge pull request #1304 from NativeScript/vladimirov/merge-rel-master
rosen-vladimirov Dec 3, 2015
2012e12
Update plugins docs
jasssonpet Dec 7, 2015
626fcc2
Merge pull request #1321 from NativeScript/jasssonpet/docs
jasssonpet Dec 10, 2015
3172955
Fix header formatting of Plugins.md
jasssonpet Dec 10, 2015
d6364ad
Update README.md
Dec 10, 2015
421faf0
Add Cocoa Touch Static Libraries documentation.
teobugslayer Dec 10, 2015
9e8bb6b
Merge pull request #1326 from NativeScript/tpopov/static-libs-doc
teobugslayer Dec 10, 2015
aff4391
Merge pull request #1333 from NativeScript/jasssonpet/docs
jasssonpet Dec 10, 2015
9b4d71d
Merge branch 'release' into vladimirov/merge-rel-master
rosen-vladimirov Dec 15, 2015
90a4cc0
Require logger and update to latest common lib
rosen-vladimirov Dec 15, 2015
637746a
Merge pull request #1352 from NativeScript/vladimirov/merge-rel-master
rosen-vladimirov Dec 15, 2015
31a235f
Add help for --template option
rosen-vladimirov Dec 15, 2015
550f5a5
Update create.md
ikoevska Dec 17, 2015
79d383f
Update create.md
ikoevska Dec 17, 2015
cfaa1a8
Merge pull request #1353 from NativeScript/vladimirov/help-for-templa…
ikoevska Dec 17, 2015
868ee2d
Fix help of create command
rosen-vladimirov Dec 17, 2015
cd898cb
Merge pull request #1357 from NativeScript/vladimirov/fix-create-help
rosen-vladimirov Dec 17, 2015
6aa3be4
Add $ grunt all task
Mitko-Kerezov Dec 18, 2015
2d7da20
Merge remote-tracking branch 'origin/release' into HEAD
Dec 18, 2015
caa5279
Merge pull request #1359 from NativeScript/kerezov/grunt-all
Mitko-Kerezov Dec 21, 2015
3ba0e21
UsbLiveSyncService minor cleanup.
hdeshev Dec 10, 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
39 changes: 26 additions & 13 deletions CocoaPods.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ To work with such libraries, you need to wrap them as a custom NativeScript plug
## Install CocoaPods
You need to install CocoaPods. If you haven't yet, you can do so by running:

```
```bash
$ 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.

```
```bash
$ pod --version
```

Expand All @@ -33,26 +33,26 @@ sudo gem install cocoapods
To start, create a project and add the iOS platform.

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

## Wrap the Library as NativeScript Plugin

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

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

Create a package.json file with the following content:
Create a `package.json` file with the following content:

```
```json
{
"name": "myplugin",
"name": "my-plugin",
"version": "0.0.1",
"nativescript": {
"platforms": {
Expand All @@ -72,18 +72,31 @@ my-plugin/
└── Podfile
```

Podfile:
```
pod 'GoogleMaps'
```

## Install the Plugin

Next, install the plugin:

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

## Build the project
> **NOTE:** Installing CocoaPods sets the deployment target of your app to iOS 8, if not already set to iOS 8 or later. This change is required because CocoaPods are installed as shared frameworks to ensure that all symbols are available at runtime.

```
## Build the Project

```bash
tns build ios
```

This modifies the `MYCocoaPods.xcodeproj` and creates a workspace with the same name.
This modifies the `MYCocoaPodsApp.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 package.

## Troubleshooting

> **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.
In case of post-build linker errors, you might need to resolve missing dependencies to native frameworks required by the installed CocoaPod. For more information about how to create the required links, see the [build.xcconfig specification](PLUGINS.md#buildxcconfig-specification).
12 changes: 6 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ module.exports = function(grunt) {
},

devlib: {
src: ["lib/**/*.ts", "!lib/common/node_modules/**/*.ts"],
src: ["lib/**/*.ts", "!lib/common/node_modules/**/*.ts", "!lib/common/messages/**/*.ts"],
reference: "lib/.d.ts"
},

devall: {
src: ["lib/**/*.ts", "test/**/*.ts", "!lib/common/node_modules/**/*.ts", "lib/common/test/unit-tests/**/*.ts", "definitions/**/*.ts", "!lib/common/test/.d.ts"],
src: ["lib/**/*.ts", "test/**/*.ts", "!lib/common/node_modules/**/*.ts", "!lib/common/messages/**/*.ts", "lib/common/test/unit-tests/**/*.ts", "definitions/**/*.ts", "!lib/common/test/.d.ts"],
reference: "lib/.d.ts"
},

release_build: {
src: ["lib/**/*.ts", "test/**/*.ts", "!lib/common/node_modules/**/*.ts"],
src: ["lib/**/*.ts", "test/**/*.ts", "!lib/common/node_modules/**/*.ts", "!lib/common/messages/**/*.ts"],
reference: "lib/.d.ts",
options: {
sourceMap: false,
Expand All @@ -61,7 +61,7 @@ module.exports = function(grunt) {
tslint: {
build: {
files: {
src: ["lib/**/*.ts", "test/**/*.ts", "!lib/common/node_modules/**/*.ts", "lib/common/test/unit-tests/**/*.ts", "definitions/**/*.ts", "!**/*.d.ts"]
src: ["lib/**/*.ts", "test/**/*.ts", "!lib/common/node_modules/**/*.ts", "!lib/common/messages/**/*.ts", "lib/common/test/unit-tests/**/*.ts", "definitions/**/*.ts", "!**/*.d.ts"]
},
options: {
configuration: grunt.file.readJSON("./tslint.json")
Expand All @@ -71,7 +71,7 @@ module.exports = function(grunt) {

watch: {
devall: {
files: ["lib/**/*.ts", 'test/**/*.ts', "!lib/common/node_modules/**/*.ts"],
files: ["lib/**/*.ts", 'test/**/*.ts', "!lib/common/node_modules/**/*.ts", "!lib/common/messages/**/*.ts"],
tasks: [
'ts:devall',
'shell:npm_test'
Expand Down Expand Up @@ -184,6 +184,6 @@ module.exports = function(grunt) {
"copy:package_to_qa_drop_folder"
]);
grunt.registerTask("lint", ["tslint:build"]);

grunt.registerTask("all", ["clean", "test", "lint"]);
grunt.registerTask("default", "ts:devlib");
};
Loading