Comparing sensitive data, confidential files or internal emails?

Most legal and privacy policies prohibit uploading sensitive data online. Diffchecker Desktop ensures your confidential information never leaves your computer. Work offline and compare documents securely.

Untitled diff

Created Diff never expires
8 removals
43 lines
10 additions
44 lines
var appc = require('node-appc'),
var appc = require('node-appc'),
__ = appc.i18n(__dirname).__;
__ = appc.i18n(__dirname).__;




/**
/**
* Defines the --wp-sdk option.
* Defines the --wp-sdk option.
*
*
* @param {Number} order - The order to apply to this option.
* @param {Number} order - The order to apply to this option.
*
*
* @returns {Object}
* @returns {Object}
*/
*/
module.exports = function configOptionWPSDK(order) {
module.exports = function configOptionWPSDK(order) {
var defaultTarget = '10.0',
var defaultTarget = '10.0',
sdkTargets = [],
sdkTargets = [],
unsupportedTargets = ['8.0'];
unsupportedTargets = ['8.0'];

for (var version in this.windowsInfo.windowsphone) {
if (this.windowsInfo) {
if (unsupportedTargets.indexOf(version) === -1) {
for (var version in this.windowsInfo.windowsphone) {
sdkTargets.push(version);
if (unsupportedTargets.indexOf(version) === -1) {
}
sdkTargets.push(version);
if (this.windowsInfo.windowsphone[version].selected) {
}
defaultTarget = version;
if (this.windowsInfo.windowsphone[version].selected) {
defaultTarget = version;
}
}
}
}
}

return {
return {
abbr: 'S',
abbr: 'S',
callback: function (value) {
callback: function (value) {
// We can use built-in temp key for local/emulator builds. For dist,
// We can use built-in temp key for local/emulator builds. For dist,
// insist on user/generated PFX when app requires one
// insist on user/generated PFX when app requires one
if (this.conf.options['target'] == 'dist-winstore' ||
if (this.conf.options['target'] == 'dist-winstore' ||
(value == '10.0' && this.conf.options['target'] == 'dist-phonestore')) {
(value == '10.0' && this.conf.options['target'] == 'dist-phonestore')) {
this.conf.options['ws-cert'].required = true;
this.conf.options['ws-cert'].required = true;
}
}
}.bind(this),
}.bind(this),
default: defaultTarget,
default: defaultTarget,
desc: __('the Windows Phone SDK version; only used when target is %s, %s, or %s', 'wp-emulator'.cyan, 'wp-device'.cyan, 'dist-phonestore'.cyan),
desc: __('the Windows Phone SDK version; only used when target is %s, %s, or %s', 'wp-emulator'.cyan, 'wp-device'.cyan, 'dist-phonestore'.cyan),
hint: __('version'),
hint: __('version'),
order: order,
order: order,
values: sdkTargets
values: sdkTargets
};
};
};
};