Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D3CF518CF9 for ; Tue, 7 Jul 2015 19:55:29 +0000 (UTC) Received: (qmail 51529 invoked by uid 500); 7 Jul 2015 19:55:29 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 51487 invoked by uid 500); 7 Jul 2015 19:55:29 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 51475 invoked by uid 99); 7 Jul 2015 19:55:29 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2015 19:55:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D838FD2D3E for ; Tue, 7 Jul 2015 19:55:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.651 X-Spam-Level: *** X-Spam-Status: No, score=3.651 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, KAM_EU=0.5, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id N_3wrNoXiHQM for ; Tue, 7 Jul 2015 19:55:15 +0000 (UTC) Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id DA5B842AD0 for ; Tue, 7 Jul 2015 19:55:14 +0000 (UTC) Received: by qgii30 with SMTP id i30so89889796qgi.1 for ; Tue, 07 Jul 2015 12:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=G/8G9MbQpsyqmi4PBVVlRWQa1978fBmgJtWv12nIkuU=; b=KBLUSU8i3u8ypZGVlW57fAuixYysa/O/oOQ0xtGp2hzkVe/kOkjZxFW7z2gUj9tje8 UGS791F1b+kaZwLL6kUNJy3+NTSMYwwoTMGvC5SBluBe/Cy8Mq6MWcACt7/meiq3tiye qlEmfdgT6w9NsA+DVEQNBIds01rhp5+3PdXkH7HT42CKnhxsA71/iimDlcWCLrBtfj07 ppQPWEnVJAnCmhIfUc31RhWS9x61YbNHm8NtScyfO6aRYRaR1mvdjiYxEgqaLb/VaTXF ds2lu5qS6BKyJrUCrQiNSLPXfgVbtR/kl1MDXnNKD7YXKdyCdLJ9y394C1lKtRfL3hTa sVSQ== X-Received: by 10.140.27.211 with SMTP id 77mr9673188qgx.64.1436298907753; Tue, 07 Jul 2015 12:55:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.187.37 with HTTP; Tue, 7 Jul 2015 12:54:48 -0700 (PDT) In-Reply-To: References: <14C61194-7653-4478-98FF-410D92FA0FA4@tappur.co> From: Steven Gill Date: Tue, 7 Jul 2015 12:54:48 -0700 Message-ID: Subject: Re: Introduction To: "dev@cordova.apache.org" Cc: Tyler Freeman Content-Type: multipart/alternative; boundary=001a11c156ea302707051a4e66b4 --001a11c156ea302707051a4e66b4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable We decided to try github (cordova-discuss) out a while ago as a replacement for google doc proposals we were using. This way we could revise a document in one place and also not have to search around our email for the link to the google doc. Proposals are supposed to be shared on the list when first created and throughout the process when asking for feedback. Final decision should always happen on the list. With google doc, a lot of the fine tuning of the proposal happened in comments on the document. Now that fine tuning is happening on the issue/PR. I have seen links on our mailing list for both platformAPI and cordova-docs proposals. You can view them at https://github.com/cordova/cordova-discuss/pulls We have also been using cordova github repo for a while now to draft and get review on blog posts https://github.com/cordova/apache-blog-posts On Tue, Jul 7, 2015 at 12:25 PM, Joe Bowser wrote: > When did we start discussing these proposals on GitHub instead of the dev > list? That's kind of what the dev list is for, and I'm pretty sure it's n= ot > the Apache Way to do this. > > In fact, I wasn't aware that we were using our GitHub org for anything > until now. > > On Tue, Jul 7, 2015, 12:01 PM julio cesar sanchez > wrote: > > It's only supported by android 5 webview (12% share right now), so I thin= k > the plugin makes sense for now even if it's going to be deprecated in the > future and replaced by the browser battery status when more people have > android 5 or greater > > But the discussion about this should be better on the cordova-discuss > https :// > github.com > / > cordova > / > cordova-discuss > /issues > > > 2015-07-07 20:42 GMT+02:00 Joe Bowser : > > > I hate to dash your hopes, but I think that we should probably not have= a > > Battery Status plugin and defer to browser behaviour on Android, since > > Battery Status is supported on the browser with the latest Android > > WebViews, and with Crosswalk. Any plugin should just be glue code for > > facilitating this behaviour, similar to how we deprecated the Geolocati= on > > plugin on Android in favour to Browser Geolocation. > > > > That's my two cents on the issue right now. > > > > On Tue, Jul 7, 2015 at 11:17 AM Brian LeRoux wrote: > > > > > exactly so and by all means please feel free to use that, bluebird, > rsvp, > > > q, jakes es6 polyfill or any of the 5000+ libs for Promises [1] > > > > > > though I suggest one limits the scope to the other 200+ libraries > > claiming > > > A+ support! [2] > > > > > > ;P > > > > > > [1] https://www.npmjs.com/search?q=3DPromise > > > [2] https://www.npmjs.com/search?q=3DPromise+A%2B > > > > > > > > > On Tue, Jul 7, 2015 at 10:53 AM, Tyler Freeman > wrote: > > > > > > > I'd just like to mention that jQuery has promises built-in as the > > > > $.Deferred object. It's not quite the same as the official Promises > > spec, > > > > but can be used similarly in most cases. > > > > > > > > > > > > On July 7, 2015 9:42:10 AM PDT, Brian LeRoux wrote: > > > >> > > > >> We experimented with Promise polyfills and had nothing but trouble= . > > I'd > > > >> like to preface by saying: lets not get into a theory war. Some > people > > > like > > > >> promises (fine) and some do not (also fine). My stance is that we > > should > > > >> leave that choice up to our end users. > > > >> > > > >> Lets throw some facts out to colour things. > > > >> > > > >> 1. Promises are a spec that will land in browsers natively [1] > > > >> 2. Promises as a concept have MANY polyfill implementations > > > >> 3. The polyfill landscape is largely divergent and implement > different > > > >> flavors of the concept > > > >> > > > >> Since we implement a User Agent we *could* polyfill to spec. As a > > > plugin. > > > >> (Jake's is probably best [2]) I'd be in favor of this and making > that > > > THE > > > >> plugin dep for companion plugins that require Promises. The proble= m > > with > > > >> this is #3. If we have a window.Promise it could be clobbered by a > > user > > > >> that is not super aware of how things are composed under the hood. > If > > it > > > >> *could* happen guess what: it will. Some frameworks even force the > > idea > > > of > > > >> Promises that may not be totally on spec. Older jQuery and Ember > come > > to > > > >> mind. > > > >> > > > >> The other way to solve this problem is patience. This is the path = I > am > > > most > > > >> in favor of. Lets wait out the native implementation to land in th= e > > > various > > > >> webviews and at such time we can start using those. > > > >> > > > >> Plugins really should wrap device and operating system API's (in m= y > > > >> opinion) and we should leave library code for the user land to > figure > > > out. > > > >> The Promise API *is a library* until such time as it has been > > > implemented > > > >> into the language runtimes natively (and not just speculatively > > > >> standardized). Ok I guess faltered into the theory war part there. > ;) > > > >> > > > >> [1] https://promisesaplus.com/ > > > >> [2] https://github.com/jakearchibald/es6-promise > > > >> > > > >> > > > >> > > > >> > > > >> On Mon, Jul 6, 2015 at 6:45 PM, Murat Sutunc > > > > wrote: > > > >> > > > >> Hey Paul, > > > >>> Welcome to Cordova! I've looked at your changes on github and ha= ve > > > some > > > >>> early feedback. > > > >>> > > > >>> 1) As per spec you return a Promise on battery.js but to my > > knowledge > > > we > > > >>> don't have a fallback for ES6 Promises on platforms that don't > > > support it > > > >>> yet. I would like to know what other committers think about this > > > problem. > > > >>> 2) I think the old API and the new API can co-exist for a while > > > before we > > > >>> deprecate and remove the old one. I see that the new spec uses a > > > different > > > >>> method name so we should be fine here. > > > >>> > > > >>> Thanks, > > > >>> Murat > > > >>> > > > >>> -----Original Message----- > > > >>> From: Paul Contat [mailto:contat.paul@gmail.com] > > > >>> Sent: Wednesday, July 1, 2015 12:38 AM > > > >>> To: dev@cordova.apache.org > > > >>> Subject: Introduction > > > >>> > > > >>> Hello everyone, > > > >>> > > > >>> My name is Paul Contat, and I'm an engineering student and > currently > > > doing > > > >>> an internship at W3C focusing on aligning cordova API with W3C > ones > > > where > > > >>> applicable, as part of the HTML5Apps EU project ( > > > >>> > > > > > > > http://html5apps-project.eu/2014/08/27/aligning-cordova-and-w3c-device-ap= is/ > > > >>> ) > > > >>> > > > >>> For my internship, I=E2=80=99m planning to contribute to the cor= dova > > project, > > > >>> starting by the BatteryStatus API ( > > > >>> https://issues.apache.org/jira/browse/CB-6065) if it=E2=80=99s p= ossible. > > > >>> > > > >>> I've just signed the ICLA, created an account on Apache JIRA so > I=E2=80=99m > > > ready > > > >>> to start and submitted my first pull request: > > > >>> https://github.com/apache/cordova-plugin-battery-status/pull/24 > > > >>> > > > >>> I=E2=80=99m looking forward to feedback on whether I=E2=80=99m o= n the right path > for > > > >>> updating the Battery plugin API; I=E2=80=99m in particular inter= ested to > > > understand > > > >>> if and how the current API should be deprecated once we get to a > > stage > > > >>> where the new API is deemed in a good enough shape. > > > >>> > > > >>> Best regards, > > > >>> Paul > > > >> > > > >> > > > >> > > > > -- > > > > Tyler Freeman > > > > CTO, Tappur > > > > http://tappur.co > > > > > > > > Sent from mobile > > > > > > > > > > --001a11c156ea302707051a4e66b4--