Skip to content

Commit 4561515

Browse files
authored
chore(cli): Deprecate cordova.staticPlugins (#7564)
1 parent 57ce5c6 commit 4561515

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cli/src/cordova.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,9 @@ export function needsStaticPod(plugin: Plugin, config: Config): boolean {
679679
'onesignal-cordova-plugin',
680680
];
681681
if (config.app.extConfig?.cordova?.staticPlugins) {
682+
logger.warn(
683+
'cordova.staticPlugins is deprecated, make sure you are using latest version of the plugin',
684+
);
682685
pluginList = pluginList.concat(
683686
config.app.extConfig?.cordova?.staticPlugins,
684687
);

cli/src/declarations.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,10 @@ export interface CapacitorConfig {
580580
* List of Cordova plugins that need to be static but are not
581581
* already in the static plugin list.
582582
*
583+
* It's deprecated and will be removed in Capacitor 7
584+
*
583585
* @since 3.3.0
586+
* @deprecated 6.1.1
584587
*/
585588
staticPlugins?: string[];
586589
};

0 commit comments

Comments
 (0)