@capacitor/cli 5.0.1 → 5.0.2-nightly-20230508T150621.0
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
|
|
Binary file
|
package/dist/common.js
CHANGED
|
@@ -353,23 +353,28 @@ function resolvePlatform(config, platform) {
|
|
|
353
353
|
}
|
|
354
354
|
exports.resolvePlatform = resolvePlatform;
|
|
355
355
|
async function checkJDKMajorVersion() {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
356
|
+
try {
|
|
357
|
+
const string = await (0, subprocess_1.runCommand)('java', ['--version']);
|
|
358
|
+
const versionRegex = RegExp(/([0-9]+)\.?([0-9]*)\.?([0-9]*)/);
|
|
359
|
+
const versionMatch = versionRegex.exec(string);
|
|
360
|
+
if (versionMatch === null) {
|
|
361
|
+
return -1;
|
|
362
|
+
}
|
|
363
|
+
const firstVersionNumber = parseInt(versionMatch[1]);
|
|
364
|
+
const secondVersionNumber = parseInt(versionMatch[2]);
|
|
365
|
+
if (typeof firstVersionNumber === 'number' && firstVersionNumber != 1) {
|
|
366
|
+
return firstVersionNumber;
|
|
367
|
+
}
|
|
368
|
+
else if (typeof secondVersionNumber === 'number' &&
|
|
369
|
+
firstVersionNumber == 1 &&
|
|
370
|
+
secondVersionNumber < 9) {
|
|
371
|
+
return secondVersionNumber;
|
|
372
|
+
}
|
|
373
|
+
else {
|
|
374
|
+
return -1;
|
|
375
|
+
}
|
|
371
376
|
}
|
|
372
|
-
|
|
377
|
+
catch (e) {
|
|
373
378
|
return -1;
|
|
374
379
|
}
|
|
375
380
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/cli",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2-nightly-20230508T150621.0",
|
|
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)",
|