Skip to content

Commit

Permalink
chore(cli): Deprecate cordova.staticPlugins (#7564)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jul 16, 2024
1 parent 57ce5c6 commit 4561515
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/src/cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +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',
);
pluginList = pluginList.concat(
config.app.extConfig?.cordova?.staticPlugins,
);
Expand Down
3 changes: 3 additions & 0 deletions cli/src/declarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
};
Expand Down

0 comments on commit 4561515

Please sign in to comment.