Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
39c791c
Update to latest common
Aug 6, 2015
7ff9ec3
Merge pull request #757 from NativeScript/fatme/fatme-update-to-lates…
Aug 6, 2015
898c744
Fix livesync help
rosen-vladimirov Aug 7, 2015
b07fedf
Merge pull request #758 from NativeScript/vladimirov/livesync-service…
Aug 7, 2015
87e5b3f
Fixes https://github.com/NativeScript/nativescript-cli/issues/761 and…
Aug 10, 2015
46a9e6e
Merge pull request #765 from NativeScript/fatme/fix-ios-sim-livesync
Aug 10, 2015
b18afb3
Fix livesync docs
rosen-vladimirov Aug 10, 2015
89d36b7
Merge pull request #766 from NativeScript/vladimirov/fix-ls-ios-docs
rosen-vladimirov Aug 10, 2015
c212785
Fix "An error was encountered processing the command (code=146): Exce…
Aug 10, 2015
f6e2dc5
Merge pull request #768 from NativeScript/fatme/fix-coresimulatorbrid…
Aug 11, 2015
32d474f
Fix livesync ios --emulator --watch if the file is not at project roo…
Aug 13, 2015
d289361
Merge pull request #778 from NativeScript/fatme/fix-nested-folders-li…
Aug 13, 2015
abcd805
Trim library path
Aug 13, 2015
9c94121
Merge pull request #781 from NativeScript/fatme/trim-library-path
Aug 13, 2015
fda8e34
Bump up the version to 1.2.3
Aug 14, 2015
5fc132a
Merge pull request #786 from NativeScript/fatme/bump-up-version
Aug 14, 2015
5bb1706
Update to latest common lib
Aug 14, 2015
2c772b7
Merge pull request #787 from NativeScript/fatme/update-to-latest-comm…
Aug 14, 2015
e369d93
Update to latest common lib
Aug 14, 2015
589019f
Merge pull request #791 from NativeScript/vladimirov/update-to-latest…
rosen-vladimirov Aug 14, 2015
5c873d4
Output ios libraries in lib/iOS insted lib/iOS/libraryName folder
Aug 17, 2015
7dadb02
Merge pull request #799 from NativeScript/fatme/still-fixing-library-…
Aug 17, 2015
6be598d
Changelog 1.2.3
Aug 17, 2015
ab782c3
Merge pull request #800 from NativeScript/fatme/changelog-1.2.3
Aug 17, 2015
934667b
Merge {N} 1.2.3 release into master
teobugslayer Aug 18, 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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
NativeScript CLI Changelog
================

1.2.3 (2015, August 18)
==

### Fixed

* [Fixed #776](https://github.com/NativeScript/nativescript-cli/issues/776): `tns livesync ios --emulator --watch` doesn't sync changes.
* [Fixed #777](https://github.com/NativeScript/nativescript-cli/issues/777): `tns library add ios` does not build correct relative paths to referenced frameworks for mdgenerator.
* [Fixed #779](https://github.com/NativeScript/nativescript-cli/issues/779): Command failed due to space in library reference path.

1.2.2 (2015, August 11)
==

Expand Down
1 change: 1 addition & 0 deletions lib/services/android-project-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService

private parseProjectProperties(projDir: string, destDir: string): IFuture<void> { // projDir is libraryPath, targetPath is the path to lib folder
return (() => {
projDir = projDir.trim();
let projProp = path.join(projDir, "project.properties");
if (!this.$fs.exists(projProp).wait()) {
this.$logger.warn("Warning: File %s does not exist", projProp);
Expand Down
6 changes: 3 additions & 3 deletions lib/services/ios-project-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
var umbrellaHeader = this.getUmbrellaHeaderFromDynamicFramework(libraryPath).wait();

let frameworkName = path.basename(libraryPath, path.extname(libraryPath));
let targetPath = path.join("lib", this.platformData.normalizedPlatformName, frameworkName);
let targetPath = path.join("lib", this.platformData.normalizedPlatformName);
let fullTargetPath = path.join(this.$projectData.projectDir, targetPath);
this.$fs.ensureDirectoryExists(fullTargetPath).wait();
shell.cp("-R", libraryPath, fullTargetPath);
Expand Down Expand Up @@ -280,7 +280,7 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase

private getFrameworkRelativePath(libraryPath: string): string {
let frameworkName = path.basename(libraryPath, path.extname(libraryPath));
let targetPath = path.join("lib", this.platformData.normalizedPlatformName, frameworkName);
let targetPath = path.join("lib", this.platformData.normalizedPlatformName);
let frameworkPath = path.relative("platforms/ios", path.join(targetPath, frameworkName + ".framework"));
return frameworkPath;
}
Expand Down Expand Up @@ -380,4 +380,4 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
}).future<void>()();
}
}
$injector.register("iOSProjectService", IOSProjectService);
$injector.register("iOSProjectService", IOSProjectService);
19 changes: 18 additions & 1 deletion lib/services/usb-livesync-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer
}).future<string>()();
}

let iOSSimulatorRelativeToProjectBasePathAction = (projectFile: string): string => {
return path.join(constants.APP_FOLDER_NAME, path.dirname(projectFile.split(`/${constants.APP_FOLDER_NAME}/`)[1]));
}

let watchGlob = path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME);

let platformSpecificLiveSyncServices: IDictionary<any> = {
Expand All @@ -96,7 +100,20 @@ export class UsbLiveSyncService extends usbLivesyncServiceBaseLib.UsbLiveSyncSer

let localProjectRootPath = platform.toLowerCase() === "ios" ? platformData.appDestinationDirectoryPath : null;

this.sync(platform, this.$projectData.projectId, projectFilesPath, this.excludedProjectDirsAndFiles, watchGlob, platformSpecificLiveSyncServices, restartAppOnDeviceAction, notInstalledAppOnDeviceAction, notRunningiOSSimulatorAction, localProjectRootPath, beforeLiveSyncAction, beforeBatchLiveSyncAction).wait();
this.sync(platform,
this.$projectData.projectId,
projectFilesPath,
this.excludedProjectDirsAndFiles,
watchGlob,
platformSpecificLiveSyncServices,
restartAppOnDeviceAction,
notInstalledAppOnDeviceAction,
notRunningiOSSimulatorAction,
localProjectRootPath,
beforeLiveSyncAction,
beforeBatchLiveSyncAction,
iOSSimulatorRelativeToProjectBasePathAction
).wait();
}).future<void>()();
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nativescript",
"preferGlobal": true,
"version": "1.2.2",
"version": "1.2.3",
"author": "Telerik <support@telerik.com>",
"description": "Command-line interface for building NativeScript projects",
"bin": {
Expand Down