@capacitor/cli 4.4.0 → 4.4.1-dev-20221114T215445.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.
- package/assets/android-template.tar.gz +0 -0
- package/assets/capacitor-cordova-android-plugins.tar.gz +0 -0
- package/assets/capacitor-cordova-ios-plugins.tar.gz +0 -0
- package/assets/ios-template.tar.gz +0 -0
- package/dist/declarations.d.ts +13 -5
- package/dist/framework-configs.js +6 -0
- package/dist/tasks/migrate.js +12 -5
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/declarations.d.ts
CHANGED
|
@@ -208,31 +208,31 @@ export interface CapacitorConfig {
|
|
|
208
208
|
/**
|
|
209
209
|
* Path to your keystore
|
|
210
210
|
*
|
|
211
|
-
* @since 4.
|
|
211
|
+
* @since 4.4.0
|
|
212
212
|
*/
|
|
213
213
|
keystorePath?: string;
|
|
214
214
|
/**
|
|
215
215
|
* Password to your keystore
|
|
216
216
|
*
|
|
217
|
-
* @since 4.
|
|
217
|
+
* @since 4.4.0
|
|
218
218
|
*/
|
|
219
219
|
keystorePassword?: string;
|
|
220
220
|
/**
|
|
221
221
|
* Alias in the keystore to use
|
|
222
222
|
*
|
|
223
|
-
* @since 4.
|
|
223
|
+
* @since 4.4.0
|
|
224
224
|
*/
|
|
225
225
|
keystoreAlias?: string;
|
|
226
226
|
/**
|
|
227
227
|
* Password for the alias in the keystore to use
|
|
228
228
|
*
|
|
229
|
-
* @since 4.
|
|
229
|
+
* @since 4.4.0
|
|
230
230
|
*/
|
|
231
231
|
keystoreAliasPassword?: string;
|
|
232
232
|
/**
|
|
233
233
|
* Bundle type for your release build
|
|
234
234
|
*
|
|
235
|
-
* @since 4.
|
|
235
|
+
* @since 4.4.0
|
|
236
236
|
* @default "AAB"
|
|
237
237
|
*/
|
|
238
238
|
releaseType?: 'AAB' | 'APK';
|
|
@@ -378,6 +378,14 @@ export interface CapacitorConfig {
|
|
|
378
378
|
* @default recommended
|
|
379
379
|
*/
|
|
380
380
|
preferredContentMode?: 'recommended' | 'desktop' | 'mobile';
|
|
381
|
+
/**
|
|
382
|
+
* Configure if Capacitor will handle local/push notifications.
|
|
383
|
+
* Set to false if you want to use your own UNUserNotificationCenter to handle notifications.
|
|
384
|
+
*
|
|
385
|
+
* @since 4.4.1
|
|
386
|
+
* @default true
|
|
387
|
+
*/
|
|
388
|
+
handleApplicationNotifications?: boolean;
|
|
381
389
|
};
|
|
382
390
|
server?: {
|
|
383
391
|
/**
|
|
@@ -68,6 +68,12 @@ const FRAMEWORK_CONFIGS = [
|
|
|
68
68
|
webDir: 'public',
|
|
69
69
|
priority: 3,
|
|
70
70
|
},
|
|
71
|
+
{
|
|
72
|
+
name: 'Vite',
|
|
73
|
+
isMatch: config => hasDependency(config, 'vite'),
|
|
74
|
+
webDir: 'dist',
|
|
75
|
+
priority: 2,
|
|
76
|
+
},
|
|
71
77
|
{
|
|
72
78
|
name: 'Vue',
|
|
73
79
|
isMatch: config => hasDependency(config, '@vue/cli-service'),
|
package/dist/tasks/migrate.js
CHANGED
|
@@ -338,8 +338,13 @@ async function updateBuildGradle(filename, leaveJCenter, variablesAndClasspaths)
|
|
|
338
338
|
let replaced = txt;
|
|
339
339
|
for (const dep of Object.keys(neededDeps)) {
|
|
340
340
|
if (replaced.includes(`classpath '${dep}`)) {
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
const semver = await Promise.resolve().then(() => tslib_1.__importStar(require('semver')));
|
|
342
|
+
const firstIndex = replaced.indexOf(dep) + dep.length + 1;
|
|
343
|
+
const existingVersion = '' + replaced.substring(firstIndex, replaced.indexOf("'", firstIndex));
|
|
344
|
+
if (semver.gte(neededDeps[dep], existingVersion)) {
|
|
345
|
+
replaced = setAllStringIn(replaced, `classpath '${dep}:`, `'`, neededDeps[dep]);
|
|
346
|
+
log_1.logger.info(`Set ${dep} = ${neededDeps[dep]}.`);
|
|
347
|
+
}
|
|
343
348
|
}
|
|
344
349
|
}
|
|
345
350
|
// Replace jcenter()
|
|
@@ -669,11 +674,13 @@ async function migrateMainActivity(config) {
|
|
|
669
674
|
data = data.replace('// Initializes the Bridge', '');
|
|
670
675
|
}
|
|
671
676
|
const rindex = data.indexOf('registerPlugin');
|
|
677
|
+
const superLine = 'super.onCreate(savedInstanceState);';
|
|
672
678
|
if (rindex !== -1) {
|
|
673
|
-
if (data.indexOf(
|
|
674
|
-
|
|
679
|
+
if (data.indexOf(superLine) < rindex) {
|
|
680
|
+
const linePadding = rindex - data.indexOf(superLine) - superLine.length - 1;
|
|
681
|
+
data = data.replace(`${superLine}\n${' '.repeat(linePadding)}`, '');
|
|
675
682
|
const eindex = data.lastIndexOf('.class);') + 8;
|
|
676
|
-
data = data.replace(data.substring(bindex, eindex), `${data.substring(bindex, eindex)}\n
|
|
683
|
+
data = data.replace(data.substring(bindex, eindex), `${data.substring(bindex, eindex)}\n${' '.repeat(linePadding) + superLine.padStart(linePadding)}`);
|
|
677
684
|
}
|
|
678
685
|
}
|
|
679
686
|
if (bindex == -1 && rindex == -1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/cli",
|
|
3
|
-
"version": "4.4.0",
|
|
3
|
+
"version": "4.4.1-dev-20221114T215445.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)",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "ecbf81ebb1b01de0b544c3f171fe3b042253088d"
|
|
87
87
|
}
|