From a7c50f07614a33011f4ed7e8d7b962d42c6c11a9 Mon Sep 17 00:00:00 2001 From: Manuel Beck Date: Sun, 8 Jun 2025 14:18:47 +0200 Subject: [PATCH 1/2] Plugin Guide: Notes for --link option - Added notice, that the linking only works, when the plugin is added after a platform was added and that the linking will be lost if a platform is re-added or a project is restored - Added link to "Version management" to explain what restoring a project means and add `cordova prepare` to give an example also --- www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md b/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md index f748773b5f..ab8c58f735 100644 --- a/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md +++ b/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md @@ -193,8 +193,7 @@ Cordova app as usual and add the plugin with the `--link` option: cordova plugin add ../path/to/my/plugin/relative/to/project --link ``` -This creates a symbolic link instead of copying the plugin files, which enables you -to work on your plugin and then simply rebuild the app to use your changes. +This creates a symbolic link instead of copying the plugin files, which enables you to work on your plugin and then simply rebuild the app to use your changes. The plugin should be added after the platform, or the link will not work. The link will also be lost if you re-add the platform or [restore the project](../../../platform_plugin_versioning_ref/index.md) with `cordova prepare`. In that case, you'll need to re-add the plugin to restore the link. ## Validating a Plugin using Plugman From 9eaf697e91c36bc603f3fc6ab32062e5f0cec21d Mon Sep 17 00:00:00 2001 From: Manuel Beck Date: Sun, 8 Jun 2025 14:18:47 +0200 Subject: [PATCH 2/2] Plugin Guide: Notes for --link option - Added notice, that the linking only works, when the plugin is added after a platform was added and that the linking will be lost if a platform is re-added or a project is restored - Added link to "Version management" to explain what restoring a project means and add `cordova prepare` to give an example also - Added to 12.x-2025.01 and dev --- www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md | 3 +-- www/docs/en/dev/guide/hybrid/plugins/index.md | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md b/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md index f748773b5f..ab8c58f735 100644 --- a/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md +++ b/www/docs/en/12.x-2025.01/guide/hybrid/plugins/index.md @@ -193,8 +193,7 @@ Cordova app as usual and add the plugin with the `--link` option: cordova plugin add ../path/to/my/plugin/relative/to/project --link ``` -This creates a symbolic link instead of copying the plugin files, which enables you -to work on your plugin and then simply rebuild the app to use your changes. +This creates a symbolic link instead of copying the plugin files, which enables you to work on your plugin and then simply rebuild the app to use your changes. The plugin should be added after the platform, or the link will not work. The link will also be lost if you re-add the platform or [restore the project](../../../platform_plugin_versioning_ref/index.md) with `cordova prepare`. In that case, you'll need to re-add the plugin to restore the link. ## Validating a Plugin using Plugman diff --git a/www/docs/en/dev/guide/hybrid/plugins/index.md b/www/docs/en/dev/guide/hybrid/plugins/index.md index f748773b5f..ab8c58f735 100644 --- a/www/docs/en/dev/guide/hybrid/plugins/index.md +++ b/www/docs/en/dev/guide/hybrid/plugins/index.md @@ -193,8 +193,7 @@ Cordova app as usual and add the plugin with the `--link` option: cordova plugin add ../path/to/my/plugin/relative/to/project --link ``` -This creates a symbolic link instead of copying the plugin files, which enables you -to work on your plugin and then simply rebuild the app to use your changes. +This creates a symbolic link instead of copying the plugin files, which enables you to work on your plugin and then simply rebuild the app to use your changes. The plugin should be added after the platform, or the link will not work. The link will also be lost if you re-add the platform or [restore the project](../../../platform_plugin_versioning_ref/index.md) with `cordova prepare`. In that case, you'll need to re-add the plugin to restore the link. ## Validating a Plugin using Plugman