@capacitor/cli 7.0.0-alpha.1 → 7.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
Binary file
@@ -174,7 +174,7 @@ async function handleCordovaPluginsGradle(config, cordovaPlugins) {
174
174
  var _a, _b, _c;
175
175
  const pluginsGradlePath = (0, path_1.join)(config.android.cordovaPluginsDirAbs, 'build.gradle');
176
176
  const kotlinNeeded = await kotlinNeededCheck(config, cordovaPlugins);
177
- const kotlinVersionString = (_c = (_b = (_a = config.app.extConfig.cordova) === null || _a === void 0 ? void 0 : _a.preferences) === null || _b === void 0 ? void 0 : _b.GradlePluginKotlinVersion) !== null && _c !== void 0 ? _c : '1.8.20';
177
+ const kotlinVersionString = (_c = (_b = (_a = config.app.extConfig.cordova) === null || _a === void 0 ? void 0 : _a.preferences) === null || _b === void 0 ? void 0 : _b.GradlePluginKotlinVersion) !== null && _c !== void 0 ? _c : '1.9.10';
178
178
  const frameworksArray = [];
179
179
  let prefsArray = [];
180
180
  const applyArray = [];
@@ -6,7 +6,8 @@ const colors_1 = tslib_1.__importDefault(require("../colors"));
6
6
  const errors_1 = require("../errors");
7
7
  const log_1 = require("../log");
8
8
  const sysconfig_1 = require("../sysconfig");
9
- const telemetry_1 = require("../telemetry");
9
+ const THANK_YOU = `\nThank you for helping to make Capacitor better! 💖` +
10
+ `\nInformation about the data we collect is available on our website: ${colors_1.default.strong('https://capacitorjs.com/telemetry')}\n`;
10
11
  async function telemetryCommand(onOrOff) {
11
12
  const sysconfig = await (0, sysconfig_1.readConfig)();
12
13
  const enabled = interpretEnabled(onOrOff);
@@ -18,7 +19,7 @@ async function telemetryCommand(onOrOff) {
18
19
  await (0, sysconfig_1.writeConfig)({ ...sysconfig, telemetry: enabled });
19
20
  (0, log_1.logSuccess)(`You have ${colors_1.default.strong(`opted ${enabled ? 'in' : 'out'}`)} ${enabled ? 'for' : 'of'} telemetry on this machine.`);
20
21
  if (enabled) {
21
- log_1.output.write(telemetry_1.THANK_YOU);
22
+ log_1.output.write(THANK_YOU);
22
23
  }
23
24
  }
24
25
  }
package/dist/telemetry.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sendMetric = exports.telemetryAction = exports.THANK_YOU = void 0;
3
+ exports.sendMetric = exports.telemetryAction = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const commander_1 = require("commander");
6
6
  const debug_1 = tslib_1.__importDefault(require("debug"));
@@ -11,8 +11,9 @@ const sysconfig_1 = require("./sysconfig");
11
11
  const subprocess_1 = require("./util/subprocess");
12
12
  const term_1 = require("./util/term");
13
13
  const debug = (0, debug_1.default)('capacitor:telemetry');
14
- exports.THANK_YOU = `\nThank you for helping to make Capacitor better! 💖` +
15
- `\nInformation about the data we collect is available on our website: ${colors_1.default.strong('https://capacitorjs.com/telemetry')}\n`;
14
+ const THANK_YOU = `\nThank you for helping improve Capacitor by sharing anonymous usage data! 💖` +
15
+ `\nInformation about the data we collect is available on our website: ${colors_1.default.strong('https://capacitorjs.com/telemetry')}` +
16
+ `\nYou can disable telemetry at any time by using the ${colors_1.default.input('npx cap telemetry off')} command.`;
16
17
  function telemetryAction(config, action) {
17
18
  return async (...actionArgs) => {
18
19
  const start = new Date();
@@ -55,9 +56,10 @@ function telemetryAction(config, action) {
55
56
  if ((0, term_1.isInteractive)()) {
56
57
  let sysconfig = await (0, sysconfig_1.readConfig)();
57
58
  if (!error && typeof sysconfig.telemetry === 'undefined') {
58
- const confirm = await promptForTelemetry();
59
- sysconfig = { ...sysconfig, telemetry: confirm };
59
+ // Telemetry is opt-out; turn telemetry on then inform the user how to opt-out.
60
+ sysconfig = { ...sysconfig, telemetry: true };
60
61
  await (0, sysconfig_1.writeConfig)(sysconfig);
62
+ log_1.output.write(THANK_YOU);
61
63
  }
62
64
  await sendMetric(sysconfig, 'capacitor_cli_command', data);
63
65
  }
@@ -86,19 +88,6 @@ async function sendMetric(sysconfig, name, data) {
86
88
  }
87
89
  }
88
90
  exports.sendMetric = sendMetric;
89
- async function promptForTelemetry() {
90
- const { confirm } = await (0, log_1.logPrompt)(`${colors_1.default.strong('Would you like to help improve Capacitor by sharing anonymous usage data? 💖')}\n` +
91
- `Read more about what is being collected and why here: ${colors_1.default.strong('https://capacitorjs.com/telemetry')}. You can change your mind at any time by using the ${colors_1.default.input('npx cap telemetry')} command.`, {
92
- type: 'confirm',
93
- name: 'confirm',
94
- message: 'Share anonymous usage data?',
95
- initial: true,
96
- });
97
- if (confirm) {
98
- log_1.output.write(exports.THANK_YOU);
99
- }
100
- return confirm;
101
- }
102
91
  /**
103
92
  * Get a unique anonymous identifier for this app.
104
93
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/cli",
3
- "version": "7.0.0-alpha.1",
3
+ "version": "7.0.0-alpha.2",
4
4
  "description": "Capacitor: Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capacitorjs.com",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionic.io)",