cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Mocny <mmo...@chromium.org>
Subject Re: [cordova-js] What is the purpose of <runs /> ?
Date Sat, 05 Apr 2014 02:05:35 GMT
> gfind -name plugin.xml -exec grep -Hn "runs" {} \;
./cordova-plugin-battery-status/plugin.xml:90:            <runs/>
./cordova-plugin-camera/plugin.xml:37:          <runs />
./cordova-plugin-contacts/plugin.xml:159:            <runs />
./cordova-plugin-device/plugin.xml:29:            <runs />
./cordova-plugin-device-motion/plugin.xml:34:          <runs />
./cordova-plugin-device-motion/plugin.xml:133:            <runs/>
./cordova-plugin-device-orientation/plugin.xml:36:          <runs />
./cordova-plugin-device-orientation/plugin.xml:145:            <runs/>
./cordova-plugin-dialogs/plugin.xml:34:          <runs />
./cordova-plugin-geolocation/plugin.xml:147:            <runs />
./cordova-plugin-globalization/plugin.xml:91:            <runs/>
./cordova-plugin-media/plugin.xml:138:            <runs/>
./cordova-plugin-network-information/plugin.xml:32:            <runs />
./cordova-plugin-network-information/plugin.xml:143:            <runs />
./cordova-plugin-splashscreen/plugin.xml:103:            <runs />
./cordova-plugin-vibration/plugin.xml:27:            <runs />
./cordova-plugin-vibration/plugin.xml:115:            <runs />
./cordova-plugins/websql/plugin.xml:12:            <runs />


Most of these are for firefoxos or tizen (Haven't investigated), but one is
not:
[android]: ./cordova-plugins/websql
-- Why is it needed? Because it only clobbers WebSql when run from file://
protocol


Anyway, more generally, its useful for when you need to do some setup
before pluginready / DOMContentLoaded, which is especially useful when you
are dealing with code that isn't cordova.require() aware.


For Chrome Apps, we used to use <runs/> a lot, but miraculously I see now
that we have replaced all usage with <clobbers/> and <merges/> (which is
like runs + extra).  I proposed we could replace clobbers/merges with a
single runs in another thread.

-Michal


On Fri, Apr 4, 2014 at 8:47 PM, Anis KADRI <anis@apache.org> wrote:

> If we need it. Could anybody point me to an example of how/why that is
> needed ?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message