You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/12/13 14:53:38 UTC

svn commit: r1818028 - in /cordova/site/public: docs/en/dev/guide/platforms/android/index.html docs/en/dev/reference/cordova-cli/index.html docs/en/dev/reference/cordova-plugin-vibration/index.html feed.xml

Author: steven
Date: Wed Dec 13 14:53:38 2017
New Revision: 1818028

URL: http://svn.apache.org/viewvc?rev=1818028&view=rev
Log:
Updated docs

Modified:
    cordova/site/public/docs/en/dev/guide/platforms/android/index.html
    cordova/site/public/docs/en/dev/reference/cordova-cli/index.html
    cordova/site/public/docs/en/dev/reference/cordova-plugin-vibration/index.html
    cordova/site/public/feed.xml

Modified: cordova/site/public/docs/en/dev/guide/platforms/android/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/guide/platforms/android/index.html?rev=1818028&r1=1818027&r2=1818028&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/guide/platforms/android/index.html (original)
+++ cordova/site/public/docs/en/dev/guide/platforms/android/index.html Wed Dec 13 14:53:38 2017
@@ -2725,6 +2725,11 @@ few cordova-android releases can be foun
 </tr>
 </thead><tbody>
 <tr>
+<td>7.X.X</td>
+<td>19 - 27</td>
+<td>4.4 - 8.1</td>
+</tr>
+<tr>
 <td>6.X.X</td>
 <td>16 - 26</td>
 <td>4.1 - 8.0.0</td>

Modified: cordova/site/public/docs/en/dev/reference/cordova-cli/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/reference/cordova-cli/index.html?rev=1818028&r1=1818027&r2=1818028&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/reference/cordova-cli/index.html (original)
+++ cordova/site/public/docs/en/dev/reference/cordova-cli/index.html Wed Dec 13 14:53:38 2017
@@ -2852,12 +2852,12 @@
 <div class="highlight"><pre><code class="language-" data-lang=""># Create a cordova project
 cordova create myApp com.myCompany.myApp myApp
 cd myApp
-# Add camera plugin to the project and remember that in config.xml &amp; package.json. Do not use npm install to fetch.
-cordova plugin add cordova-plugin-camera --nofetch
-# Add camera plugin to the project and remember that in config.xml and package.json. Uses pre cordova@7 fetching methods instead of cordova-fetch which uses npm install under the hood.
-cordova plugin add cordova-plugin-camera --nofetch
-# Add android platform to the project and remember that in config.xml &amp; package.json. Uses pre cordova@7 fetching methods instead of cordova-fetch which uses npm install under the hood
-cordova platform add android --nofetch
+# Add camera plugin to the project and remember that in config.xml &amp; package.json.
+cordova plugin add cordova-plugin-camera
+# Add camera plugin to the project and remember that in config.xml and package.json. 
+cordova plugin add cordova-plugin-camera
+# Add android platform to the project and remember that in config.xml &amp; package.json.
+cordova platform add android
 # Check to see if your system is configured for building android platform.
 cordova requirements android
 # Build the android and emit verbose logs.
