From b54aae6d059d01c2a0b3365856eb5b9c25709c3c Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 15 Jul 2024 16:11:34 +0200 Subject: [PATCH 1/2] chore(cli): Deprecate cordova.staticPlugins --- cli/src/cordova.ts | 1 + cli/src/declarations.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cli/src/cordova.ts b/cli/src/cordova.ts index 216e465cf..fb2053651 100644 --- a/cli/src/cordova.ts +++ b/cli/src/cordova.ts @@ -679,6 +679,7 @@ export function needsStaticPod(plugin: Plugin, config: Config): boolean { 'onesignal-cordova-plugin', ]; if (config.app.extConfig?.cordova?.staticPlugins) { + logger.warn('cordova.staticPlugins is deprecated, make sure you are using latest version of the plugin') pluginList = pluginList.concat( config.app.extConfig?.cordova?.staticPlugins, ); diff --git a/cli/src/declarations.ts b/cli/src/declarations.ts index 43954f56d..3f61213fc 100644 --- a/cli/src/declarations.ts +++ b/cli/src/declarations.ts @@ -580,7 +580,10 @@ export interface CapacitorConfig { * List of Cordova plugins that need to be static but are not * already in the static plugin list. * + * It's deprecated and will be removed in Capacitor 7 + * * @since 3.3.0 + * @deprecated 6.1.1 */ staticPlugins?: string[]; }; From d5b421c5b8171a1ed506343a91b487e3b1198778 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 15 Jul 2024 16:31:50 +0200 Subject: [PATCH 2/2] fmt --- cli/src/cordova.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/src/cordova.ts b/cli/src/cordova.ts index fb2053651..4e3026f9d 100644 --- a/cli/src/cordova.ts +++ b/cli/src/cordova.ts @@ -679,7 +679,9 @@ export function needsStaticPod(plugin: Plugin, config: Config): boolean { 'onesignal-cordova-plugin', ]; if (config.app.extConfig?.cordova?.staticPlugins) { - logger.warn('cordova.staticPlugins is deprecated, make sure you are using latest version of the plugin') + logger.warn( + 'cordova.staticPlugins is deprecated, make sure you are using latest version of the plugin', + ); pluginList = pluginList.concat( config.app.extConfig?.cordova?.staticPlugins, );