Skip to content

Commit dd071a7

Browse files
committed
Merge pull request #170 from NativeScript/totev/sync-common-lib
Integrate the latest changes from the common lib
2 parents bd86ce3 + 1e18ba6 commit dd071a7

23 files changed

+26
-5
lines changed

lib/commands/emulate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
///<reference path="../.d.ts"/>
2+
"use strict";
23

34
export class EmulateCommand implements ICommand {
45
constructor(private $platformService: IPlatformService,

lib/commands/list-devices.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
///<reference path="../.d.ts"/>
2+
"use strict";
3+
24
import helpers = require("./../common/helpers");
35
import util = require("util")
46

lib/commands/list-platforms.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
///<reference path="../.d.ts"/>
2+
"use strict";
3+
24
import helpers = require("./../common/helpers");
35
import util = require("util")
46

lib/commands/prepare.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
///<reference path="../.d.ts"/>
2+
"use strict";
23

34
export class PrepareCommand implements ICommand {
45
constructor(private $platformService: IPlatformService,

lib/config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
///<reference path=".d.ts"/>
2+
"use strict";
23

34
import path = require("path");
45
import util = require("util");
@@ -21,5 +22,9 @@ export class StaticConfig implements IStaticConfig {
2122
public get adbFilePath(): string {
2223
return path.join(__dirname, util.format("../resources/platform-tools/android/%s/adb", process.platform));
2324
}
25+
26+
public get sevenZipFilePath() {
27+
return path.join(__dirname, util.format("../resources/platform-tools/unzip/%s/7za", process.platform));
28+
}
2429
}
2530
$injector.register("staticConfig", StaticConfig);

lib/node-package-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
///<reference path=".d.ts"/>
2+
"use strict";
23

34
import Future = require("fibers/future");
45
import npm = require("npm");

lib/options.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
///<reference path=".d.ts"/>
2+
"use strict";
23

34
import path = require("path");
45
import helpers = require("./common/helpers");
@@ -34,7 +35,7 @@ if(hostInfo.isWindows()) {
3435
}
3536

3637
commonOptions.setProfileDir(defaultProfileDir);
37-
var parsed = helpers.getParsedOptions(knownOpts, shorthands);
38+
var parsed = helpers.getParsedOptions(knownOpts, shorthands, "nativescript");
3839

3940
Object.keys(parsed).forEach((opt) => exports[opt] = parsed[opt]);
4041
exports.knownOpts = knownOpts;

lib/services/analytics-settings-service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
///<reference path="../.d.ts"/>
2+
"use strict";
23

34
class AnalyticsSettingsService implements IAnalyticsSettingsService {
45
constructor(private $userSettingsService: UserSettings.IUserSettingsService,

lib/services/android-project-service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
///<reference path="../.d.ts"/>
2+
"use strict";
23
import path = require("path");
34
import shell = require("shelljs");
45
import util = require("util");

0 commit comments

Comments
 (0)