You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/02/28 13:53:54 UTC

[cordova-docs] branch master updated: Remove hook that is not supported any more (#937)

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new 58de252  Remove hook that is not supported any more (#937)
58de252 is described below

commit 58de252aea2461b3bd6a06c6c9b0d6c1e0ddbd7a
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Thu Feb 28 14:53:49 2019 +0100

    Remove hook that is not supported any more (#937)
    
    * Remove hook that is not supported any more
    
    https://github.com/apache/cordova-windows/search?q=pre_package&unscoped_q=pre_package&type=Code
    
    * also fix strange example naming
---
 www/docs/en/dev/guide/appdev/hooks/index.md | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/www/docs/en/dev/guide/appdev/hooks/index.md b/www/docs/en/dev/guide/appdev/hooks/index.md
index 8f2794d..1eee556 100644
--- a/www/docs/en/dev/guide/appdev/hooks/index.md
+++ b/www/docs/en/dev/guide/appdev/hooks/index.md
@@ -143,11 +143,6 @@ Cordova supports the following hook types:
             <th data-col="afterclean">after_clean</th>
         </tr>
         <tr>
-            <th data-col="prepackage">pre_package</td>
-            <td data-col="code">N/A</td>
-            <td data-col="description">Applicable to Windows 8 and Windows Phone only. This hook is deprecated.</td>
-        </tr>
-        <tr>
             <th data-col="beforepluginadd">before_plugin_add</th>
             <td data-col="code" rowspan="2"><code>cordova plugin add</code></td>
             <td rowspan="2" data-col="description">To be executed before and after adding a plugin.</td>
@@ -209,9 +204,9 @@ Hooks could be defined in project's `config.xml` using `<hook>` elements, for ex
 <hook type="before_plugin_install" src="scripts/appBeforePluginInstall.js" />
 
 <platform name="android">
-    <hook type="before_build" src="scripts/wp8/appAndroidBeforeBuild.bat" />
-    <hook type="before_build" src="scripts/wp8/appAndroidBeforeBuild.js" />
-    <hook type="before_plugin_install" src="scripts/wp8/appWP8BeforePluginInstall.js" />
+    <hook type="before_build" src="scripts/android/appAndroidBeforeBuild.bat" />
+    <hook type="before_build" src="scripts/android/appAndroidBeforeBuild.js" />
+    <hook type="before_plugin_install" src="scripts/android/appAndroidBeforePluginInstall.js" />
     ...
 </platform>
 
@@ -300,6 +295,7 @@ after_build
 ```
 
 ## Script Interface
+
 ### Windows Quirks
 
 If you are working on Windows, and in case your hook (Javascript/Non-Javascript)scripts aren't bat files (which is recommended, if you want your scripts to work in non-Windows operating systems) Cordova CLI will expect a shebang line as the first line for it to know the interpreter it needs to use to launch the script. The shebang line should match the following example:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org