@@ -3004,8 +3004,8 @@ www/
 
 <h3>Syntax</h3>
 <div class="highlight"><pre><code class="language-bash" data-lang="bash">cordova <span class="o">{</span>platform | platforms<span class="o">}</span> <span class="o">[</span>
-    add &lt;platform-spec&gt; <span class="o">[</span>...] <span class="o">{</span><span class="nt">--save</span> | <span class="nv">link</span><span class="o">=</span>&lt;path&gt; | <span class="nt">--fetch</span> <span class="o">}</span> |
-    <span class="o">{</span>remove | rm<span class="o">}</span>  platform <span class="o">[</span>...] <span class="o">{</span><span class="nt">--save</span> | <span class="nt">--fetch</span><span class="o">}</span>|
+    add &lt;platform-spec&gt; <span class="o">[</span>...] <span class="o">{</span><span class="nt">--save</span> | <span class="nv">link</span><span class="o">=</span>&lt;path&gt; <span class="o">}</span> |
+    <span class="o">{</span>remove | rm<span class="o">}</span>  platform <span class="o">[</span>...] <span class="o">{</span><span class="nt">--save</span><span class="o">}</span>|
     <span class="o">{</span>list | <span class="nb">ls</span><span class="o">}</span>  |
     check |
     save |
@@ -3034,11 +3034,6 @@ www/
 <td>When <code>&lt;platform-spec&gt;</code> is a local path, links the platform library directly instead of making a copy of it (support varies by platform; useful for platform development)</td>
 </tr>
 <tr>
-<td></td>
-<td>--nofetch</td>
-<td>Do not fetch the platform using <code>npm install</code> and do not store it into the apps <code>node_modules</code> directory</td>
-</tr>
-<tr>
 <td>remove <code>&lt;platform&gt;</code> [...]</td>
 <td></td>
 <td>Remove specified platforms</td>
@@ -3049,11 +3044,6 @@ www/
 <td>Do not delete specified platforms from <code>config.xml</code> &amp; <code>package.json</code> after removing them</td>
 </tr>
 <tr>
-<td></td>
-<td>--nofetch</td>
-<td>Prevent removing the platform using <code>npm uninstall</code> and prevent removing it from the apps <code>node_modules</code> directory</td>
-</tr>
-<tr>
 <td>update <code>platform</code> [...]</td>
 <td></td>
 <td>Update specified platforms</td>
@@ -3064,11 +3054,6 @@ www/
 <td>Updates the version specified in <code>config.xml</code></td>
 </tr>
 <tr>
-<td></td>
-<td>--nofetch</td>
-<td>Do not fetch the platform using <code>npm install</code> and do not store it into the apps <code>node_modules</code> directory</td>
-</tr>
-<tr>
 <td>list</td>
 <td></td>
 <td>List all installed and available platforms</td>
@@ -3144,9 +3129,6 @@ www/
 <li><p>Add pinned version of the <code>android</code> and <code>ios</code> platform and save the downloaded version to <code>config.xml</code> &amp; <code>package.json</code>:</p>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova platform add android ios
 </code></pre></div></li>
-<li><p>Add pinned version of the <code>android</code> and <code>ios</code> platform and save the downloaded version to <code>config.xml</code> &amp; <code>package.json</code>. Do not install to the project using <code>npm install</code> and do not store it in the apps <code>node_modules</code> directory:</p>
-<div class="highlight"><pre><code class="language-" data-lang="">cordova platform add android ios --nofetch
-</code></pre></div></li>
 <li><p>Add <code>android</code> platform with <a href="http://semver.org/">semver</a> version ^5.0.0 and save it to <code>config.xml</code> &amp; <code>package.json</code>:</p>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova platform add android@^5.0.0
 </code></pre></div></li>
@@ -3165,9 +3147,6 @@ www/
 <li><p>Remove <code>android</code> platform from the project and do NOT remove from <code>config.xml</code> &amp; <code>package.json</code>:</p>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova platform rm android --nosave
 </code></pre></div></li>
-<li><p>Remove <code>android</code> platform from the project and do NOT remove from <code>config.xml</code> &amp; &#39;package.json. Do not run <code>npm uninstall</code> to remove it</p>
-<div class="highlight"><pre><code class="language-" data-lang="">cordova platform rm android --nosave --nofetch
-</code></pre></div></li>
 <li><p>List available and installed platforms with version numbers. This is useful to find version numbers when reporting issues:</p>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova platform ls
 </code></pre></div></li>
@@ -3184,8 +3163,8 @@ www/
 
 <h3>Syntax</h3>
 <div class="highlight"><pre><code class="language-bash" data-lang="bash">cordova <span class="o">{</span>plugin | plugins<span class="o">}</span> <span class="o">[</span>
-    add &lt;plugin-spec&gt; <span class="o">[</span>..] <span class="o">{</span><span class="nt">--searchpath</span><span class="o">=</span>&lt;directory&gt; | <span class="nt">--noregistry</span> | <span class="nt">--link</span> | <span class="nt">--save</span> | <span class="nt">--browserify</span> | <span class="nt">--force</span> | <span class="nt">--nofetch</span><span class="o">}</span> |
-    <span class="o">{</span>remove | rm<span class="o">}</span> <span class="o">{</span>&lt;pluginid&gt; | &lt;name&gt;<span class="o">}</span> <span class="nt">--save</span> <span class="nt">--nofetch</span> |
+    add &lt;plugin-spec&gt; <span class="o">[</span>..] <span class="o">{</span><span class="nt">--searchpath</span><span class="o">=</span>&lt;directory&gt; | <span class="nt">--noregistry</span> | <span class="nt">--link</span> | <span class="nt">--save</span> | <span class="nt">--browserify</span> | <span class="nt">--force</span><span class="o">}</span> |
+    <span class="o">{</span>remove | rm<span class="o">}</span> <span class="o">{</span>&lt;pluginid&gt; | &lt;name&gt;<span class="o">}</span> <span class="nt">--save</span> |
     <span class="o">{</span>list | <span class="nb">ls</span><span class="o">}</span> |
     search <span class="o">[</span>&lt;keyword&gt;] |
     save |
@@ -3234,11 +3213,6 @@ www/
 <td><em>Introduced in version 6.1.</em> Forces copying source files from the plugin even if the same file already exists in the target directory.</td>
 </tr>
 <tr>
-<td></td>
-<td>--nofetch</td>
-<td>Do not fetch the plugin using <code>npm install</code> and do not store it into the apps <code>node_modules</code> directory</td>
-</tr>
-<tr>
 <td>remove `<pluginid></td>
 <td><name>` [...]</td>
 <td></td>
@@ -3249,11 +3223,6 @@ www/
 <td>Do NOT remove the specified plugin from config.xml or package.json</td>
 </tr>
 <tr>
-<td></td>
-<td>--nofetch</td>
-<td>Do not remove the plugin using <code>npm uninstall</code> and do not remove it from the apps <code>node_modules</code> directory</td>
-</tr>
-<tr>
 <td>list</td>
 <td></td>
 <td>List currently installed plugins</td>
@@ -3305,10 +3274,6 @@ www/
 <td>commit-ish</td>
 <td>Commit/tag/branch reference. If none is specified, &#39;master&#39; is used</td>
 </tr>
-<tr>
-<td>subdir</td>
-<td>Sub-directory to find plugin.xml for the specified plugin. (Doesn&#39;t work with <code>--fetch</code> option)</td>
-</tr>
 </tbody></table>
 
 <h3>Algorithm for resolving plugins</h3>
@@ -3332,9 +3297,6 @@ based on the following criteria (listed
 <li><p>Add <code>cordova-plugin-camera</code> with <a href="http://semver.org/">semver</a> version ^2.0.0 and save it to <code>config.xml</code> &amp; <code>package.json</code>:</p>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova plugin add cordova-plugin-camera@^2.0.0
 </code></pre></div></li>
-<li><p>Add <code>cordova-plugin-camera</code> with <a href="http://semver.org/">semver</a> version ^2.0.0 and do not<code>npm install</code> it. It will not be stored in the <code>node_modules</code> directory:</p>
-<div class="highlight"><pre><code class="language-" data-lang="">cordova plugin add cordova-plugin-camera@^2.0.0 --nofetch
-</code></pre></div></li>
 <li><p>Add the plugin from the specified local directory:</p>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova plugin add ../cordova-plugin-camera
 </code></pre></div></li>
@@ -3347,9 +3309,6 @@ based on the following criteria (listed
 <li><p>Remove the plugin from the project, but not the <code>config.xml</code> or <code>package.json</code>:</p>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova plugin rm camera --nosave
 </code></pre></div></li>
-<li><p>Remove the plugin from the project. Do not remove it from the node_modules directory and don&#39;t run npm uninstall under the hood:</p>
-<div class="highlight"><pre><code class="language-" data-lang="">cordova plugin rm camera --nofetch
-</code></pre></div></li>
 <li><p>List all plugins installed in the project:</p>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova plugin ls
 </code></pre></div></li>
@@ -3372,7 +3331,7 @@ copies plugin files for specified platfo
 
 <h3>Syntax</h3>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova prepare [&lt;platform&gt; [..]]
-     [--browserify | --fetch]
+     [--browserify]
 </code></pre></div>
 <h3>Options</h3>
 
@@ -3390,10 +3349,6 @@ copies plugin files for specified platfo
 <td>--browserify</td>
 <td>Compile plugin JS at build time using browserify instead of runtime.</td>
 </tr>
-<tr>
-<td>--fetch</td>
-<td>When restoring plugins or platforms, fetch will <code>npm install</code> the missing modules.</td>
-</tr>
 </tbody></table>
 
 <h2>cordova compile command</h2>
@@ -3692,7 +3647,6 @@ cordova config delete &lt;key&gt;
 <h3>Examples</h3>
 <div class="highlight"><pre><code class="language-" data-lang="">cordova config set autosave false
 cordova config set browserify false
-cordova config set fetch true
 </code></pre></div>
 
                 </div>

Modified: cordova/site/public/docs/en/dev/reference/cordova-plugin-vibration/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/reference/cordova-plugin-vibration/index.html?rev=1818028&r1=1818027&r2=1818028&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/reference/cordova-plugin-vibration/index.html (original)
+++ cordova/site/public/docs/en/dev/reference/cordova-plugin-vibration/index.html Wed Dec 13 14:53:38 2017
@@ -2782,16 +2782,9 @@ navigator.notification.vibrate</p>
 <li>Windows (Windows Phone 8.1 devices only)</li>
 </ul>
 
-<p>navigator.notification.vibrateWithPattern<br />
-navigator.notification.cancelVibration</p>
+<p>The Android webview (API level 19 and up) supports the <a href="https://www.w3.org/TR/vibration/">W3C Vibration API</a> natively and therefore, the Android specific implementation of this plugin has been dropped.</p>
 
-<ul>
-<li>Android</li>
-<li>Windows Phone 8</li>
-<li>Windows (Windows Phone 8.1 devices only)</li>
-</ul>
-
-<h2>vibrate (recommended)</h2>
+<h2>vibrate</h2>
 
 <p>This function has three different functionalities based on parameters passed to it.</p>
 
@@ -2864,57 +2857,6 @@ navigator.vibrate([1000, 1000, 3000, 100
 </code></pre></div>
 <p>Passing in a parameter of 0, an empty array, or an array with one element of value 0 will cancel any vibrations.</p>
 
-<h2>*notification.vibrate (deprecated)</h2>
-
-<p>Vibrates the device for a given amount of time.</p>
-<div class="highlight"><pre><code class="language-" data-lang="">navigator.notification.vibrate(time)
-</code></pre></div>
-<ul>
-<li><strong>time</strong>: Milliseconds to vibrate the device. <em>(Number)</em></li>
-</ul>
-
-<h3>Example</h3>
-<div class="highlight"><pre><code class="language-" data-lang="">// Vibrate for 2.5 seconds
-navigator.notification.vibrate(2500);
-</code></pre></div>
-<h3>iOS Quirks</h3>
-
-<ul>
-<li><p><strong>time</strong>: Ignores the specified time and vibrates for a pre-set amount of time.</p>
-<div class="highlight"><pre><code class="language-" data-lang="">navigator.notification.vibrate();
-navigator.notification.vibrate(2500);   // 2500 is ignored
-</code></pre></div></li>
-</ul>
-
-<h2>*notification.vibrateWithPattern (deprecated)</h2>
-
-<p>Vibrates the device with a given pattern.</p>
-<div class="highlight"><pre><code class="language-" data-lang="">navigator.notification.vibrateWithPattern(pattern, repeat)
-</code></pre></div>
-<ul>
-<li><strong>pattern</strong>: Sequence of durations (in milliseconds) for which to turn on or off the vibrator. <em>(Array of Numbers)</em></li>
-<li><strong>repeat</strong>: Optional index into the pattern array at which to start repeating (will repeat until canceled), or -1 for no repetition (default). <em>(Number)</em></li>
-</ul>
-
-<h3>Example</h3>
-<div class="highlight"><pre><code class="language-" data-lang="">// Immediately start vibrating
-// vibrate for 100ms,
-// wait for 100ms,
-// vibrate for 200ms,
-// wait for 100ms,
-// vibrate for 400ms,
-// wait for 100ms,
-// vibrate for 800ms,
-// (do not repeat)
-navigator.notification.vibrateWithPattern([0, 100, 100, 200, 100, 400, 100, 800]);
-</code></pre></div>
-<h2>*notification.cancelVibration (deprecated)</h2>
-
-<p>Immediately cancels any currently running vibration.</p>
-<div class="highlight"><pre><code class="language-" data-lang="">navigator.notification.cancelVibration()
-</code></pre></div>
-<p>*Note - due to alignment with w3c spec, the starred methods will be phased out</p>
-
 
                 </div>
             </div>

Modified: cordova/site/public/feed.xml
URL: http://svn.apache.org/viewvc/cordova/site/public/feed.xml?rev=1818028&r1=1818027&r2=1818028&view=diff
==============================================================================
--- cordova/site/public/feed.xml (original)
+++ cordova/site/public/feed.xml Wed Dec 13 14:53:38 2017
@@ -6,8 +6,8 @@
 </description>
     <link>https://cordova.apache.org/</link>
     <atom:link href="https://cordova.apache.org/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Mon, 04 Dec 2017 22:00:32 +0000</pubDate>
-    <lastBuildDate>Mon, 04 Dec 2017 22:00:32 +0000</lastBuildDate>
+    <pubDate>Wed, 13 Dec 2017 14:32:24 +0000</pubDate>
+    <lastBuildDate>Wed, 13 Dec 2017 14:32:24 +0000</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>



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