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 0A8ED11F0F for ; Fri, 11 Jul 2014 00:58:46 +0000 (UTC) Received: (qmail 95284 invoked by uid 500); 11 Jul 2014 00:58:45 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 95241 invoked by uid 500); 11 Jul 2014 00:58:45 -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 95229 invoked by uid 99); 11 Jul 2014 00:58:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 00:58:45 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of purplecabbage@gmail.com designates 209.85.220.178 as permitted sender) Received: from [209.85.220.178] (HELO mail-vc0-f178.google.com) (209.85.220.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 00:58:43 +0000 Received: by mail-vc0-f178.google.com with SMTP id ij19so750324vcb.9 for ; Thu, 10 Jul 2014 17:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8oIfMAf87X9FAmFtCtccogE8xcj+86rIgb+u0mfqd4E=; b=jxzaI8AJ87sif0WyoLMGquYckhI7jIg7raJ/TXPrYxtEM6ejKllVc+GkVpzb7UZkIY lSMq6QhQYxIHiIaW54/Fug65cdI7eUfy/dznA+gAQaCa9Ts2YVxVel9mBNN25V9ryUoD kb63WHyvHYuaNM4hSR+qaEtodtPcjY26oMeYBVJVQEvKPKYSYTjlhvE3klZzmd0OEn33 veQvQkXaTWARUDie6uYwZWZ7OxSbnuODVYKOfo242FGOCwg0EGNpVt2fTxGdA82r8CgA nSCngrLlQZ1ewj5/bS3nUR9qEds1lfw9EXkLg964pu//mbO2ieZITF/d3m5QYjy+NVAu y8eA== MIME-Version: 1.0 X-Received: by 10.220.202.69 with SMTP id fd5mr3526900vcb.43.1405040298098; Thu, 10 Jul 2014 17:58:18 -0700 (PDT) Received: by 10.58.44.130 with HTTP; Thu, 10 Jul 2014 17:58:18 -0700 (PDT) In-Reply-To: References: <373764ec305840ab8382b3a1023dc191@BY2PR03MB428.namprd03.prod.outlook.com> Date: Thu, 10 Jul 2014 17:58:18 -0700 Message-ID: Subject: Re: Android: add support of min/max/target SDK to config.xml From: Jesse To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a11c1be70dd081b04fde06ff0 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1be70dd081b04fde06ff0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Somewhat to Joe's point, anyone who knows that they want this feature can probably find their own work-around. ( as Frederico proves ) Joe has the strongest feelings on this, such that he keeps getting pulled into the conversation even though he is on holiday. I think we should shelve this conversation until next week, when we can dig into it deeper. @purplecabbage risingj.com On Thu, Jul 10, 2014 at 5:22 PM, Frederico Galv=C3=A3o < frederico.galvao@pontoget.com.br> wrote: > Are you guyus against the actual implementation being suggested or are yo= u > against the idea as a whole? > If the answer to the above is "I +1 the idea but -1 the current > implementation being suggested", then ignore the rest of this message, an= d > I'll say that I'm looking foward to this feature being released (although > it's not a showstopper for me, I'm used to messing with the native shell > after Cordova has spit it out for me). > > First I'll state that I agree that in no reasonable situation targetSdk > should NOT be equal to the most updated(Android) and suported(Cordova) > version. > > Unless you intercept ant/gradle at a fundamental time in the build proces= s > and force a certain sdkVersion (be it min, max, or target), Cordova alrea= dy > can't protect itself against me changing those options on my > AndroidManifest.xml. By the way, this is exactly what I've been doing for= a > year and a half now, even with cordova 3.x. > So, if you mean a -1 to this trying to protect the app from building whil= e > targetting "wrong" versions, I'll disagree with you. > > However, I may take the need and consequences of this feature differently > than others because I keep and maintain the platform folders in VCS > (against recommendations from the docs) and track changes to it every tim= e > a plugin is installed or a new version of Cordova is released, just becau= se > the CLI alongside config.xml can't handle all the changes I need done on > the native side as of today. > > > 2014-07-10 17:28 GMT-03:00 Joe Bowser : > > > On 10 Jul 2014 19:58, bowserj@gmail.com wrote: > > > > > > > > > Completely disagree. All this will do is make things not build and > > confuse users. It's our job to try and abstract this out and when we le= t > > users control this, their apps are terrible. This feature is harmful a= nd > > shouldn't be included. > > > > Decided that I should elaborate. If you see a legacy menu on a PhoneGap > App > > like the Canadian Avalanche Centre, you'll notice a menu that doesn't d= o > > anything. This is what we want to avoid. > > > > Apologies for singling this app out, there are others, but this is an > app I > > actually use occasionally. > > > > > > > > > @purplecabbage > > > > risingj.com > > > > > > > > > > > > On Thu, Jul 10, 2014 at 11:58 AM, Joe Bowser > > wrote: > > > > > > > > > -1 > > > > > > > > > > I like adding min, but max and target build can really break the > > build, > > > > > especially when we try and use newer Chromium features. PG Build > has > > this > > > > > only because a method that we were using was removed from Cordova > and > > they > > > > > have to support old versions. We want people to upgrade Cordova > and > > this > > > > > makes it easier for people to stick to broken versions. > > > > > On Jul 10, 2014 11:40 AM, "Lisa Seacat DeLuca" > > > wrote: > > > > > > > > > > > Sergey, this is awesome! Once we get your changes pulled in we > > should > > > > > > also update the documentation. I can see this being a popular > > little > > > > > > feature for users. > > > > > > > > > > > > > > > > > > Lisa > > > > > > @LisaSeacat > > > > > > > > > > > > > > > > > > > > > > > > [image: Inactive hide details for "Sergey Grebnov (Akvelon)" > > > > > ---07/10/2014 > > > > > > 04:23:07 AM---Implemented, pls take a look: https://github.c > > ]"Sergey > > > > > > Grebnov (Akvelon)" ---07/10/2014 04:23:07 AM---Implemented, pls > > take a > > > > > > look: https://github.com/apache/cordova-lib/pull/56/files > > > > > > > > > > > > From: "Sergey Grebnov (Akvelon)" > > > > > > To: "dev@cordova.apache.org" > > > > > > Date: 07/10/2014 04:23 AM > > > > > > Subject: RE: Android: add support of min/max/target SDK to > > config.xml > > > > > > ------------------------------ > > > > > > > > > > > > > > > > > > > > > > > > Implemented, pls take a look: > > > > > > https://github.com/apache/cordova-lib/pull/56/files > > > > > > https://issues.apache.org/jira/browse/CB-7114 > > > > > > > > > > > > Thx! > > > > > > Sergey > > > > > > -----Original Message----- > > > > > > From: tommy-carlos williams [mailto:tommy@devgeeks.org > > > > > > ] > > > > > > Sent: Monday, July 7, 2014 5:33 PM > > > > > > To: dev@cordova.apache.org > > > > > > Subject: Re: Android: add support of min/max/target SDK to > > config.xml > > > > > > > > > > > > +1 > > > > > > > > > > > > Another step towards build-artefact-land. > > > > > > > > > > > > > > > > > > > > > > > > On 7 July 2014 at 23:29:25, Andrew Grieve (agrieve@chromium.org= ) > > wrote: > > > > > > > > > > > > I'd love to see this added. > > > > > > > > > > > > > > > > > > On Mon, Jul 7, 2014 at 7:29 AM, Sergey Grebnov (Akvelon) < > > > > > > v-segreb@microsoft.com> wrote: > > > > > > > > > > > > > Propose to add support of the following Android specific > settings > > to > > > > > > > config.xml similar to PG Build[2]. Optional, could be used to > > override > > > > > > > default template values. I think this could be very useful an= d > > will > > > > > > > implement this if we agree. Thoughts? > > > > > > > > > > > > > > > > > > > > > > name=3D"android-targetSdkVersion" value=3D"19" /> > > > > > > name=3D"android-maxSdkVersion" value=3D"20" /> > > > > > > > > > > > > > > [1] > > > > > > > > > http://developer.android.com/guide/topics/manifest/uses-sdk-element.ht > > > > > > > ml > > > > > > > [2] > > > > > > > > > http://docs.build.phonegap.com/en_US/configuring_preferences.md.html#_ > > > > > > > android_only > > > > > > > > > > > > > > Thx! > > > > > > > Sergey > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > *Frederico Galv=C3=A3o* > > Diretor de Tecnologia > > PontoGet Inova=C3=A7=C3=A3o Web > > > ( +55(62) 8131-5720 > > * www.pontoget.com.br > --001a11c1be70dd081b04fde06ff0--