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 BDA6D200B53 for ; Tue, 12 Jul 2016 22:53:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC192160A56; Tue, 12 Jul 2016 20:53:10 +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 E0125160A53 for ; Tue, 12 Jul 2016 22:53:09 +0200 (CEST) Received: (qmail 9503 invoked by uid 500); 12 Jul 2016 20:53:08 -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 9491 invoked by uid 99); 12 Jul 2016 20:53:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2016 20:53:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3D4A618069A for ; Tue, 12 Jul 2016 20:53:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 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_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Mgh3jvy59GwP for ; Tue, 12 Jul 2016 20:53:06 +0000 (UTC) Received: from mail-vk0-f44.google.com (mail-vk0-f44.google.com [209.85.213.44]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0C7B75FC0E for ; Tue, 12 Jul 2016 20:53:05 +0000 (UTC) Received: by mail-vk0-f44.google.com with SMTP id x130so39491436vkc.0 for ; Tue, 12 Jul 2016 13:53:05 -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=uicZuUNT6efe2jfzY5i3R4vObGsAokDFJ2AiDTSwtMA=; b=kiAwBUzlsc0cKvPsYn3Gsd/B/NTrmedX4Q+bHE+QTUUjculvE/WsgB2hb2o6alaHGP I78ne1MMrdCyi6ZwJwxovtwOw8OjvBPAIoLp0j8PDT/ksjaJG4MavfR9yl+WTaYr5l2D woPgyiyBlIqGV5BBob9pTZOhLDXoqaW+UzH7r9QpAwJyKBDyWaQacGjAuAWREGZQSRRz 7tmiwxyAwxVkskh2YIqTi0TycNj15BW5a64UVSBAM6KtrTLbMSjeoBR/cbKVxxMi4KEo ZbSqFe1lgDC07+wcXaskyD4C0JwgB4fAyYmIdZjRVnPGJT59vK5K5ONIOyMawiyAlhc2 J1gw== 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=uicZuUNT6efe2jfzY5i3R4vObGsAokDFJ2AiDTSwtMA=; b=EHF3Qx2Y8mnEHMZyGhaPTbj3su9DkcOMwz4jmQP37xIEKljudbmXWJGQVDX/uNwrzY NQiQGHgxluW2oPAdKcpFmezuoY/ggOoKE3XfYp5fm1JpNVZyH5l+IXP8T9EnSmKtERep 5ZEsVDiwThg8uEshTLlZhirNU3BFhS8wGPbRNAaPTwm1uLiED+i1ok1iGUIJwPX6GLlN YccKUhdVVoKK2oMokNTVeck2ysDNH+b1ODY2r0nkN6k4uoQV5b32Eenb8q7Ciu+0IRgN n+0R1dmd5JVw6P8G92nxhIdmdOClsrMefzSq1cA231r4LbS9Z2qgDk8IwmitzRE7oCrV P5Nw== X-Gm-Message-State: ALyK8tJWBsKQ3ZCF5TP+cYxQSbfTo55JParLyWqn9RQANKYK9n5wKSqgmsAW62dJ/dNWrRpbV2Btl0WwXFh0WA== X-Received: by 10.159.33.168 with SMTP id 37mr2325246uac.142.1468356784280; Tue, 12 Jul 2016 13:53:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.40.7 with HTTP; Tue, 12 Jul 2016 13:53:03 -0700 (PDT) In-Reply-To: References: From: Joe Bowser Date: Tue, 12 Jul 2016 13:53:03 -0700 Message-ID: Subject: Re: Proof of Concept: Plugins as Android Modules To: dev Content-Type: multipart/alternative; boundary=001a113df53c87da800537767423 archived-at: Tue, 12 Jul 2016 20:53:10 -0000 --001a113df53c87da800537767423 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey Does anyone have a solution to the problem I'm facing with Gradle dependencies. I can use some more eyeballs on this. Thanks Joe On Mon, Jun 27, 2016 at 1:57 PM, Joe Bowser wrote: > 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 >> that 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 se= ems >> 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:fram= ework_fixes#diff-417ebeefa9eab114cf248463f6886bbaR103 >> [2] >> https://github.com/apache/cordova-android/compare/master...infil00p:fram= ework_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 >> > > --001a113df53c87da800537767423--