Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 772C4200B26 for ; Mon, 27 Jun 2016 22:57:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 75E10160A5B; Mon, 27 Jun 2016 20:57:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9832E160A54 for ; Mon, 27 Jun 2016 22:57:24 +0200 (CEST) Received: (qmail 87060 invoked by uid 500); 27 Jun 2016 20:57:23 -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 87048 invoked by uid 99); 27 Jun 2016 20:57:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2016 20:57:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D6CAD1A6138 for ; Mon, 27 Jun 2016 20:57:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 812hhxRkaMWX for ; Mon, 27 Jun 2016 20:57:21 +0000 (UTC) Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 874B35F485 for ; Mon, 27 Jun 2016 20:57:20 +0000 (UTC) Received: by mail-vk0-f46.google.com with SMTP id j2so248478411vkg.2 for ; Mon, 27 Jun 2016 13:57:20 -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; bh=XgMyQwrgwPpT20lVW5GKfwYSB9vEBNJfLNMCYBbC1p0=; b=Eu44scN14khQ32rLanEWX+JzsvUXEXzO4WZ/2rnE/qFndY+sU9V8mEd66y09ot8WEo MbJDEiAB2jE5871WUHQWT2UHcmVr+K4tCj+QJF0ZhxhrBlnpIlPXaT5vmTLGV821RCYz wcUbw5/nEtmsMz/k+njA07cTMXIb281pv8FBTvOrMDYj0RQkRZwwfWkKWAxrI8OVol4l pGhyetKSZS4q5NWJdDK1YmLI/V+cvt4YMi3Jg8rh3hH7bsZxLGwyva2n9gDnqlH9x+mJ dS6u1mkK/s3EfZE52YItQHRzQ8J6w72fTlSFcpH0ERAIzBt7QZuSKlxpH0GCfTvTnP++ 3yNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=XgMyQwrgwPpT20lVW5GKfwYSB9vEBNJfLNMCYBbC1p0=; b=DbKzXLtl8LZCnEDEe+ixy/jYgsjbeaq+BsY1tf+IxsdU5iO6Sw46vgRONwAYWQ874p sDjGAvCbdbpOoVuw7wmQVznNmBGIubyiwF7zhuiotCGW/DWwzLKwbeOegwvpkba949Nj yy1yoP5Ed0u9nyeJGpzmSAmm8CAioCgbAs/Cr2ZdpIjiWjXZfmoIP5zsB9uzpxQ76S7L rKSuSK1Vcnbbmc5KCtumIfpGDU+Z1jRuKA5z9LhIYZgSU2+pSjgfXxsgaxHoXwg2QjOT rwdI0sqkh9lkxJ6Hbj9jWG0azubwLEU6w6f9PhnGvVtC+UYfZdkd7ENYfJttvoGZ1kWZ i9sA== X-Gm-Message-State: ALyK8tJWb6CAVDglHRPzFeWDVvaPqT6719uWLbDMVFa54l27iczjNngbg/aX0d/WawX328VLwHR54+BM8wH1lg== X-Received: by 10.31.132.77 with SMTP id g74mr10102794vkd.121.1467061038882; Mon, 27 Jun 2016 13:57:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.90.210 with HTTP; Mon, 27 Jun 2016 13:57:18 -0700 (PDT) In-Reply-To: References: From: Joe Bowser Date: Mon, 27 Jun 2016 13:57:18 -0700 Message-ID: Subject: Re: Proof of Concept: Plugins as Android Modules To: dev Content-Type: multipart/alternative; boundary=001a1144f9d8163374053648c4b3 archived-at: Mon, 27 Jun 2016 20:57:25 -0000 --001a1144f9d8163374053648c4b3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I know, that's extremely annoying, and I would like to remove that sometime in the future if possible. On Wed, Jun 22, 2016 at 8:43 AM, Vladimir Kotikov (Akvelon) < v-vlkoti@microsoft.com> wrote: > Please disregard my point about CordovaLib excludes - I didn't notice tha= t > build.gradle is regenerated before every build > > - > Best regards, Vladimir > > -----Original Message----- > From: Vladimir Kotikov (Akvelon) [mailto:v-vlkoti@microsoft.com] > Sent: Wednesday, June 22, 2016 6:39 PM > To: dev@cordova.apache.org > Subject: RE: Proof of Concept: Plugins as Android Modules > > Hi, Joe > > I've looked into your changes and did some quick testing. IMO they looks > good apart some minor issues: > > - after adding a plugin and opening resultant project in Android studio I > was unable to build the project w/ debug configuration - only release see= ms > to work. The error I'm getting is > Error:Module 'CordovaLib' has variant 'release' selected, but the > module ''android'' depends on variant 'debug' > From CLI everything seems to work fine. > > - I'm not very experienced in Gradle things, but looks like adding > excludes to every plugin's subproject [1] - is not really required. At > least I was able to build the generated project without these excludes. > Moreover, the Gradle build output with and without these excludes is > similar - no additional compilation of CordovaLib is performed > > - I had to manually update "buildToolsVersion" property in InappBrowser's > build.gradle - perhaps we would need for a logic to update that property > according to installed build tools version at build time? > > - > [1] > https://github.com/apache/cordova-android/compare/master...infil00p:frame= work_fixes#diff-417ebeefa9eab114cf248463f6886bbaR103 > [2] > https://github.com/apache/cordova-android/compare/master...infil00p:frame= work_fixes > > - > Best regards, Vladimir > > -----Original Message----- > From: Joe Bowser [mailto:bowserj@gmail.com] > Sent: Tuesday, June 21, 2016 12:38 AM > To: dev > Subject: Re: Proof of Concept: Plugins as Android Modules > > Bump! It'd be good to get some feedback on this sooner rather than later. > > On Thu, Jun 16, 2016 at 3:57 PM, julio cesar sanchez < > jcesarmobile@gmail.com > > wrote: > > > Hi. > > > > I sadly can't contribute to this because I don't think I have enough > > Android knowledge, but just wanted to answer on this topic as I feel > > that is very important and I think this one and the previous ones you > > sent related to this didn't get enough attention. > > So, even if I can't personally help, maybe answering on the topic can > > get some attention, or at least you can know that somebody read it and > > support it. > > > > > > 2016-06-14 22:58 GMT+02:00 Joe Bowser : > > > > > Hey > > > > > > Here's a proof of concept for Android Modules. It works for cordova > > > core plugins, but it's kinda brittle because I need to figure out > > > how to > > handle > > > dependencies and excluding duplicate compilation in our tools. > > > > > > https://github.com/infil00p/cordova-android/tree/framework_fixes > > > https://github.com/infil00p/cordova-plugin-inappbrowser/tree/aar_poc > > > > > > Surprisingly, the changes made are very minor to get this to work, > > > and there's a lot of serious advantages we give. That said, our > > > Gradle > > scripts > > > are incredibly brittle, and we don't have the luxury of changing any > > > execution order to try to get around excluding dependencies. > > > > > > I think it would be good if we could add in plugin.xml a way to > > > exclude compilation of dependencies that are already included. > > > Right now if you include a plugin that depends on the CordovaLib > > > module in the project, > > our > > > plugin will install things twice. > > > > > > Does anyone have any thoughts about this? I really want this to be > > > a lot less brittle before introducing this method of installing > plugins. > > > > > > Joe > > > > > > B KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB > [ X =DC=9AX K K[XZ[ > ] ][ X =DC=9AX P =DC=99 =DD=98K \ X K =DC=99 B =DC=88 Y ] [=DB= =98[ [X[ K[XZ[ > ] Z [ =DC=99 =DD=98K \ X K =DC=99 B > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > For additional commands, e-mail: dev-help@cordova.apache.org > --001a1144f9d8163374053648c4b3--