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 1B8321892F for ; Thu, 16 Jul 2015 17:18:52 +0000 (UTC) Received: (qmail 69132 invoked by uid 500); 16 Jul 2015 17:18:51 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 69093 invoked by uid 500); 16 Jul 2015 17:18:51 -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 69081 invoked by uid 99); 16 Jul 2015 17:18:51 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jul 2015 17:18:51 +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 09F6518286D for ; Thu, 16 Jul 2015 17:18:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.13 X-Spam-Level: *** X-Spam-Status: No, score=3.13 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=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-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cKibq6LPjRAV for ; Thu, 16 Jul 2015 17:18:39 +0000 (UTC) Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 5F5064C0D7 for ; Thu, 16 Jul 2015 17:18:39 +0000 (UTC) Received: by qkbm65 with SMTP id m65so351091qkb.2 for ; Thu, 16 Jul 2015 10:18:33 -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 :content-type; bh=P/kmU+WwKxg4zhJ4g757R1NmbSTWS0sL7YjpwXrnvew=; b=AzQdnWom5Md7gPK6Q16pfq1Nbk/TuCSFsiRsqDYWgo4FrTig6qno/Z/A505dEkM3fm /A94mOfbhk3odjS7zIrJh115eW4dG5r2g+816kLXorj87IS6MYJBHOKJU5Xe6MRc9ORf YBM2caFtO6QwuyX9n/ZBDTn8vXsjukErX7Ya69syM6ra3hl88q7ilB5wBLGjdyhukZOj ylvNr/610r1RxgVrhvJkkIzFWfru+VJTyj3L4MegvP1jdU7RcRRh2GGq1nIL7h7Vtm7V fkpcx9dm9vPwS7sCCGDasN65gndZu6zW64atbyldxq+0TVb4TT8rsP6GIkcG5Yn+hNeL wMJQ== X-Received: by 10.140.38.167 with SMTP id t36mr18613770qgt.69.1437067112968; Thu, 16 Jul 2015 10:18:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.187.37 with HTTP; Thu, 16 Jul 2015 10:18:13 -0700 (PDT) In-Reply-To: <233b92a0-7f34-46b0-80df-6839485f45c4@email.android.com> References: <233b92a0-7f34-46b0-80df-6839485f45c4@email.android.com> From: Steven Gill Date: Thu, 16 Jul 2015 10:18:13 -0700 Message-ID: Subject: Re: Discuss Android plugin compatibility problem To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a11c12ce4c976fc051b014297 --001a11c12ce4c976fc051b014297 Content-Type: text/plain; charset=UTF-8 Would this be added to plugin.xml? On Thu, Jul 16, 2015 at 10:09 AM, Mefire O. wrote: > +1 on moving deps to gradle. > > On Jul 16, 2015 9:37 AM, Carlos Santana wrote: > you mean the scripts in cordova-android right? then yes > > +1 create jira bug, enhancements etc.. if doesn't get track it doesn't get > done > > On Thu, Jul 16, 2015 at 12:26 PM Joe Bowser wrote: > > > Is there a bug created for this? It sounds like we should have the local > > scripts handle dependency adding on Android. > > > > On Thu, Jul 16, 2015 at 9:14 AM Carlos Santana > > wrote: > > > > > +1 gradle declared dependencies only, cli to warn users about plugins > > > having libraries that will conflict, future is gradle no ANT I'm ok to > > > start deprecating ant going forward. > > > > > > > > > On Thu, Jul 16, 2015 at 11:27 AM Sergey Grebnov (Akvelon) < > > > v-segreb@microsoft.com> wrote: > > > > > > > Hi guys, I want to raise the following question - what we should > > > > recommend plugin developers to avoid 'Multiple dex files defined' > > issue > > > on > > > > Android, for example [3] > > > > > > > > UNEXPECTED TOP-LEVEL EXCEPTION: > > > > com.android.dex.DexException: Multiple dex files define > > > > > > > > > > Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; > > > > > > > > > > > > To reproduce this problem you can add both Facebook [1] and > > PushPlugin[2] > > > > and then build android platform. > > > > > > > > This happens due to we still use jars to add plugin dependencies, but > > > > there are several very popular among them (like android-support, > gson) > > so > > > > we bring the same dependencies several times so build fails. > > > > > > > > I think we should start recommending people to start adding > > > > utility/common/popular dependencies via corresponding gradle > > > configuration > > > > (not using libs folder) as the only way to support multiple plugins > > which > > > > could rely on the same dependency. In this case gradle will be able > to > > > > handle this situation correctly using its smart Dependency > > > > Management/Versioning logic [4]. > > > > > > > > For example, > > > > > > > > > > > target-dir="libs/" /> > > > > -> > > > > > > > > > > > > Disadvantage of this approach is that Ant build won't be supported (I > > > know > > > > some tricky/more complex way to correctly support both Ant and Gradle > > > but I > > > > don't think it is worth adding more complexity for plugins developers > > > just > > > > to continue supporting Ant). > > > > > > > > Guys, any recommendations/thoughts how we should proceed in this > > > > situation? Maybe someone has better solution for this problem? > > > > > > > > [1] https://github.com/Wizcorp/phonegap-facebook-plugin > > > > [2] https://github.com/phonegap-build/PushPlugin > > > > [3] https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1028 > > > > [4] > > https://docs.gradle.org/current/userguide/dependency_management.html > > > > > > > > Thx! > > > > Sergey > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > > > > For additional commands, e-mail: dev-help@cordova.apache.org > > > > > > > > > > > > > > --001a11c12ce4c976fc051b014297--